From de567f96df4f6ca40f1e5271a51b0e4062bc2c2c Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Thu, 4 Nov 2021 00:32:26 +0200 Subject: [PATCH] fix: update lspconfig and cmp settings --- lua/config/cmp.lua | 2 +- lua/config/lspconfig.lua | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lua/config/cmp.lua b/lua/config/cmp.lua index 24df2b6..e3f9f77 100644 --- a/lua/config/cmp.lua +++ b/lua/config/cmp.lua @@ -53,8 +53,8 @@ cmp.setup{ { name = 'emoji', max_item_count = 10, keyword_length = 5 }, { name = 'nvim_lua' }, - { name = 'nvim_lsp', max_item_count = 20 }, { name = 'cmp_tabnine' }, + { name = 'nvim_lsp', max_item_count = 20 }, { name = 'path' }, { name = 'luasnip' }, { name = 'buffer', max_item_count = 10, keyword_length = 5 }, diff --git a/lua/config/lspconfig.lua b/lua/config/lspconfig.lua index 050eee8..fc0805f 100644 --- a/lua/config/lspconfig.lua +++ b/lua/config/lspconfig.lua @@ -27,10 +27,11 @@ M.server_settings = { -- runtime = { -- version = "LuaJIT" -- }, - -- workspace = { - -- checkThirdParty = false, + workspace = { + checkThirdParty = false, -- library = {"${3rd}/love2d/library"} - -- } + }, + telemetry = { enable = false } -- } -- Lua = { @@ -48,7 +49,6 @@ M.server_settings = { -- -- Make the server aware of Neovim runtime files -- library = vim.api.nvim_get_runtime_file("", true) -- }, - -- telemetry = { enable = false } } } } @@ -111,6 +111,8 @@ end function M.on_init(initialize_params, config) -- print("lsp init") + -- TODO: Load settings from ".lspconfig.json" for each projects settings + -- and merge them with the defaults end function M.get_server_settings(name)