fix project search in vim

This commit is contained in:
Cyryl Płotnicki 2021-09-22 12:49:08 +01:00
parent 10d48bf350
commit 801c812259
2 changed files with 9 additions and 6 deletions

View file

@ -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

View file

@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{
home.file.".vimrc".source = ../../../.vimrc.nixos;
home.packages = with pkgs; [
ripgrep
];
programs.neovim = {
enable = true;
viAlias = true;