feat(nvim): add oil.nvim back

This commit is contained in:
arielherself 2025-01-01 01:28:31 +08:00
parent e43e0be9de
commit 351ae05337
Signed by: arielherself
SSH Key Fingerprint: SHA256:AK3cyo9tFsp7Mox7K0sYphleC8hReXhnRKxwuDT5LBc
2 changed files with 14 additions and 2 deletions

4
.vimrc
View File

@ -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

View File

@ -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" = {