소스 검색

update vim config for android dev

Noah Vogt 2 년 전
부모
커밋
0d77dcbf6f

+ 1 - 0
dot-config/nvim/init.vim

@@ -16,6 +16,7 @@ source $XDG_CONFIG_HOME/nvim/plug-conf/wilder.vim
 source $XDG_CONFIG_HOME/nvim/plug-conf/vcoolor.vim
 source $XDG_CONFIG_HOME/nvim/plug-conf/better-whitespace.vim
 source $XDG_CONFIG_HOME/nvim/plug-conf/vimspector.vim
+source $XDG_CONFIG_HOME/nvim/plug-conf/vimspector.vim
 lua require 'treesitter'
 lua require 'indent-blankline'
 lua require 'telescope'

+ 3 - 12
dot-config/nvim/keys/bindings.vim

@@ -97,20 +97,11 @@ function! FernInit() abort
   nmap <buffer><nowait> > <Plug>(fern-action-enter)
 endfunction
 
-" use TAB to autocomplete w/ coc
-" inoremap <silent><expr> <TAB>
-"       \ pumvisible() ? "\<C-n>" :
-"       \ <SID>check_back_space() ? "\<TAB>" :
-"       \ coc#refresh()
-" inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
-
-" function! s:check_back_space() abort
-"   let col = col('.') - 1
-"   return !col || getline('.')[col - 1]  =~# '\s'
-" endfunction
-
+" use (shift-)TAB to autocomplete w/ coc
 inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
 inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"
+" use Ctrl + Space to trigger autocomplete box
+inoremap <silent><expr> <c-space> coc#refresh()
 
 " Use `:Format` to format current buffer
 command! -nargs=0 Format :call CocAction('format')

+ 8 - 0
dot-config/nvim/plug-conf/airline.vim

@@ -4,7 +4,15 @@
 " let g:airline#extensions#tabline#left_alt_sep = ''
 " let g:airline#extensions#tabline#right_sep = ''
 " let g:airline#extensions#tabline#right_alt_sep = ''
+call airline#parts#define_function(
+   \ 'gradle-running',
+   \ 'lightline#gradle#running'
+   \)
 
 " enable powerline fonts
 let g:airline_powerline_fonts = 1
 let g:airline#extensions#wordcount#enabled = 1
+let g:airline_section_x = airline#section#create_right([
+   \ 'filetype',
+   \ 'gradle-running'
+   \])

+ 2 - 0
dot-config/nvim/plug-conf/fern.vim

@@ -34,3 +34,5 @@ let hide_dirs  = '^\%(\.git\|node_modules\)$'  " here you write the dir names
 let hide_files = '\%(^.*\.class\|\.ruby-\)\+'    " here you write the file names
 
 let g:fern#default_exclude = hide_dirs . '\|' . hide_files  " here you exclude them
+
+let g:fern_disable_startup_warnings = 1

+ 5 - 2
dot-config/nvim/vim-plug/plugins.vim

@@ -23,7 +23,7 @@ Plug 'sheerun/vim-polyglot'
 Plug 'ctrlpvim/ctrlp.vim'
 
 " faster nerdtree
-Plug 'lambdalisue/fern.vim'
+Plug 'lambdalisue/fern.vim', {'branch': 'main'}
 " w/ git status integration
 Plug 'lambdalisue/fern-git-status.vim'
 " w/ colored nerdfont icons
@@ -57,7 +57,7 @@ Plug 'romainl/vim-cool'
 "Plug 'kien/rainbow_parentheses.vim'
 
 " auto close pairs, etc.
-Plug 'jiangmiao/auto-pairs'
+"Plug 'jiangmiao/auto-pairs'
 
 " easy commenting
 Plug 'tpope/vim-commentary'
@@ -122,4 +122,7 @@ Plug 'ahonn/resize.vim'
 " fast colorizer
 Plug 'norcalli/nvim-colorizer.lua'
 
+" for android dev
+Plug 'hsanson/vim-android'
+
 call plug#end()