nvim: Enable json lsp
This commit is contained in:
parent
f5592b5e85
commit
d2a2537df0
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ local servers = {
|
||||||
eslint = {},
|
eslint = {},
|
||||||
gopls = {},
|
gopls = {},
|
||||||
julials = {},
|
julials = {},
|
||||||
|
jsonls = {},
|
||||||
ltex = { autostart = false },
|
ltex = { autostart = false },
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -126,7 +127,7 @@ local function on_attach(_, bufnr)
|
||||||
else
|
else
|
||||||
vim.diagnostic.disable(0)
|
vim.diagnostic.disable(0)
|
||||||
end
|
end
|
||||||
end, { buffer = bufnr, desc = "Disable buffer diagnostics" })
|
end, { buffer = bufnr, desc = "Toggle Diagnostics" })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Display diagnostics as virtual text only if not in insert mode
|
-- Display diagnostics as virtual text only if not in insert mode
|
||||||
|
|
Loading…
Reference in a new issue