mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-21 03:04:38 +10:00
made neovim config using XDG_BASE_FOLDER specifications
This commit is contained in:
30
.config/nvim/after/plugin/telescope.rc.lua
Normal file
30
.config/nvim/after/plugin/telescope.rc.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
-------------------------------------------------
|
||||
-- DT'S NEOVIM CONFIGURATION
|
||||
-- Neovim website: https://neovim.io/
|
||||
-- DT's dotfiles: https://gitlab.com/dwt1/dotfiles
|
||||
-------------------------------------------------
|
||||
--
|
||||
local status, telescope = pcall(require, "telescope")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
telescope.setup({
|
||||
extensions = {
|
||||
file_browser = {
|
||||
theme = "ivy",
|
||||
-- disables netrw and use telescope-file-browser in its place
|
||||
hijack_netrw = true,
|
||||
mappings = {
|
||||
["i"] = {
|
||||
-- your custom insert mode mappings
|
||||
},
|
||||
["n"] = {
|
||||
-- your custom normal mode mappings
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
telescope.load_extension("file_browser")
|
||||
Reference in New Issue
Block a user