From 9defda67f04de4761a3179e45039ed572972c3b9 Mon Sep 17 00:00:00 2001 From: sils Date: Sun, 18 Jun 2023 12:28:40 +0200 Subject: Feat(u/sils): Add neovim config --- users/sils/default.nix | 3 ++- users/sils/neovim/default.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 users/sils/neovim/default.nix (limited to 'users') 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 + vnoremap jj + ''; + }; +} -- cgit 1.4.1