From 3faee1f7fce6554ed6d399364025d8c73a9aa7d2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 17 Nov 2021 18:27:35 +0000 Subject: [PATCH] feat(nvim): add a mapping to edit dotfiles Add a mapping to open Telescope within my `~/dotfiles` directory so that I can quickly make any changes to those files without leaving my current directory or nvim session. --- nvim/.config/nvim/after/plugin/telescope.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nvim/.config/nvim/after/plugin/telescope.lua b/nvim/.config/nvim/after/plugin/telescope.lua index fb2378b..cb05f56 100644 --- a/nvim/.config/nvim/after/plugin/telescope.lua +++ b/nvim/.config/nvim/after/plugin/telescope.lua @@ -38,6 +38,7 @@ local options = { } -- Builtin +map('n', 'df', 'lua require("telescope.builtin").find_files{ cwd="~/dotfiles", hidden=true }', options) map('n', 'fb', 'lua require("telescope.builtin").buffers()', options) map('n', 'fc', 'lua require("telescope.builtin").lsp_code_actions()', options) map('n', 'fd', 'lua require("telescope.builtin").lsp_workspace_diagnostics()', options)