feat: add lsp popup configuration

This commit is contained in:
Ian
2026-07-15 23:51:00 +02:00
parent 8d58de8cd1
commit 0da0684f14
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -1,3 +1,8 @@
vim.o.autocomplete = true
vim.o.complete = ".^5,t^3,w,o"
vim.o.pummaxwidth = 40
vim.o.completeopt = 'menu,menuone,noselect'
vim.lsp.config["lua"] = {
cmd = { "lua-language-server" },
filetypes = { "lua" },
@@ -7,6 +12,9 @@ vim.lsp.config["lua"] = {
runtime = {
version = "LuaJIT",
},
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
},
},
},
}
@@ -31,3 +39,13 @@ vim.lsp.config["python"] = {
}
vim.lsp.enable("python")
-- vim.api.nvim_create_autocmd("LspAttach", {
-- callback = function(args)
-- local client = vim.lsp.get_client_by_id(args.data.client_id)
--
-- if client:supports_method("textDocument/completion") then
-- vim.bo[args.buf].omnifunc = "v:lua.vim.lsp.omnifunc"
-- end
-- end,
-- })