diff options
author | Chris <[email protected]> | 2020-04-01 12:07:50 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2020-04-01 12:07:50 -0400 |
commit | 7a5a320a835dc0e1efb005dcf4aa3d593286778b (patch) | |
tree | 9dbccf9348507db8abaacd5797d94e4d74f4b07e /modules | |
parent | 4ed7236a6fccf027fe020330e8d0c4338a1e4aaf (diff) |
fixed floating window in which key
Diffstat (limited to 'modules')
-rw-r--r-- | modules/general.vim | 4 | ||||
-rw-r--r-- | modules/plugins.vim | 11 | ||||
-rw-r--r-- | modules/ranger.vim | 2 | ||||
-rw-r--r-- | modules/vim-which-key.vim | 4 |
4 files changed, 11 insertions, 10 deletions
diff --git a/modules/general.vim b/modules/general.vim index dc46f552..ae2ed36e 100644 --- a/modules/general.vim +++ b/modules/general.vim @@ -17,7 +17,7 @@ set encoding=utf-8 " The encoding displayed set pumheight=10 " Makes popup menu smaller set fileencoding=utf-8 " The encoding written to file set ruler " show the cursor position all the time -set cmdheight=1 +set cmdheight=2 " always keep this at 2" set iskeyword+=- " treat dash separated words as a word text object" set mouse=a " Enable your mouse set splitbelow " Horizontal splits will automatically be below @@ -36,7 +36,7 @@ set number " Line numbers set cursorline " Enable highlighting of the current line set background=dark " tell vim what the background color looks like -let g:python_highlight_all = 0 " Get rid of annoying red highlights" +let g:python_highlight_all = 0 " Get rid of annoying red highlights" look into polyglot python implementation to choose what you want to enable let g:elite_mode=1 " Disable arrows" filetype plugin indent on " Gives vim abilty to recognize filetypes diff --git a/modules/plugins.vim b/modules/plugins.vim index 7a7fbbc6..47117172 100644 --- a/modules/plugins.vim +++ b/modules/plugins.vim @@ -7,16 +7,13 @@ endfunction if dein#load_state('~/.config/nvim/dein') call dein#begin('~/.config/nvim/dein') - + " Ranger integration + "call dein#add('kevinhwang91/rnvimr', {'do': 'make sync'}) + call dein#add('francoiscabrol/ranger.vim') + call dein#add('rbgrouleff/bclose.vim') " All the Themes - ""call dein#add('flazz/vim-colorschemes') - call dein#add('liuchengxu/space-vim-dark') - call dein#add('tomasiser/vim-code-dark') call dein#add('joshdick/onedark.vim') - call dein#add('morhetz/gruvbox') - call dein#add('jacoborus/tender.vim') - call dein#add('luochen1990/rainbow') " key menu popup " call dein#add('liuchengxu/vim-which-key') "Interface" diff --git a/modules/ranger.vim b/modules/ranger.vim new file mode 100644 index 00000000..72b41c89 --- /dev/null +++ b/modules/ranger.vim @@ -0,0 +1,2 @@ +let g:NERDTreeHijackNetrw = 0 " add this line if you use NERDTree +let g:ranger_replace_netrw = 1 " open ranger when vim open a directory diff --git a/modules/vim-which-key.vim b/modules/vim-which-key.vim index 05c09ce4..1931a42e 100644 --- a/modules/vim-which-key.vim +++ b/modules/vim-which-key.vim @@ -33,7 +33,8 @@ let g:which_key_map['/'] = [ '<Plug>NERDCommenterToggle','commenter' ] let g:which_key_map['p'] = [ 'pclose','close-preview' ] let g:which_key_map['q'] = [ 'q','quit' ] let g:which_key_map['s'] = [ 'w','save' ] -let g:which_key_map['f'] = [ 'Denite file','files' ] +"let g:which_key_map['f'] = [ 'Denite file','files' ] +let g:which_key_map['f'] = [ 'Ranger','Ranger' ] let g:which_key_map.t = { \ 'name' : '+toggle' , @@ -111,3 +112,4 @@ autocmd FileType which_key set laststatus=0 noshowmode noruler \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler ""nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR> ""nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR> +let g:which_key_use_floating_win = 0 |