fix project search in vim
This commit is contained in:
parent
10d48bf350
commit
801c812259
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.file.".vimrc".source = ../../../.vimrc.nixos;
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
|
|
Loading…
Reference in a new issue