Files
nix-stuff/nixvim/default.nix
Shelvacu 91a27769ba stuff
2025-05-23 17:56:46 -07:00

43 lines
913 B
Nix

{
config,
lib,
minimal,
...
}:
{
imports = [ ./lean.nix ];
opts = {
smartindent = true;
expandtab = true;
shiftwidth = 2;
softtabstop = -1;
};
plugins.comment.enable = true;
plugins.vim-surround.enable = true;
plugins.lsp = {
enable = true;
# for list of available servers see https://nix-community.github.io/nixvim/24.11/plugins/lsp/ on the left side
servers = {
bashls.enable = true;
html.enable = true;
jsonls.enable = true;
lua_ls.enable = !minimal;
nixd = {
enable = true;
cmd = [
(lib.getExe config.plugins.lsp.servers.nixd.package)
"--log=error"
];
};
pyright.enable = !minimal;
rust_analyzer = {
enable = !minimal;
installCargo = false;
installRustc = false;
};
ts_ls.enable = !minimal;
yamlls.enable = true;
};
};
}