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