1
0
Fork 0

Reorganize common configuration

This commit is contained in:
Avery 2025-06-21 20:02:48 +02:00
parent b0435707e4
commit 84dfefcb45
Signed by: Avery
GPG key ID: B684FD451B692E04
18 changed files with 81 additions and 128 deletions

View file

@ -1,44 +0,0 @@
{ ... }: {
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;
jdtls.enable = true;
nil_ls.enable = true;
pyright.enable = true;
ts_ls.enable = true;
rust_analyzer = {
enable = true;
installCargo = false;
installRustc = false;
};
svelte.enable = true;
volar = {
enable = true;
tslsIntegration = true;
# extraOptions.init_options.vue.hybridMode = false;
};
};
};
# nvim-jdtls = {
# enable = true;
# data = "~/.cache/jdtls/workspace";
# };
};
}