adopt neovim 0.12 native editing features

This commit is contained in:
Ray Elliott 2026-10-28 15:43:13 +00:00
commit 282e5e0f0b
18 changed files with 125 additions and 215 deletions

13
lua/completion.lua Normal file
View 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 })