Skip to content

Commit

Permalink
configure lsp diagnostics 💄
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed May 18, 2024
1 parent abe9fc5 commit 663d712
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions nvim/lua/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ return {
},
config = function()
local mason_registry = require("mason-registry")

-- Diagnostics
vim.diagnostic.config({
signs = true,
underline = true,
update_in_insert = true,
virtual_text = {
source = "if_many",
prefix = "",
},
})

-- Run setup for no_config_servers
local no_config_servers = {
"docker_compose_language_service",
"dockerls",
Expand All @@ -19,8 +32,6 @@ return {
"taplo",
"yamlls",
}

-- Run setup for no_config_servers
for _, server in pairs(no_config_servers) do
require("lspconfig")[server].setup({})
end
Expand Down

0 comments on commit 663d712

Please sign in to comment.