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 '907th/vim-auto-save'
|
||||
Plug 'markonm/traces.vim'
|
||||
Plug 'stevearc/oil.nvim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
@ -328,7 +329,8 @@ let g:airline_right_sep = ''
|
|||
let g:airline_right_alt_sep = ''
|
||||
|
||||
" 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?!
|
||||
set noshowmode
|
||||
|
|
|
@ -103,11 +103,21 @@ in {
|
|||
# recursive = true;
|
||||
# };
|
||||
"nvim/init.vim" = {
|
||||
text= ''
|
||||
text = ''
|
||||
set runtimepath+=${config.home.homeDirectory}/.vim,${config.home.homeDirectory}/.vim/after
|
||||
set packpath+=${config.home.homeDirectory}/.vim
|
||||
source ${config.home.homeDirectory}/.vimrc
|
||||
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" = {
|
||||
|
|
Loading…
Reference in New Issue