nix-config/modules/home-manager/neovim/default.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
{
programs.neovim = {
2023-02-03 17:42:08 +01:00
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
withPython3 = true;
extraPackages = with pkgs; [
2023-07-22 00:33:57 +02:00
beancount-language-server
2023-02-03 17:42:08 +01:00
black
2023-07-22 00:33:57 +02:00
docker-compose-language-service
efm-langserver
2023-07-23 16:03:14 +02:00
fd
2023-07-22 00:33:57 +02:00
gcc
hlint
2023-07-29 20:58:33 +02:00
chafa
2023-07-22 00:33:57 +02:00
ltex-ls
lua-language-server
lua54Packages.luacheck
2023-07-22 00:33:57 +02:00
nixd
nixpkgs-fmt
nodePackages.dockerfile-language-server-nodejs
2023-02-03 17:42:08 +01:00
nodePackages.pyright
2023-07-23 16:03:14 +02:00
ripgrep
2023-07-22 00:33:57 +02:00
ruff-lsp
shellcheck
shfmt
2023-07-22 00:33:57 +02:00
sqlfluff
terraform-ls
tflint
vscode-langservers-extracted
2023-02-03 17:42:08 +01:00
];
extraPython3Packages = pyPkgs: with pyPkgs; [ pylint ];
};
2023-07-23 16:03:14 +02:00
home.packages = [ pkgs.neovide ];
2023-08-12 17:33:27 +02:00
home.sessionVariables = {
EDITOR = "${pkgs.neovim}/bin/nvim";
VISUAL = "${pkgs.neovim}/bin/nvim";
};
2023-07-29 20:58:33 +02:00
home.file = {
notes.source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Nextcloud/notes";
2023-08-12 17:33:27 +02:00
nvim_init = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/configs/neovim-config/nvim/init.lua";
target = "${config.xdg.configHome}/nvim/init.lua";
};
nvim_lua = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/configs/neovim-config/nvim/lua";
target = "${config.xdg.configHome}/nvim/lua";
};
2023-07-29 20:58:33 +02:00
};
2023-08-12 17:33:27 +02:00
2022-01-18 09:32:55 +01:00
}