diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-11 16:35:46 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-11 16:35:46 -0700 |
commit | 9a50b3d72c8e0a992733ba93495d0a585f3f3950 (patch) | |
tree | b686019985ab6ca9e912f92a27990e22761068ec | |
parent | 7d8255bdb7c953eea7e2384d3ca2deebf06e2dde (diff) |
surfingkeys default use firenvim, firenvim default must be invoke with hotkey
-rw-r--r-- | .config/myconf/surfingkeys_config.js | 3 | ||||
-rw-r--r-- | .config/nvim/init.vim | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.config/myconf/surfingkeys_config.js b/.config/myconf/surfingkeys_config.js index 9d6329f7..c4fc95f1 100644 --- a/.config/myconf/surfingkeys_config.js +++ b/.config/myconf/surfingkeys_config.js @@ -19,6 +19,8 @@ unmap('<Alt-s>'); iunmap(':'); // disable all insert mode hotkeys // workaround for surfingkey Ctrl-i can't open firenvim, even with `settings.useNeovim = true;`, not sure why, I just use Ctrl-e for firenvim instead +settings.useNeovim = true; +//iunmap('<Ctrl-i>'); iunmap('<Alt-b>'); iunmap('<Alt-d>'); iunmap('<Alt-f>'); @@ -26,7 +28,6 @@ iunmap('<Alt-w>'); iunmap("<Ctrl-'>"); iunmap('<Ctrl-e>'); iunmap('<Ctrl-f>'); -iunmap('<Ctrl-i>'); iunmap('<Ctrl-u>'); mapkey('n','Find next then center cursor', function(){ diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index a7589777..caa8ea64 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -18,6 +18,9 @@ Plug 'fnune/base16-vim' "Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update call plug#end() +" next line must put below `Plug 'glacambre/firenvim'`, else if click github issue textarea, then click elsewhere, then click textarea, textarea will not be selected (no cursor in it), not sure why +let g:firenvim_config = { 'localSettings': { '.*': { 'takeover': 'never' } } } + " I use only one return for better readability function Autocmd_set_fenc() " need to test &modifiable for gO |