home: vim: migrate to 'oil.nvim'
This commit is contained in:
parent
04de570926
commit
6a6f3aed63
|
@ -1,6 +0,0 @@
|
|||
" Create the `b:undo_ftplugin` variable if it doesn't exist
|
||||
call ftplugined#check_undo_ft()
|
||||
|
||||
" Don't show Netrw in buffer list
|
||||
setlocal bufhidden=delete
|
||||
let b:undo_ftplugin='|setlocal bufhidden<'
|
|
@ -46,7 +46,6 @@ in
|
|||
vim-repeat # Enanche '.' for plugins
|
||||
vim-rsi # Readline mappings
|
||||
vim-unimpaired # Some ex command mappings
|
||||
vim-vinegar # Better netrw
|
||||
|
||||
# Languages
|
||||
rust-vim
|
||||
|
@ -85,6 +84,7 @@ in
|
|||
dressing-nvim # Integrate native UI hooks with Telescope etc...
|
||||
gitsigns-nvim # Fast git UI integration
|
||||
nvim-surround # Deal with pairs, now in Lua
|
||||
oil-nvim # Better alternative to NetrW
|
||||
telescope-fzf-native-nvim # Use 'fzf' fuzzy matching algorithm
|
||||
telescope-lsp-handlers-nvim # Use 'telescope' for various LSP actions
|
||||
telescope-nvim # Fuzzy finder interface
|
||||
|
|
19
modules/home/vim/plugin/settings/oil.lua
Normal file
19
modules/home/vim/plugin/settings/oil.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
local oil = require("oil")
|
||||
local wk = require("which-key")
|
||||
|
||||
oil.setup({
|
||||
view_options = {
|
||||
-- Show files and directories that start with "." by default
|
||||
show_hidden = true,
|
||||
-- But never '..'
|
||||
is_always_hidden = function(name, bufnr)
|
||||
return name == ".."
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
local keys = {
|
||||
["-"] = { oil.open, "Open parent directory" },
|
||||
}
|
||||
|
||||
wk.register(keys)
|
Loading…
Reference in a new issue