Skyler Grey | c96cd8a | 2022-06-15 12:28:27 +0100 | [diff] [blame] | 1 | { pkgs, ... }: { |
Skyler Grey | e699532 | 2022-06-12 09:29:17 +0100 | [diff] [blame] | 2 | programs.neovim = { |
| 3 | enable = true; |
Skyler Grey | c96cd8a | 2022-06-15 12:28:27 +0100 | [diff] [blame] | 4 | coc = { |
| 5 | enable = true; |
| 6 | settings = { |
| 7 | "suggest.noselect" = false; |
| 8 | }; |
| 9 | }; |
Skyler Grey | e699532 | 2022-06-12 09:29:17 +0100 | [diff] [blame] | 10 | viAlias = true; |
| 11 | vimAlias = true; |
| 12 | vimdiffAlias = true; |
Skyler Grey | c96cd8a | 2022-06-15 12:28:27 +0100 | [diff] [blame] | 13 | extraConfig = '' |
| 14 | set whichwrap=b,s,<,>,[,] |
Skyler Grey | 2e80a19 | 2022-06-15 14:23:01 +0100 | [diff] [blame] | 15 | set wrap |
| 16 | set number |
Skyler Grey | a949ffd | 2022-06-23 23:32:48 +0100 | [diff] [blame^] | 17 | set cursorline |
| 18 | colorscheme onehalfdark |
| 19 | |
| 20 | if exists('+termguicolors') |
| 21 | let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" |
| 22 | let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" |
| 23 | set termguicolors |
| 24 | endif |
Skyler Grey | c96cd8a | 2022-06-15 12:28:27 +0100 | [diff] [blame] | 25 | ''; |
| 26 | plugins = [ |
| 27 | pkgs.vimPlugins.vim-nix |
Skyler Grey | e96d011 | 2022-06-15 15:39:56 +0100 | [diff] [blame] | 28 | pkgs.vimPlugins.copilot-vim |
Skyler Grey | f2b5e26 | 2022-06-15 15:59:50 +0100 | [diff] [blame] | 29 | pkgs.vimPlugins.coc-tsserver |
Skyler Grey | 5886723 | 2022-06-23 22:02:10 +0100 | [diff] [blame] | 30 | pkgs.vimPlugins.zoomwintab-vim |
| 31 | pkgs.vimPlugins.onehalf |
Skyler Grey | c96cd8a | 2022-06-15 12:28:27 +0100 | [diff] [blame] | 32 | ]; |
Skyler Grey | e699532 | 2022-06-12 09:29:17 +0100 | [diff] [blame] | 33 | }; |
Skyler Grey | c96cd8a | 2022-06-15 12:28:27 +0100 | [diff] [blame] | 34 | |
| 35 | home.sessionVariables.EDITOR = "${pkgs.neovim}/bin/nvim"; |
Skyler Grey | 73c55fc | 2022-06-12 09:18:59 +0100 | [diff] [blame] | 36 | } |