Various Plugins and Settings
This commit is contained in:
@ -1,44 +1,20 @@
|
||||
local g = vim.g
|
||||
|
||||
--local fb_actions = require "telescope".extensions.file_browser.actions
|
||||
local fb_actions = require "telescope".extensions.file_browser.actions
|
||||
|
||||
local telescope_installer = require('telescope').setup({
|
||||
defaults = {
|
||||
-- Default configuration for telescope goes here:
|
||||
previewer = true,
|
||||
file_previewer = require'telescope.previewers'.vim_buffer_cat.new,
|
||||
-- config_key = value,
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-h>"] = "which_key"
|
||||
-- map actions.which_key to <C-h> (default: <C-/>)
|
||||
-- actions.which_key shows the mappings for your picker,
|
||||
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
||||
}
|
||||
}
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
theme = "dropdown",
|
||||
}
|
||||
},
|
||||
extensions = {
|
||||
--[[ file_browser = {
|
||||
theme = "dropdown",
|
||||
-- disables netrw and use telescope-file-browser in its place
|
||||
hijack_netrw = true,
|
||||
file_browser = {
|
||||
mappings = {
|
||||
["i"] = {
|
||||
|
||||
["<C-c>"] = fb_actions.create
|
||||
},
|
||||
["n"] = {
|
||||
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
--]]
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
require("telescope").load_extension "file_browser"
|
||||
|
||||
Reference in New Issue
Block a user