13 lines
424 B
Lua
13 lines
424 B
Lua
-- 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 })
|