mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 09:48:51 +02:00
add lsp optional plugins and add config virtual text
This commit is contained in:
parent
7433474605
commit
9faad80261
7 changed files with 52 additions and 10 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue