greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / home / features / cli / nvim.nix48 lines · 876B · 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 lazyredraw
39      set cc=80
40
41      "" Mapping
42      " useless features tbh why have tab in (n)vim just use tmux or smth
43      nnoremap <Esc> :noh<cr>
44      nnoremap <Tab> :bnext<cr>
45      nnoremap <S-Tab> :bprev<cr>
46    '';
47  };
48}