chore: Changed a few things with CMP

This commit is contained in:
Afonso Franco 2023-01-01 16:30:31 +00:00
parent 70e01d2662
commit 52dfe3f2d3
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
4 changed files with 151 additions and 145 deletions

View file

@ -1,5 +1,4 @@
local mason_lspconfig = require "mason-lspconfig"
local notify = require "notify"
mason_lspconfig.setup({
ensure_installed = { "sumneko_lua", "rust_analyzer", "texlab", "hls", "yamlls" },
@ -48,11 +47,6 @@ local on_attach = function(client, bufnr)
end
end
local on_init = function (client, initialize_result)
-- Alert user that LSP finished loading
notify("Finished loading " ..client.name, "info", {title = "LSP"})
end
local lspconfig = require "lspconfig"
-- ADD NVIM CMP AS A CAPABILITY
@ -71,7 +65,6 @@ mason_lspconfig.setup_handlers {
function(server_name)
lspconfig[server_name].setup {
on_attach = on_attach,
on_init = on_init,
flags = lsp_flags,
capabilities = capabilities,
}