Feat(nvim): add oil.nvim
This commit is contained in:
parent
af26c6978f
commit
c6a5e6ba07
9
nvim/.config/nvim/lua/config/oil.lua
Normal file
9
nvim/.config/nvim/lua/config/oil.lua
Normal 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)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user