Skip to content

Commit

Permalink
feat: add <leader>to mapping to open oil buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Aug 18, 2024
1 parent f7e5876 commit 138902c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions root/.config/nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ return {
"nvim-telescope/telescope-bibtex.nvim",
-- "benfowler/telescope-luasnip.nvim",
"2kabhishek/nerdy.nvim",
"albenisolmos/telescope-oil.nvim",
},
config = plugins_setup.telescope,
},
Expand Down Expand Up @@ -153,6 +154,7 @@ return {
"rmagatti/auto-session",
opts = {
log_level = "error",
args_allow_single_directory = false, -- boolean Follow normal sesion save/load logic if launched with a single directory as the only argument
auto_session_enable_last_session = false,
auto_session_root_dir = vim.fn.stdpath("data") .. "/sessions/",
auto_session_enabled = true,
Expand Down
6 changes: 6 additions & 0 deletions root/.config/nvim/lua/plugins/vimplug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ local M = {
},

"lambdalisue/vim-fern",
{
"jiangyinzuo/fern-oil.nvim",
dependencies = {
"lambdalisue/vim-fern",
},
},
{
"lambdalisue/fern-renderer-nerdfont.vim",
dependencies = {
Expand Down
5 changes: 4 additions & 1 deletion root/.config/nvim/lua/plugins_setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ function M.telescope()
telescope.load_extension("session-lens")
telescope.load_extension("bibtex")
-- telescope.load_extension("luasnip")
require("telescope").load_extension("nerdy")
telescope.load_extension("nerdy")
telescope.load_extension("oil")

vim.keymap.set("n", "<leader>to", "<cmd>Telescope oil<CR>", { noremap = true, silent = true })
end

function M.mason()
Expand Down

0 comments on commit 138902c

Please sign in to comment.