diff options
author | sils <sils@sils.li> | 2023-06-18 12:28:40 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-06-18 12:29:24 +0200 |
commit | 9defda67f04de4761a3179e45039ed572972c3b9 (patch) | |
tree | 286f0664e58e3490c39fba62b01ec39773c99e4c /users | |
parent | Fix(u/sils/packages): Add xdg-utils, git-crypt; Remove neovim (diff) | |
download | nix-config-9defda67f04de4761a3179e45039ed572972c3b9.tar.gz nix-config-9defda67f04de4761a3179e45039ed572972c3b9.zip |
Feat(u/sils): Add neovim config
Diffstat (limited to 'users')
-rw-r--r-- | users/sils/default.nix | 3 | ||||
-rw-r--r-- | users/sils/neovim/default.nix | 41 |
2 files changed, 43 insertions, 1 deletions
diff --git a/users/sils/default.nix b/users/sils/default.nix index 33d5619..ebc3b0d 100644 --- a/users/sils/default.nix +++ b/users/sils/default.nix @@ -1,10 +1,11 @@ -{...}: { +{hyprland, ...}: { imports = [ ./direnv ./git ./gpg ./grades ./mako + ./neovim ./packages #./river #TODO Update Shell Library #./yambar #TODO Update Shell Library diff --git a/users/sils/neovim/default.nix b/users/sils/neovim/default.nix new file mode 100644 index 0000000..2ac065c --- /dev/null +++ b/users/sils/neovim/default.nix @@ -0,0 +1,41 @@ +{ + programs.neovim = { + enable = true; + defaultEditor = true; + 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; + + ''; + extraConfig = '' + inoremap jj <esc> + vnoremap jj <esc> + ''; + }; +} |