Updating git stuff
This commit is contained in:
parent
b1954a147a
commit
bbe1cbdd2d
5 changed files with 119 additions and 48 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue