Fix autocompletion

This commit is contained in:
2025-03-07 16:01:52 +01:00
parent c6db6dd90c
commit a21b64f0d4
3 changed files with 40 additions and 28 deletions
+6 -1
View File
@@ -36,7 +36,8 @@ vim.opt.listchars = {
precedes = "◢",
nbsp = "○",
}
vim.opt.completeopt = { "menuone", "popup", "noinsert", "fuzzy" }
vim.opt.completeopt = { "menu", "menuone", "popup", "noinsert", "fuzzy" }
vim.opt.completeitemalign = { "kind", "abbr", "menu" }
vim.opt.pumheight = 15
vim.opt.spelloptions = { "camel", "noplainbuffer" }
@@ -136,6 +137,10 @@ vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, { desc = "Go
vim.keymap.set("n", "gD", function() vim.lsp.buf.declaration() end, { desc = "Go to declaration" })
vim.keymap.set("n", "grs", function() vim.lsp.buf.type_definition() end, { desc = "Go to type definition" })
-- vim.keymap.set({ 'i' }, '<C-Space>', function()
-- vim.lsp.completion.trigger()
-- end, { desc = "Trigger completion" })
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",