1
0
Fork 0

Add diagnostics plugin and icons to Neovim configuration

This commit is contained in:
Avery 2025-03-11 13:53:51 +00:00
parent 1178b3ee53
commit 2d0d477a99
Signed by: Avery
GPG key ID: B684FD451B692E04
4 changed files with 193 additions and 139 deletions

View file

@ -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;