Improve diagnostic looks
This commit is contained in:
@@ -7,6 +7,13 @@
|
|||||||
options.silent = true;
|
options.silent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>q";
|
||||||
|
action.__raw = "vim.diagnostic.setloclist";
|
||||||
|
options.desc = "Open diagnostics quickfix list";
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<C-h>";
|
key = "<C-h>";
|
||||||
|
|||||||
@@ -1,5 +1,28 @@
|
|||||||
{
|
{
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
|
diagnostic.settings = {
|
||||||
|
severity_sort = true;
|
||||||
|
float = {
|
||||||
|
border = "rounded";
|
||||||
|
source = "if_many";
|
||||||
|
};
|
||||||
|
signs.text.__raw = "{
|
||||||
|
[vim.diagnostic.severity.ERROR] = ' ',
|
||||||
|
[vim.diagnostic.severity.WARN] = ' ',
|
||||||
|
[vim.diagnostic.severity.INFO] = ' ',
|
||||||
|
[vim.diagnostic.severity.HINT] = ' ',
|
||||||
|
}";
|
||||||
|
virtual_text = {
|
||||||
|
source = "if_many";
|
||||||
|
spacing = 2;
|
||||||
|
format.__raw = "
|
||||||
|
function(diagnostic)
|
||||||
|
return diagnostic.message
|
||||||
|
end
|
||||||
|
";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user