From d1bc13f8e91fd6535e539865f4b8121120ab78ad Mon Sep 17 00:00:00 2001 From: Xinliang Liu Date: Fri, 27 Nov 2020 02:48:54 +0000 Subject: [PATCH 1/2] Add python file support --- plugin/autoload_cscope.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/autoload_cscope.vim b/plugin/autoload_cscope.vim index 6e8d96d..19a3078 100644 --- a/plugin/autoload_cscope.vim +++ b/plugin/autoload_cscope.vim @@ -176,8 +176,10 @@ augroup autoload_cscope au! au BufEnter *.[chly] call Cycle_csdb() | call Cycle_macros_menus() au BufEnter *.cc call Cycle_csdb() | call Cycle_macros_menus() + au BufEnter *.py call Cycle_csdb() | call Cycle_macros_menus() au BufUnload *.[chly] call Unload_csdb() | call Cycle_macros_menus() au BufUnload *.cc call Unload_csdb() | call Cycle_macros_menus() + au BufUnload *.py call Unload_csdb() | call Cycle_macros_menus() augroup END let &cpo = s:save_cpo From cf927193f15208a48872091f624fb04798e4d8a2 Mon Sep 17 00:00:00 2001 From: Xinliang Liu Date: Tue, 22 Dec 2020 17:13:53 +0800 Subject: [PATCH 2/2] Add go file support --- plugin/autoload_cscope.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/autoload_cscope.vim b/plugin/autoload_cscope.vim index 19a3078..e3fb55b 100644 --- a/plugin/autoload_cscope.vim +++ b/plugin/autoload_cscope.vim @@ -177,9 +177,11 @@ augroup autoload_cscope au BufEnter *.[chly] call Cycle_csdb() | call Cycle_macros_menus() au BufEnter *.cc call Cycle_csdb() | call Cycle_macros_menus() au BufEnter *.py call Cycle_csdb() | call Cycle_macros_menus() + au BufEnter *.go call Cycle_csdb() | call Cycle_macros_menus() au BufUnload *.[chly] call Unload_csdb() | call Cycle_macros_menus() au BufUnload *.cc call Unload_csdb() | call Cycle_macros_menus() au BufUnload *.py call Unload_csdb() | call Cycle_macros_menus() + au BufUnload *.go call Unload_csdb() | call Cycle_macros_menus() augroup END let &cpo = s:save_cpo