vim: screw list grep/files
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
"list.normalMappings": {
|
"list.normalMappings": {
|
||||||
"e": "action:drop"
|
"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.goplsUseDaemon": true,
|
||||||
"go.goplsOptions": {
|
"go.goplsOptions": {
|
||||||
"semanticTokens": true
|
"semanticTokens": true
|
||||||
|
9
vimrc
9
vimrc
@@ -344,7 +344,6 @@ set noshowmode
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
set termguicolors
|
|
||||||
set t_8f=[38:2::%lu:%lu:%lum
|
set t_8f=[38:2::%lu:%lu:%lum
|
||||||
set t_8b=[48: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=* C !g++ %:p <Args>
|
||||||
command -nargs=* CR rightb 15split +term\ g++\ <Args>\ %:p\ &&\ ./a.out
|
command -nargs=* CR rightb 15split +term\ g++\ <Args>\ %:p\ &&\ ./a.out
|
||||||
command R rightb 15split +term\ ./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)
|
function MyCDB(file)
|
||||||
|
Reference in New Issue
Block a user