Updating git stuff

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-08-01 14:59:35 -05:00
parent b1954a147a
commit bbe1cbdd2d
5 changed files with 119 additions and 48 deletions

View file

@ -76,6 +76,22 @@ local servers = {
},
}
vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics,
{
virtual_text = true,
signs = true,
update_in_insert = true
}
)
local signs = { "Error", "Warn", "Hint", "Info" }
for _, type in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = "", texthl = hl, numhl = hl })
end
-- LSP config
-- Took lots of inspiration from this kickstart lua file: https://github.com/hjr3/dotfiles/blob/main/.config/nvim/init.lua