adopt neovim 0.12 native editing features
This commit is contained in:
parent
fa39d0a36c
commit
282e5e0f0b
18 changed files with 125 additions and 215 deletions
13
lua/completion.lua
Normal file
13
lua/completion.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Neovim 0.12 native insert-mode completion.
|
||||
if vim.fn.has("nvim-0.12") == 0 then
|
||||
return
|
||||
end
|
||||
|
||||
vim.opt.autocomplete = true
|
||||
vim.opt.autocompletedelay = 150
|
||||
vim.opt.completeopt = { "menu", "menuone", "noselect", "popup", "fuzzy" }
|
||||
vim.opt.complete = { ".^10", "w^5", "b^5", "u^5" }
|
||||
|
||||
vim.keymap.set("i", "<C-Space>", function()
|
||||
vim.lsp.completion.get()
|
||||
end, { desc = "Completion: Trigger LSP suggestions", silent = true })
|
||||
Loading…
Add table
Add a link
Reference in a new issue