Add diagnostics plugin and icons to Neovim configuration
This commit is contained in:
parent
1178b3ee53
commit
2d0d477a99
4 changed files with 193 additions and 139 deletions
|
@ -1,7 +1,21 @@
|
|||
{ pkgs, ... }: {
|
||||
{ ... }: {
|
||||
programs.nixvim.plugins = {
|
||||
lsp = {
|
||||
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
|
||||
'';
|
||||
servers = {
|
||||
cssls.enable = true;
|
||||
dartls.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue