mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-18 08:39:06 +02:00
updated bufferline
This commit is contained in:
parent
9f9d663f0b
commit
ffdb9eb0e5
5 changed files with 129 additions and 72 deletions
17
lua/custom/plugins/telescope-file-browser.lua
Normal file
17
lua/custom/plugins/telescope-file-browser.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
'nvim-telescope/telescope-file-browser.nvim',
|
||||
dependencies = { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim' },
|
||||
|
||||
vim.keymap.set("n", "<space>fb", ":Telescope file_browser<CR>"),
|
||||
|
||||
-- open file_browser with the path of the current buffer
|
||||
vim.keymap.set("n", "<space>fb", ":Telescope file_browser path=%:p:h select_buffer=true<CR>"),
|
||||
|
||||
-- Alternatively, using lua API
|
||||
vim.keymap.set("n", "<space>fb", function()
|
||||
require("telescope").extensions.file_browser.file_browser()
|
||||
end)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue