This commit is contained in:
Christian Nieves
2022-12-11 01:39:57 +00:00
parent 66e9abbdee
commit 38d06bc325
4 changed files with 32 additions and 30 deletions

View File

@ -1,31 +1,24 @@
require('nvim-treesitter.configs').setup {
-- A list of parser names, or "all"
-- ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
ensure_installed = "all",
-- A list of parser names, or "all"
-- ensure_installed = { "c", "lua", "vim", "java", "kotlin"},
ensure_installed = "all",
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
highlight = {
-- `false` will disable the whole extension
enable = true,
-- rainbow markdown
-- custom_captures = {
-- ["h1"] = "h1",
-- ["_h1"] = "_h1",
-- ["h2"] = "h2",
-- ["_h2"] = "_h2",
-- ["h3"] = "h3",
-- ["_h3"] = "_h3",
-- ["h4"] = "h4",
-- ["_h4"] = "_h4",
-- ["h5"] = "h5",
-- ["_h5"] = "_h5",
-- },
highlight = {
-- `false` will disable the whole extension
enable = true,
indent = {
enable = true
},
-- disable = {"java"},
disable = {"java"},
--
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
-- additional_vim_regex_highlighting = true,
-- additional_vim_regex_highlighting = {"java"},
},
}

View File

@ -64,15 +64,25 @@ function BlazeTestDebug() abort
call <SID>blazeExec("blaze test --java_debug", blaze#GetTargets())
endfunction
function BuildCleaner() abort
function BuildCleanerFile() abort
exe VimuxRunCommand("build_cleaner " . expand('%'))
endfunction
function UnusedDeps() abort
exe VimuxRunCommand("unused_deps --nouse_build_api --blaze_options='--config=gmscore_tap' " . join(blaze#GetTargets(), ' '))
endfunction
function BuildCleanerTarget() abort
exe VimuxRunCommand("build_cleaner " . join(blaze#GetTargets(), ' '))
endfunction
nnoremap <Leader>br :call BlazeRun()<cr>
nnoremap <Leader>bb :call BlazeBuild()<cr>
nnoremap <Leader>bt :call BlazeTest()<cr>
nnoremap <Leader>btd :call BlazeTestDebug()<cr>
nnoremap <Leader>bc :call BuildCleaner()<cr>
nnoremap <Leader>bc :call BuildCleanerTarget()<cr>
nnoremap <Leader>bcf :call BuildCleanerFile()<cr>
nnoremap <Leader>ud :call UnusedDeps()<cr>
let g:asyncrun_open = 1

View File

@ -60,10 +60,6 @@ set splitbelow " Puts new split windows to the bottom of the current
set scrolljump=5 " Line to scroll when cursor leaves screen
set scrolloff=3 " Minumum lines to keep above and below cursor
" makes sure that when opening, files are normal, i.e. not folded.
set nofoldenable
set foldmethod=syntax
let g:clipboard = #{
\ name: 'xsel',
\ copy: {
@ -165,3 +161,6 @@ endfunction
set colorcolumn=80
set mouse=
" makes sure that when opening, files are normal, i.e. not folded.
set nofoldenable

View File

@ -13,7 +13,7 @@ autoload -Uz add-zsh-hook
add-zsh-hook chpwd g3path::hook
g3path::zle::accept-line () {
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui|builddoctor) ]]; then
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui|builddoctor|unused_deps) ]]; then
BUFFER=${BUFFER// \/\// $GOOGLE3_ROOT\/}
fi
zle .accept-line