fix: update lspconfig and cmp settings
This commit is contained in:
parent
b18f77d679
commit
de567f96df
@ -53,8 +53,8 @@ cmp.setup{
|
|||||||
{ name = 'emoji', max_item_count = 10, keyword_length = 5 },
|
{ name = 'emoji', max_item_count = 10, keyword_length = 5 },
|
||||||
{ name = 'nvim_lua' },
|
{ name = 'nvim_lua' },
|
||||||
|
|
||||||
{ name = 'nvim_lsp', max_item_count = 20 },
|
|
||||||
{ name = 'cmp_tabnine' },
|
{ name = 'cmp_tabnine' },
|
||||||
|
{ name = 'nvim_lsp', max_item_count = 20 },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'buffer', max_item_count = 10, keyword_length = 5 },
|
{ name = 'buffer', max_item_count = 10, keyword_length = 5 },
|
||||||
|
@ -27,10 +27,11 @@ M.server_settings = {
|
|||||||
-- runtime = {
|
-- runtime = {
|
||||||
-- version = "LuaJIT"
|
-- version = "LuaJIT"
|
||||||
-- },
|
-- },
|
||||||
-- workspace = {
|
workspace = {
|
||||||
-- checkThirdParty = false,
|
checkThirdParty = false,
|
||||||
-- library = {"${3rd}/love2d/library"}
|
-- library = {"${3rd}/love2d/library"}
|
||||||
-- }
|
},
|
||||||
|
telemetry = { enable = false }
|
||||||
|
|
||||||
-- }
|
-- }
|
||||||
-- Lua = {
|
-- Lua = {
|
||||||
@ -48,7 +49,6 @@ M.server_settings = {
|
|||||||
-- -- Make the server aware of Neovim runtime files
|
-- -- Make the server aware of Neovim runtime files
|
||||||
-- library = vim.api.nvim_get_runtime_file("", true)
|
-- library = vim.api.nvim_get_runtime_file("", true)
|
||||||
-- },
|
-- },
|
||||||
-- telemetry = { enable = false }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -111,6 +111,8 @@ end
|
|||||||
|
|
||||||
function M.on_init(initialize_params, config)
|
function M.on_init(initialize_params, config)
|
||||||
-- print("lsp init")
|
-- print("lsp init")
|
||||||
|
-- TODO: Load settings from ".lspconfig.json" for each projects settings
|
||||||
|
-- and merge them with the defaults
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.get_server_settings(name)
|
function M.get_server_settings(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user