nix-config/home/neovim/default.nix

51 lines
1.1 KiB
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.lazy-nvim ];
extraLuaConfig = builtins.readFile ./init.lua;
};
home.file.lua = {
recursive = true;
source = ./lua;
target = "/.config/nvim/lua";
};
home.packages = [ pkgs.neovide ];
home.file = {
notes.source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Nextcloud/notes";
};
}