diff --git a/.vimrc.plugins-settings b/.vimrc.plugins-settings index 47717adb..40c74b4f 100644 --- a/.vimrc.plugins-settings +++ b/.vimrc.plugins-settings @@ -30,11 +30,11 @@ set signcolumn=yes autocmd CursorHold * silent call CocActionAsync('highlight') augroup mygroup - autocmd! - " Setup formatexpr specified filetype(s). - autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') - " Update signature help on jump placeholder. - autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') + autocmd! + " Setup formatexpr specified filetype(s). + autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') + " Update signature help on jump placeholder. + autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') augroup end command! -nargs=0 Format :call CocAction('format') @@ -44,6 +44,6 @@ command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organize set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " ack -let g:ackprg = 'rga --vimgrep --smart-case' +let g:ackprg = 'rg --vimgrep --smart-case' let g:ack_autoclose = 1 let g:ack_use_cword_for_empty_search = 1 diff --git a/nixos/home-manager/programs/vim.nix b/nixos/home-manager/programs/vim.nix index 3fe47161..07b5a4c1 100644 --- a/nixos/home-manager/programs/vim.nix +++ b/nixos/home-manager/programs/vim.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: { home.file.".vimrc".source = ../../../.vimrc.nixos; + home.packages = with pkgs; [ + ripgrep + ]; programs.neovim = { enable = true; viAlias = true;