feat(nvim): remove telescope file browser
parent
0d97fa893b
commit
db42c35320
|
@ -135,7 +135,6 @@ in
|
|||
telescope-nvim
|
||||
telescope-fzf-native-nvim
|
||||
telescope-ui-select-nvim
|
||||
telescope-file-browser-nvim
|
||||
|
||||
# LSP
|
||||
nvim-lspconfig
|
||||
|
|
|
@ -25,7 +25,6 @@ nnoremap("<leader>G", ":Flog -all -date=relative -open-cmd=new<CR>")
|
|||
local telescope = require("telescope.builtin")
|
||||
local telescope_themes = require("telescope.themes")
|
||||
local telescope_projects = require("telescope").extensions.projects
|
||||
local telescope_file_browser = require("telescope").extensions.file_browser
|
||||
|
||||
local function map_telescope(key, telescope_function)
|
||||
vim.api.nvim_set_keymap("n", key, "", {
|
||||
|
@ -38,7 +37,7 @@ local function map_telescope(key, telescope_function)
|
|||
end
|
||||
|
||||
map_telescope("<leader>ff", telescope.find_files)
|
||||
map_telescope("<leader>fb", telescope_file_browser.file_browser)
|
||||
map_telescope("<leader>fb", telescope.buffers)
|
||||
map_telescope("<leader>fg", telescope.git_files)
|
||||
map_telescope("<leader>fp", telescope_projects.projects)
|
||||
map_telescope("<leader>fs", telescope.lsp_document_symbols)
|
||||
|
|
|
@ -21,13 +21,9 @@ telescope.setup({
|
|||
["ui-select"] = {
|
||||
themes.get_dropdown({})
|
||||
},
|
||||
file_browser = {
|
||||
hijack_netrw = true,
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
telescope.load_extension("fzf")
|
||||
telescope.load_extension("ui-select")
|
||||
telescope.load_extension("projects")
|
||||
telescope.load_extension("file_browser")
|
||||
|
|
Loading…
Reference in New Issue