nixos/home/tui/neovim.nix
Evie Litherland-Smith 8c7f8dba52 Rearrange again to reduce complexity
Move collections to use default.nix in relevant directories
Combine GUI elements into gui directory
2023-05-15 11:12:17 +01:00

46 lines
805 B
Nix

{ pkgs, ... }:
{
programs.neovim = {
enable = true;
defaultEditor = true;
extraLuaConfig = builtins.readFile ./config/nvim/init.lua;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
withRuby = true;
withPython3 = true;
extraPackages = with pkgs; [
# Used by installed plugins
gnumake
gcc
fzf
ripgrep
# Python
mypy
black
isort
ruff
python3Packages.jedi-language-server
# Nix
rnix-lsp
nil
# Lua
sumneko-lua-language-server
stylua
# Fortran
fortran-language-server
# Misc
nodePackages.prettier
];
};
home.packages = with pkgs; [ tree-sitter ];
xdg.configFile."nvim/lua".source = ./config/nvim/lua;
}