feat(nvim): add oil.nvim back
This commit is contained in:
parent
e43e0be9de
commit
351ae05337
4
.vimrc
4
.vimrc
|
@ -119,6 +119,7 @@ Plug 'tpope/vim-fugitive'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
Plug '907th/vim-auto-save'
|
Plug '907th/vim-auto-save'
|
||||||
Plug 'markonm/traces.vim'
|
Plug 'markonm/traces.vim'
|
||||||
|
Plug 'stevearc/oil.nvim'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -328,7 +329,8 @@ let g:airline_right_sep = ''
|
||||||
let g:airline_right_alt_sep = ''
|
let g:airline_right_alt_sep = ''
|
||||||
|
|
||||||
" fix c++ comment style in Neovim
|
" fix c++ comment style in Neovim
|
||||||
autocmd FileType cpp setl commentstring=//\ %s
|
" ref: https://github.com/tpope/vim-commentary/issues/15#issuecomment-23127749
|
||||||
|
autocmd FileType c,cpp,cs,java setlocal commentstring=//\ %s
|
||||||
|
|
||||||
" Why?!
|
" Why?!
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
|
|
@ -108,6 +108,16 @@ in {
|
||||||
set packpath+=${config.home.homeDirectory}/.vim
|
set packpath+=${config.home.homeDirectory}/.vim
|
||||||
source ${config.home.homeDirectory}/.vimrc
|
source ${config.home.homeDirectory}/.vimrc
|
||||||
set undodir=${config.home.homeDirectory}/.vim/undofiles
|
set undodir=${config.home.homeDirectory}/.vim/undofiles
|
||||||
|
lua require('config')
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"nvim/lua/config.lua" = {
|
||||||
|
text = ''
|
||||||
|
require('oil').setup {
|
||||||
|
view_options = {
|
||||||
|
show_hidden = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"nvim/ftplugin/java.lua" = {
|
"nvim/ftplugin/java.lua" = {
|
||||||
|
|
Loading…
Reference in New Issue