aboutsummaryrefslogtreecommitdiffstats
path: root/hm/neovim
diff options
context:
space:
mode:
Diffstat (limited to 'hm/neovim')
-rw-r--r--hm/neovim/default.nix16
-rw-r--r--hm/neovim/lua/options.lua25
2 files changed, 41 insertions, 0 deletions
diff --git a/hm/neovim/default.nix b/hm/neovim/default.nix
new file mode 100644
index 0000000..947f0bf
--- /dev/null
+++ b/hm/neovim/default.nix
@@ -0,0 +1,16 @@
+{pkgs, ...}: {
+ programs.neovim = {
+ enable = true;
+ defaultEditor = true;
+ viAlias = true;
+ vimAlias = true;
+ vimdiffAlias = true;
+ #extraLuaConfig = builtins.readFile ./lua/options.lua;
+ # extraConfig = ''
+ # inoremap jj <esc>
+ # '';
+ # plugins = with pkgs.vimPlugins; [
+ # neo-tree-nvim
+ # ];
+ };
+}
diff --git a/hm/neovim/lua/options.lua b/hm/neovim/lua/options.lua
new file mode 100644
index 0000000..2d9fa2d
--- /dev/null
+++ b/hm/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;