Browse Source

fixed floating window in which key

Chris 5 years ago
parent
commit
7a5a320a83
6 changed files with 16 additions and 11 deletions
  1. 3 1
      README.md
  2. 2 0
      init.vim
  3. 2 2
      modules/general.vim
  4. 4 7
      modules/plugins.vim
  5. 2 0
      modules/ranger.vim
  6. 3 1
      modules/vim-which-key.vim

+ 3 - 1
README.md

@@ -50,7 +50,9 @@ start using coc
 
 install this stuff
 
+https://github.com/kevinhwang91/rnvimr
+VimWiki
+coc
 Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
-Plug 'weirongxu/plantuml-previewer.vim'                                 " Plantuml-previewer
 https://github.com/voldikss/coc-todolist
 

+ 2 - 0
init.vim

@@ -1,10 +1,12 @@
 " Activate Modules
+set shell=bash
 source $HOME/.config/nvim/modules/pythonpath.vim
 source $HOME/.config/nvim/modules/plugins.vim
 source $HOME/.config/nvim/modules/general.vim
 source $HOME/.config/nvim/modules/theme.vim
 source $HOME/.config/nvim/modules/airline.vim
 source $HOME/.config/nvim/modules/deoplete.vim
+source $HOME/.config/nvim/modules/ranger.vim
 source $HOME/.config/nvim/modules/nerdtree.vim
 source $HOME/.config/nvim/modules/startify.vim
 source $HOME/.config/nvim/modules/gutentags_plus.vim

+ 2 - 2
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
                  

+ 4 - 7
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"

+ 2 - 0
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

+ 3 - 1
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