Feat(nvim): add oil.nvim

This commit is contained in:
Bertrand Benjamin 2023-06-08 21:28:20 +02:00
parent af26c6978f
commit c6a5e6ba07
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
local status, oil = pcall(require, "oil")
if (not status) then
return
end
oil.setup()
local opts = { noremap=true, silent=false }
vim.keymap.set("n", "-", oil.open, { desc = "Open parent directory" }, opts)

View File

@ -178,6 +178,20 @@ return packer.startup(function(use)
config = function()
require("noice").setup({
-- add any options here
throttle = 1000,
lsp = {
progress = {
enabled = true,
-- Lsp Progress is formatted using the builtins for lsp_progress. See config.format.builtin
-- See the section on formatting for more details on how to customize.
--- @type NoiceFormat|string
format = "lsp_progress",
--- @type NoiceFormat|string
format_done = "lsp_progress_done",
throttle = 1000, -- frequency to update lsp progress message
view = "mini",
},
}
})
end,
requires = {
@ -201,6 +215,11 @@ return packer.startup(function(use)
config = [[require('config.indentblankline')]]
}
use {
'stevearc/oil.nvim',
config = [[require('config.oil')]]
}
if PACKER_BOOTSTRAP then
require("packer").sync()
end