feat(neovim): enable modeline support to be able to modify per-file settings
This commit is contained in:
parent
e4aaf2dbba
commit
f26b22da86
1 changed files with 13 additions and 1 deletions
|
|
@ -1,10 +1,10 @@
|
|||
# vim: tabstop=2 shiftwidth=2 expandtab
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
|
|
@ -17,6 +17,18 @@
|
|||
core.editor = "nvim";
|
||||
};
|
||||
};
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
configure = {
|
||||
customRC = ''
|
||||
set modeline
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue