diff --git a/nvim/.config/nvim/lua/config/oil.lua b/nvim/.config/nvim/lua/config/oil.lua new file mode 100644 index 0000000..5629e13 --- /dev/null +++ b/nvim/.config/nvim/lua/config/oil.lua @@ -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) diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index d2393fe..0dbdfab 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -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