mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-14 21:13:49 +00:00
toggle oil.nvim fullscreen window
This commit is contained in:
parent
12aa2d8a7b
commit
15d4cfcdf7
@ -13,11 +13,19 @@ return {
|
|||||||
-- Optional dependencies
|
-- Optional dependencies
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
config = function()
|
config = function()
|
||||||
require('oil').setup({
|
local oil = require 'oil'
|
||||||
|
oil.setup {
|
||||||
view_options = {
|
view_options = {
|
||||||
show_hidden = true
|
show_hidden = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
|
||||||
vim.keymap.set('n', '<leader>fe', require('oil').open, { desc = '[F]ile [E]xplorer' })
|
vim.keymap.set('n', '<leader>fe', function()
|
||||||
|
if vim.bo.filetype == 'oil' then
|
||||||
|
oil.close()
|
||||||
|
else
|
||||||
|
oil.open()
|
||||||
|
end
|
||||||
|
end, { desc = '[F]ile [E]xplorer' })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user