Skip to content

Commit

Permalink
feat(vim): add floaterm keys & add coc-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
moecasts committed Jun 8, 2023
1 parent ce3c3a7 commit 8b05d50
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions nvim/coc-settings.json
17 changes: 13 additions & 4 deletions vimrc/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,19 @@ let NERDTreeIgnore=['\.swp']
let g:NERDSpaceDelims = 1

" 内置终端
let g:floaterm_keymap_new = '<leader>fn'
let g:floaterm_keymap_prev = '<leader>fh'
let g:floaterm_keymap_next = '<leader>fl'
let g:floaterm_keymap_toggle = '<leader>ft'
let g:floaterm_keymap_new = '<F6>'
let g:floaterm_keymap_prev = '<F7>'
let g:floaterm_keymap_next = '<F8>'
let g:floaterm_keymap_toggle = '<F9>'

nnoremap <silent> <F7> :FloatermNew<CR>
tnoremap <silent> <F7> <C-\><C-n>:FloatermNew<CR>
nnoremap <silent> <F8> :FloatermPrev<CR>
tnoremap <silent> <F8> <C-\><C-n>:FloatermPrev<CR>
nnoremap <silent> <F9> :FloatermNext<CR>
tnoremap <silent> <F9> <C-\><C-n>:FloatermNext<CR>
nnoremap <silent> <F12> :FloatermToggle<CR>
tnoremap <silent> <F12> <C-\><C-n>:FloatermToggle<CR>
" fzf
let $FZF_DEFAULT_COMMAND='rg --files --hidden'
Expand Down
4 changes: 3 additions & 1 deletion vimrc/coc-settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"coc.preferences.formatOnSaveFiletypes": [
"__coc.preferences.formatOnSaveFiletypes": [
"css",
"less",
"scss",
Expand All @@ -14,6 +14,8 @@
"_coc.preferences.formatOnSaveFiletypes": [
"python"
],
"eslint.enable": true,
"eslint.autoFixOnSave": true,
"coc.preferences.jumpCommand": "drop",
"coc.preferences.rootPatterns": [
".git",
Expand Down

0 comments on commit 8b05d50

Please sign in to comment.