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;
|
enable = true;
|
||||||
keymaps.lspBuf."<leader>ca" = "code_action";
|
keymaps.lspBuf."<leader>ca" = "code_action";
|
||||||
luaConfig.post = ''
|
luaConfig.post = ''
|
||||||
local signs = {
|
vim.diagnostic.config({
|
||||||
Error = "",
|
signs = {
|
||||||
Warn = "",
|
Error = "",
|
||||||
Hint = "",
|
Warn = "",
|
||||||
Info = ""
|
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
|
|
||||||
'';
|
'';
|
||||||
servers = {
|
servers = {
|
||||||
cssls.enable = true;
|
cssls.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue