add lsp optional plugins and add config virtual text

This commit is contained in:
asep komarudin 2023-03-07 19:50:32 +07:00
parent 7433474605
commit 9faad80261
7 changed files with 52 additions and 10 deletions

View file

@ -5,6 +5,12 @@ if not status_cmp_ok then
return
end
local lspvitualtext = false
local data_exists, lspconfig = pcall(require, "core.config")
if data_exists then
lspvitualtext = lspconfig.lsp_virtualtext
end
local icons = require("user.icons")
M.capabilities = vim.lsp.protocol.make_client_capabilities()
@ -29,7 +35,7 @@ M.setup = function()
end
local config = {
virtual_text = false, -- disable virtual text
virtual_text = lspvitualtext, -- disable virtual text
signs = {
active = signs, -- show signs
},