feat: add lsp popup configuration
This commit is contained in:
@@ -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,
|
||||
-- })
|
||||
|
||||
Reference in New Issue
Block a user