diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 992c3b2..73ee88c 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -1,7 +1,5 @@ local lsp = require("lsp-zero") -lsp.preset("recommended") - lsp.extend_cmp() local cmp = require('cmp') local cmp_select = { behavior = cmp.SelectBehavior.Select } @@ -28,14 +26,11 @@ cmp.setup({ } }) -lsp.set_preferences({ - suggest_lsp_servers = false, - sign_icons = { - error = 'E', - warn = 'W', - hint = 'H', - info = 'I' - } +lsp.set_sign_icons({ + error = 'E', + warn = 'W', + hint = 'H', + info = 'I' }) lsp.extend_lspconfig() @@ -55,8 +50,6 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) end) -lsp.setup() - vim.diagnostic.config({ virtual_text = true })