Fix: nvim config in separate file
This commit is contained in:
parent
55aad968ab
commit
1a2f93f977
2 changed files with 35 additions and 28 deletions
32
hm/common/nvim.nix
Normal file
32
hm/common/nvim.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, nvim-config, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
ruff
|
||||
pyright
|
||||
gcc
|
||||
marksman
|
||||
lua-language-server
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
enable = true ;
|
||||
viAlias = true ;
|
||||
vimAlias = true;
|
||||
};
|
||||
home.file.".config/nvim" = {
|
||||
source = nvim-config ;
|
||||
recursive = true ;
|
||||
};
|
||||
programs.ruff = {
|
||||
enable = true ;
|
||||
settings = {
|
||||
line-length = 100;
|
||||
per-file-ignores = { "__init__.py" = [ "F401" ]; };
|
||||
lint = {
|
||||
select = [ "E4" "E7" "E9" "F" ];
|
||||
ignore = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
# vim: set ts=2 sw=2 sts=2 et :
|
||||
Loading…
Add table
Add a link
Reference in a new issue