blob: 04ccf67cd530762a3fc675f18350b313f73645ae [file] [log] [blame]
Skyler Greyc96cd8a2022-06-15 12:28:27 +01001{ pkgs, ... }: {
Skyler Greye6995322022-06-12 09:29:17 +01002 programs.neovim = {
3 enable = true;
Skyler Greyc96cd8a2022-06-15 12:28:27 +01004 coc = {
5 enable = true;
6 settings = {
7 "suggest.noselect" = false;
8 };
9 };
Skyler Greye6995322022-06-12 09:29:17 +010010 viAlias = true;
11 vimAlias = true;
12 vimdiffAlias = true;
Skyler Greyc96cd8a2022-06-15 12:28:27 +010013 extraConfig = ''
14 set whichwrap=b,s,<,>,[,]
Skyler Grey2e80a192022-06-15 14:23:01 +010015 set wrap
16 set number
Skyler Greyc96cd8a2022-06-15 12:28:27 +010017 '';
18 plugins = [
19 pkgs.vimPlugins.vim-nix
Skyler Greye96d0112022-06-15 15:39:56 +010020 pkgs.vimPlugins.copilot-vim
Skyler Greyf2b5e262022-06-15 15:59:50 +010021 pkgs.vimPlugins.coc-tsserver
Skyler Grey58867232022-06-23 22:02:10 +010022 pkgs.vimPlugins.zoomwintab-vim
23 pkgs.vimPlugins.onehalf
Skyler Greyc96cd8a2022-06-15 12:28:27 +010024 ];
Skyler Greye6995322022-06-12 09:29:17 +010025 };
Skyler Greyc96cd8a2022-06-15 12:28:27 +010026
27 home.sessionVariables.EDITOR = "${pkgs.neovim}/bin/nvim";
Skyler Grey73c55fc2022-06-12 09:18:59 +010028}