vim: screw list grep/files

This commit is contained in:
2025-07-10 18:26:47 +08:00
parent ad3de86745
commit 2e1f2b8a5e
2 changed files with 6 additions and 8 deletions

View File

@@ -3,7 +3,10 @@
"list.normalMappings": {
"e": "action:drop"
},
"go.goplsPath": "/home/edgar/.local/share/gopath/bin/gopls",
"list.source.files.command": "rg",
"list.source.files.args": ["--files"],
"list.source.files.filterByName": true,
"go.goplsPath": "/usr/bin/gopls",
"go.goplsUseDaemon": true,
"go.goplsOptions": {
"semanticTokens": true

9
vimrc
View File

@@ -344,7 +344,6 @@ set noshowmode
set termguicolors
set t_8f=[38:2::%lu:%lu:%lum
set t_8b=[48:2::%lu:%lu:%lum
@@ -352,13 +351,9 @@ set t_8b=[48:2::%lu:%lu:%lum
command -nargs=* C !g++ %:p <Args>
command -nargs=* CR rightb 15split +term\ g++\ <Args>\ %:p\ &&\ ./a.out
command R rightb 15split +term\ ./a.out
command! -nargs=+ -complete=custom,s:GrepArgs G exe 'CocList --normal grep '.<q-args>
command! -nargs=* G CocList --normal --auto-preview grep -folder <Args>
command! -nargs=* F CocList --normal --auto-preview files -folder <Args>
function! s:GrepArgs(...)
let list = ['-S', '-smartcase', '-i', '-ignorecase', '-w', '-word',
\ '-e', '-regex', '-u', '-skip-vcs-ignores', '-t', '-extension']
return join(list, "\n")
endfunction
function MyCDB(file)