greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / home / features / cli / nvim.nix49 lines · 902B · raw

1{
2  # TMP: neovim suck tbh but it work
3  programs.neovim = {
4    enable = true;
5
6    vimAlias = true;
7    vimdiffAlias = true;
8    defaultEditor = true;
9
10    # wtf
11    withNodeJs = false;
12    withRuby = false;
13    withPython3 = false;
14
15    extraConfig = ''
16      "" Variables
17      let mapleader="\<space>"
18
19      "" Options
20      " General
21      set mouse="!"
22      set magic
23      set hidden
24      set notimeout
25      set autoindent
26      set encoding=utf-8
27      set clipboard=unnamedplus
28
29      " File
30      set autoread
31      set noswapfile
32      set undofile
33
34      " Ui
35      set number
36      set relativenumber
37      set nowrap
38      set notermguicolors
39      set lazyredraw
40      set cc=80
41
42      "" Mapping
43      " useless features tbh why have tab in (n)vim just use tmux or smth
44      nnoremap <Esc> :noh<cr>
45      nnoremap <Tab> :bnext<cr>
46      nnoremap <S-Tab> :bprev<cr>
47    '';
48  };
49}