Change how diagnostic signs are defined in Neovim
This commit is contained in:
parent
de6026cb84
commit
242dccba12
1 changed files with 8 additions and 11 deletions
|
@ -4,17 +4,14 @@
|
|||
enable = true;
|
||||
keymaps.lspBuf."<leader>ca" = "code_action";
|
||||
luaConfig.post = ''
|
||||
local signs = {
|
||||
Error = "",
|
||||
Warn = "",
|
||||
Hint = "",
|
||||
Info = ""
|
||||
}
|
||||
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, {text = icon, texthl = hl, numhl = hl})
|
||||
end
|
||||
vim.diagnostic.config({
|
||||
signs = {
|
||||
Error = "",
|
||||
Warn = "",
|
||||
Hint = "",
|
||||
Info = ""
|
||||
}
|
||||
});
|
||||
'';
|
||||
servers = {
|
||||
cssls.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue