nix-config/home/neovim/default.nix

38 lines
821 B
Nix

{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withPython3 = true;
extraPackages = with pkgs; [
ansible-language-server
beancount-language-server
black
docker-compose-language-service
efm-langserver
gcc
hlint
ltex-ls
lua-language-server
lua54Packages.luacheck
nixd
nixpkgs-fmt
nodePackages.dockerfile-language-server-nodejs
nodePackages.pyright
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;
};
}