dotfiles/home/nvim/default.nix

82 lines
1.7 KiB
Nix
Raw Normal View History

2024-05-31 18:00:12 +02:00
{ config, pkgs, ... }:
{
2024-06-01 16:56:07 +02:00
home.packages = with pkgs; [
2024-06-04 16:15:48 +02:00
nixd
2024-06-01 16:56:07 +02:00
clang
go
nodejs
luarocks
jre
python3
python311Packages.pip
julia
unzip
dotnet-sdk_8
cargo
2024-06-05 20:05:34 +02:00
neovim-unwrapped
2024-06-12 15:44:18 +02:00
tree-sitter
2024-06-12 23:20:14 +02:00
# LSPs
texlab
ltex-ls
pyright
libclang
cmake-language-server
vscode-langservers-extracted
typescript
2024-06-13 14:09:54 +02:00
yaml-language-server
2024-06-14 21:14:07 +02:00
bash-language-server
2024-06-12 23:20:14 +02:00
nodePackages.vue-language-server
docker-compose-language-service
dockerfile-language-server-nodejs
vim-language-server
lua-language-server
rust-analyzer
gopls
jdt-language-server
# emmet-ls
emmet-language-server
ruff-lsp
csharp-ls
typst-lsp
2024-06-01 16:56:07 +02:00
];
2024-05-31 18:00:12 +02:00
2024-06-01 16:56:07 +02:00
home.file."${config.xdg.configHome}/nvim" = {
source = ./files;
recursive = true;
};
2024-05-31 18:00:12 +02:00
2024-06-01 16:56:07 +02:00
home.file.".clang-tidy".text = ''
Checks: "*,
-abseil-*,
-altera-*,
-android-*,
-fuchsia-*,
-google-*,
-llvm*,
-zircon-*,
-bugprone-easily-swappable-parameters
-readability-identifier-length
-readability-avoid-const-params-in-decls,
-readability-magic-numbers
-bugprone-narrowing-conversions
-modernize-use-trailing-return-type
-cppcoreguidelines-pro-type-union-access
-modernize-use-nodiscard
-cppcoreguidelines-narrowing-conversions
-cppcoreguidelines-avoid-magic-numbers
-Wsign-compare
-hicpp-uppercase-literal-suffix
-readability-uppercase-literal-suffix
-readability-named-parameter
-performance-avoid-endl"
WarningsAsErrors: '''
HeaderFilterRegex: '''
FormatStyle: none
'';
2024-06-05 20:05:34 +02:00
home.sessionVariables = {
EDITOR = "nvim";
2024-06-01 16:56:07 +02:00
};
2024-05-31 18:00:12 +02:00
}