neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: support both stable & unstable versions

+7 -2
+3 -1
lua/core/lsp/init.lua
··· 23 23 vim.api.nvim_create_autocmd("LspAttach", { 24 24 group = vim.api.nvim_create_augroup("UserLspAttach", { clear = false }), 25 25 callback = function(ev) 26 - vim.lsp.completion.enable(true, ev.data.client_id, ev.buf, { autotrigger = false }) 26 + if vim.fn.has("nvim-0.11") then 27 + vim.lsp.completion.enable(true, ev.data.client_id, ev.buf, { autotrigger = false }) 28 + end 27 29 end, 28 30 }) 29 31
+4 -1
lua/core/options.lua
··· 6 6 vim.o.cmdheight = 1 7 7 vim.o.cmdwinheight = 10 8 8 vim.o.colorcolumn = "80" 9 - vim.o.completeopt = "menu,menuone,noselect,fuzzy" 9 + vim.o.completeopt = "menu,menuone,preview" 10 + if vim.fn.has("nvim-0.11") then 11 + vim.opt.completeopt:append("fuzzy") 12 + end 10 13 vim.o.conceallevel = 0 11 14 vim.o.confirm = true 12 15 vim.o.cursorline = true