43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
neovim-unwrapped
|
|
# outils dont lazy.nvim / les LSP ont besoin
|
|
ripgrep
|
|
fd
|
|
gcc
|
|
gnumake
|
|
nodejs
|
|
unzip
|
|
# formatters généraux
|
|
lua-language-server
|
|
stylua
|
|
nil
|
|
nixfmt-rfc-style # binaire "nixfmt" pour conform
|
|
# LSP serveurs (remplacent Mason)
|
|
marksman
|
|
pyright
|
|
# LSP que tu avais dans Mason — décommente selon besoin
|
|
clang-tools # clangd
|
|
bash-language-server # bashls
|
|
vscode-langservers-extracted # cssls, jsonls, html, eslint
|
|
typescript-language-server # ts_ls
|
|
vim-language-server # vimls
|
|
jdt-language-server # jdtls (Java)
|
|
# formatters / linters shell + python
|
|
shellcheck
|
|
shfmt
|
|
black
|
|
isort
|
|
# vimtex forward search + treesitter CLI
|
|
xdotool
|
|
tree-sitter
|
|
(python3.withPackages (ps: with ps; [ pynvim debugpy ]))
|
|
];
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
home.shellAliases = { vi = "nvim"; vim = "nvim"; };
|
|
# ~/.config/nvim -> tes dotfiles, éditables en place
|
|
xdg.configFile."nvim".source =
|
|
config.lib.file.mkOutOfStoreSymlink
|
|
"${config.home.homeDirectory}/nixos-config/dotfiles/nvim";
|
|
}
|