From f26b22da86dccb549a3716223cb7df86be805dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 22 Aug 2024 09:50:54 +0000 Subject: [PATCH] feat(neovim): enable modeline support to be able to modify per-file settings --- configuration.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 5f8e677..bb29759 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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;