nix-config/home/neovim/default.nix

44 lines
986 B
Nix

{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withPython3 = true;
extraPackages = with pkgs; [
beancount-language-server
black
docker-compose-language-service
efm-langserver
fd
gcc
hlint
chafa
ltex-ls
lua-language-server
lua54Packages.luacheck
nixd
nixpkgs-fmt
nodePackages.dockerfile-language-server-nodejs
nodePackages.pyright
ripgrep
ruff-lsp
shellcheck
shfmt
sqlfluff
terraform-ls
tflint
vscode-langservers-extracted
];
extraPython3Packages = pyPkgs: with pyPkgs; [ pylint ];
plugins = [ pkgs.vimPlugins.packer-nvim ];
extraLuaConfig = builtins.readFile ./init.lua;
};
home.packages = [ pkgs.neovide ];
home.file = {
notes.source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Nextcloud/notes";
};
}