lots of polishing and command mode works again

This commit is contained in:
2026-02-14 13:59:36 +00:00
parent ea9e351c83
commit 83e835bf41
7 changed files with 25 additions and 14 deletions

View File

@@ -10,7 +10,6 @@ return {
extensions = {
file_browser = {
theme = "ivy",
-- disables netrw and use telescope-file-browser in its place
hijack_netrw = true,
},
["ui-select"] = {
@@ -27,7 +26,11 @@ return {
end, { desc = "Telescope find files (current file dir)" })
vim.keymap.set("n", "<space>fn", function()
require("telescope").extensions.file_browser.file_browser()
local full_path = vim.api.nvim_buf_get_name(0)
local dir = vim.fn.fnamemodify(full_path, ":h")
require("telescope").extensions.file_browser.file_browser({
path = dir,
})
end)
vim.keymap.set("n", "<space>fs", function() -- select sessions