summaryrefslogtreecommitdiffstats
path: root/users/sils/neovim
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-06-25 11:44:10 +0200
committersils <sils@sils.li>2023-06-25 11:46:02 +0200
commitf972be9375e8ff82a6fbc3402ec47d4c8b611fcf (patch)
tree6ef9b8e034ba89985c31a410ab88382b2b5476f9 /users/sils/neovim
parentFix(u/sils): Remove hyprland attribute (diff)
downloadnix-config-f972be9375e8ff82a6fbc3402ec47d4c8b611fcf.zip
Feat: Disable grades, as this would stop config from building.
Diffstat (limited to 'users/sils/neovim')
-rw-r--r--users/sils/neovim/default.nix29
-rw-r--r--users/sils/neovim/lua/options.lua25
2 files changed, 26 insertions, 28 deletions
diff --git a/users/sils/neovim/default.nix b/users/sils/neovim/default.nix
index 2ac065c..c9e5ed5 100644
--- a/users/sils/neovim/default.nix
+++ b/users/sils/neovim/default.nix
@@ -5,34 +5,7 @@
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
- extraLuaConfig = ''
- local set = vim.opt;
-
- set.autoindent = true;
- set.cindent = true;
- set.incsearch = true;
- set.ignorecase = true;
- set.smartcase = true;
- set.showmatch = true;
- set.hlsearch = false;
-
- set.mouse = "";
- set.number = true;
- set.relativenumber = true;
- set.shell = zsh;
-
- set.spell = true;
- set.spelllang = "en_us,de_de";
- set.spelloptions = "camel";
-
- set.syntax = "ON";
-
- set.shiftwidth = 2;
- set.tabstop = 2;
- set.expandtab = true;
- set.so = 999;
-
- '';
+ extraLuaConfig = builtins.readFile ./lua/options.lua;
extraConfig = ''
inoremap jj <esc>
vnoremap jj <esc>
diff --git a/users/sils/neovim/lua/options.lua b/users/sils/neovim/lua/options.lua
new file mode 100644
index 0000000..2d9fa2d
--- /dev/null
+++ b/users/sils/neovim/lua/options.lua
@@ -0,0 +1,25 @@
+ local set = vim.opt;
+
+ set.autoindent = true;
+ set.cindent = true;
+ set.incsearch = true;
+ set.ignorecase = true;
+ set.smartcase = true;
+ set.showmatch = true;
+ set.hlsearch = false;
+
+ set.mouse = "";
+ set.number = true;
+ set.relativenumber = true;
+ set.shell = zsh;
+
+ set.spell = true;
+ set.spelllang = "en_us,de_de";
+ set.spelloptions = "camel";
+
+ set.syntax = "ON";
+
+ set.shiftwidth = 2;
+ set.tabstop = 2;
+ set.expandtab = true;
+ set.so = 999;