diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-12-18 16:45:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-12-18 18:18:49 +0900 |
| commit | 0953f4dbe0a800648db7f1f85cd46d8790b5074d (patch) | |
| tree | c86396eab20de7d9e7fb6d7a356875f90d26c8ce | |
| parent | ca199841a7e426828f6c0cc726cbc84c19955ed6 (diff) | |
| download | dotfiles-0953f4dbe0a800648db7f1f85cd46d8790b5074d.tar.gz dotfiles-0953f4dbe0a800648db7f1f85cd46d8790b5074d.tar.zst dotfiles-0953f4dbe0a800648db7f1f85cd46d8790b5074d.zip | |
neovim: install fern
| -rw-r--r-- | .config/nvim/lua/plugins.lua | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 644057c..4fa0966 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -358,9 +358,25 @@ packer.startup(function(use) vim.keymap.set('n', 'gfa', '<Plug>(altr-forward)') end, } - -- Filer for minimalists. + -- Full-featured filer. use { - 'justinmk/vim-dirvish', + 'lambdalisue/fern.vim', + opt = true, + cmd = {'Fern'}, + config = function() + local vimrc = require('vimrc') + + vimrc.autocmd('FileType', { + pattern = {'fern'}, + callback = function() + vim.keymap.del('n', 't', { buffer = true }) + end, + }) + end, + } + -- Fern plugin: hijack Netrw. + use { + 'lambdalisue/fern-hijack.vim', } -- Appearance {{{2 -- Show highlight. |
