blob: 222743256ce873acae5cbfcf1c68787ff1bdb20e [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 Greyc96cd8a2022-06-15 12:28:27 +010022 ];
Skyler Greye6995322022-06-12 09:29:17 +010023 };
Skyler Greyc96cd8a2022-06-15 12:28:27 +010024
25 home.sessionVariables.EDITOR = "${pkgs.neovim}/bin/nvim";
Skyler Grey73c55fc2022-06-12 09:18:59 +010026}