diff --git a/nvim/dot-config/nvim/after/plugin/telescope.lua b/nvim/dot-config/nvim/after/plugin/telescope.lua index 8c2faea..d44e76d 100644 --- a/nvim/dot-config/nvim/after/plugin/telescope.lua +++ b/nvim/dot-config/nvim/after/plugin/telescope.lua @@ -4,6 +4,8 @@ if not ok then return end +local nmap = require("my.utils").nmap + telescope.setup { extensions = { fzf = { @@ -47,10 +49,10 @@ local function dotfiles() } end -telescope.load_extension("fzf") +nmap("", project, "Find project files") +nmap("fn", dotfiles, "Dotfiles") +nmap("", builtin.git_files, "Find git files") +nmap("fg", builtin.live_grep, "Live grep") +nmap("gs", builtin.git_status, "Git status") -require("my.keymaps").telescope_keymaps { - project = project, - dotfiles = dotfiles, - builtin = builtin, -} +telescope.load_extension("fzf") diff --git a/nvim/dot-config/nvim/lua/my/keymaps.lua b/nvim/dot-config/nvim/lua/my/keymaps.lua index 2980a93..bdebac4 100644 --- a/nvim/dot-config/nvim/lua/my/keymaps.lua +++ b/nvim/dot-config/nvim/lua/my/keymaps.lua @@ -75,15 +75,6 @@ local function lsp_keymaps(client, bufnr) end end -local function telescope_keymaps(fns) - nmap("", fns.project, "Find project files") - nmap("fn", fns.dotfiles, "Dotfiles") - nmap("", fns.builtin.git_files, "Find git files") - nmap("fg", fns.builtin.live_grep, "Live grep") - nmap("gs", fns.builtin.git_status, "Git status") -end - return { lsp_keymaps = lsp_keymaps, - telescope_keymaps = telescope_keymaps, }