mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-03 17:45:52 +02:00
added stuff for floaterm
This commit is contained in:
parent
434568b5bb
commit
cf2e506ff0
4 changed files with 42 additions and 5 deletions
7
init.vim
7
init.vim
|
@ -40,3 +40,10 @@ else
|
|||
luafile $HOME/.config/nvim/lua/plug-colorizer.lua
|
||||
" source $HOME/.config/nvim/plug-config/easymotion.vim
|
||||
endif
|
||||
|
||||
" Experimental
|
||||
let g:codi#rightalign=0
|
||||
let g:floaterm_gitcommit='floaterm'
|
||||
let g:floaterm_autoinsert=1
|
||||
let g:floaterm_wintitle=0
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
|
||||
imap <C-h> <C-w>h
|
||||
imap <C-j> <C-w>j
|
||||
imap <C-k> <C-w>k
|
||||
imap <C-l> <C-w>l
|
||||
" g Leader key
|
||||
let mapleader=" "
|
||||
" let localleader=" "
|
||||
|
@ -47,6 +52,17 @@ else
|
|||
nnoremap <C-k> <C-w>k
|
||||
nnoremap <C-l> <C-w>l
|
||||
|
||||
" Terminal window navigation
|
||||
tnoremap <C-h> <C-\><C-N><C-w>h
|
||||
tnoremap <C-j> <C-\><C-N><C-w>j
|
||||
tnoremap <C-k> <C-\><C-N><C-w>k
|
||||
tnoremap <C-l> <C-\><C-N><C-w>l
|
||||
inoremap <C-h> <C-\><C-N><C-w>h
|
||||
inoremap <C-j> <C-\><C-N><C-w>j
|
||||
inoremap <C-k> <C-\><C-N><C-w>k
|
||||
inoremap <C-l> <C-\><C-N><C-w>l
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
|
||||
" Use alt + hjkl to resize windows
|
||||
nnoremap <silent> <M-j> :resize -2<CR>
|
||||
nnoremap <silent> <M-k> :resize +2<CR>
|
||||
|
|
|
@ -43,6 +43,18 @@ let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
|
|||
|
||||
" Group mappings
|
||||
|
||||
" a is for actions
|
||||
let g:which_key_map.a = {
|
||||
\ 'name' : '+actions' ,
|
||||
\ 'c' : [':ColorizerToggle' , 'colorizer'],
|
||||
\ 'e' : [':CocCommand explorer' , 'explorer'],
|
||||
\ 'n' : [':set nonumber!' , 'line-numbers'],
|
||||
\ 'r' : [':set norelativenumber!' , 'relative line nums'],
|
||||
\ 's' : [':let @/ = ""' , 'remove search highlight'],
|
||||
\ 't' : [':FloatermToggle' , 'terminal'],
|
||||
\ 'v' : [':Vista!!' , 'tag viewer'],
|
||||
\ }
|
||||
|
||||
" b is for buffer
|
||||
let g:which_key_map.b = {
|
||||
\ 'name' : '+buffer' ,
|
||||
|
@ -93,7 +105,7 @@ let g:which_key_map.g = {
|
|||
\ 'A' : [':Git add %' , 'add current'],
|
||||
\ 'b' : [':Git blame' , 'blame'],
|
||||
\ 'B' : [':GBrowse' , 'browse'],
|
||||
\ 'c' : [':Git commit -m "autocommit"' , 'commit'],
|
||||
\ 'c' : [':Git commit' , 'commit'],
|
||||
\ 'd' : [':Git diff' , 'diff'],
|
||||
\ 'D' : [':Gdiffsplit' , 'diff split'],
|
||||
\ 'g' : [':GGrep' , 'git grep'],
|
||||
|
@ -151,19 +163,19 @@ let g:which_key_map.l = {
|
|||
\ 'Z' : [':CocEnable' , 'enable CoC'],
|
||||
\ }
|
||||
|
||||
|
||||
" t is for toggle
|
||||
let g:which_key_map.t = {
|
||||
\ 'name' : '+toggle' ,
|
||||
\ 'c' : [':ColorizerToggle' , 'colorizer'],
|
||||
\ 'name' : '+terminal' ,
|
||||
\ 't' : [':CocCommand floaterm.toggle' , 'toggle'],
|
||||
\ 'e' : [':CocCommand explorer' , 'explorer'],
|
||||
\ 'n' : [':set nonumber!' , 'line-numbers'],
|
||||
\ 'r' : [':set norelativenumber!' , 'relative line nums'],
|
||||
\ 's' : [':let @/ = ""' , 'remove search highlight'],
|
||||
\ 't' : [':FloatermToggle' , 'terminal'],
|
||||
\ 'v' : [':Vista!!' , 'tag viewer'],
|
||||
\ }
|
||||
|
||||
|
||||
|
||||
" Register which key map
|
||||
call which_key#register('<Space>', "g:which_key_map")
|
||||
|
||||
|
|
|
@ -86,6 +86,8 @@ call plug#begin('~/.config/nvim/autoload/plugged')
|
|||
" Plug 'jbgutierrez/vim-better-comments'
|
||||
" Echo doc
|
||||
" Plug 'Shougo/echodoc.vim'
|
||||
" Interactive code
|
||||
Plug 'metakirby5/codi.vim'
|
||||
endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue