Refactor configuration to be more modular.
TODO: Update the documentation in the README to reflect changes
This commit is contained in:
parent
7a30ff9f94
commit
af0078d7af
32 changed files with 889 additions and 1125 deletions
44
modules/packages/nvim.nix
Normal file
44
modules/packages/nvim.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.persistence."/nix/persist".users.hu.directories = [
|
||||
".local/share/nvim"
|
||||
".local/state/nvim"
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
home-manager.users.hu = {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraPackages = with pkgs; [
|
||||
lua-language-server
|
||||
nodePackages.intelephense
|
||||
nodePackages.typescript-language-server
|
||||
clang-tools
|
||||
ripgrep
|
||||
nil
|
||||
gcc
|
||||
basedpyright
|
||||
rust-analyzer
|
||||
zathura
|
||||
git
|
||||
texliveFull
|
||||
luajitPackages.jsregexp
|
||||
luajitPackages.luarocks
|
||||
fd
|
||||
texlab
|
||||
haskell-language-server
|
||||
];
|
||||
};
|
||||
|
||||
home.file."/home/hu/.config/nvim" = {
|
||||
source = ../../dotfiles/nvim;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue