mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Fix autocompletion
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user