diff --git a/nvim/coc-languages/sh.vim b/nvim/coc-languages/sh.vim index 293dd51..b76aabf 100644 --- a/nvim/coc-languages/sh.vim +++ b/nvim/coc-languages/sh.vim @@ -1,2 +1,2 @@ -let g:coc_global_extensions += ['coc-sh'] +let g:dotfiles_coc_extensions += ['coc-sh'] let g:coc_filetypes += ['sh', 'zsh'] diff --git a/nvim/init.vim b/nvim/init.vim index 61edcfb..6613aaf 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -12,6 +12,7 @@ let g:loaded_airline = 1 " Enable the clearly superior mode. let g:vim_ide = 1 +let g:dotfiles_build_coc_from_source = 1 " Small plugin configs let g:dashboard_default_executive ='fzf' diff --git a/zsh/plugins.zsh b/zsh/plugins.zsh index 9d56fb2..09158bd 100755 --- a/zsh/plugins.zsh +++ b/zsh/plugins.zsh @@ -27,6 +27,16 @@ _plugin project 'https://git.sr.ht/~keanucode/scripts/blob/master/project/projec unset gh_comp_path fi; unset gh_bin + if bw_bin="$(command_locate bw)" && [[ -n "$bw_bin" ]]; then + bw_comp_path="${ZSH_CACHE_DIR}/site-functions/_bw" + if [[ "$bw_bin" -nt "$bw_comp_path" || ! -s "$bw_comp_path" ]]; then + _perf_timer_start "generate bw completions" + "$bw_bin" completion --shell zsh >| "$bw_comp_path" + _perf_timer_stop "generate bw completions" + fi + unset bw_comp_path + fi; unset bw_bin + _plugin nim-compl 'https://raw.githubusercontent.com/nim-lang/Nim/devel/tools/nim.zsh-completion' from=url \ after_load='plugin-cfg-path fpath prepend ""'