nixos/home/tui/neovim.nix

58 lines
1.1 KiB
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
git
curl
gnutar
gnumake
gnused
gcc
fzf
ripgrep
tree-sitter
];
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
withRuby = true;
withPython3 = true;
extraPython3Packages = ps: with ps; [
# For Magma-nvim
jupyter_client
ueberzug
pillow
cairosvg
pnglatex
plotly
];
extraPackages = with pkgs; [
# Language servers
python3Packages.python-lsp-server
python3Packages.jedi-language-server
python3Packages.ruff-lsp
nil
lua-language-server
fortls
# nodePackages.pyright
nodePackages.yaml-language-server
nodePackages.vim-language-server
nodePackages.bash-language-server
# Null LSP formatters
alejandra
beautysh
black
nodePackages.cspell
nodePackages.fixjson
fprettify
isort
python3Packages.mdformat
shellharden
stylua
];
};
}