mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 05:51:04 +00:00
nvimtree: change g? to ? for help
This commit is contained in:
parent
40ed3f4ca7
commit
89d4038d57
1 changed files with 13 additions and 2 deletions
|
|
@ -42,8 +42,19 @@ return {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
config = function()
|
opts = {
|
||||||
require("nvim-tree").setup()
|
-- https://github.com/nvim-tree/nvim-tree.lua?tab=readme-ov-file#custom-mappings
|
||||||
|
on_attach = function(bufnr)
|
||||||
|
local api = require("nvim-tree.api")
|
||||||
|
local function opts(desc)
|
||||||
|
return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
|
||||||
|
end
|
||||||
|
api.config.mappings.default_on_attach(bufnr)
|
||||||
|
vim.keymap.set("n", "?", api.tree.toggle_help, opts("Help"))
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("nvim-tree").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue