diff options
Diffstat (limited to 'lua/alpha/telescope')
| -rw-r--r-- | lua/alpha/telescope/actions.lua | 3 | ||||
| -rw-r--r-- | lua/alpha/telescope/init.lua | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lua/alpha/telescope/actions.lua b/lua/alpha/telescope/actions.lua index e877b34..f996cf4 100644 --- a/lua/alpha/telescope/actions.lua +++ b/lua/alpha/telescope/actions.lua @@ -2,12 +2,11 @@ local M = {} local action_state = require("telescope.actions.state") local actions = require("telescope.actions") -local get_node_text = vim.treesitter.get_node_text M.create_plugin = function(prompt_bufnr) local new_plugin = action_state.get_current_line() actions.close(prompt_bufnr) - vim.cmd(string.format("edit ~/.config/nvim/lua/alpha/plugins/%s.lua", new_plugin)) + vim.cmd(string.format("edit ~/.config/nvim/lua/plugins/%s.lua", new_plugin)) end local get_disable_stm_node = function(bufnr, tree) diff --git a/lua/alpha/telescope/init.lua b/lua/alpha/telescope/init.lua index 40f3b7b..c717cb6 100644 --- a/lua/alpha/telescope/init.lua +++ b/lua/alpha/telescope/init.lua @@ -51,7 +51,7 @@ end M.find_nvim_plugin = function() require("telescope.builtin").find_files({ prompt_title = "< Plugins >", - cwd = "$HOME/.config/nvim/lua/alpha/plugins/", + cwd = "$HOME/.config/nvim/lua/plugins/", attach_mappings = function(_, map) map("i", "<C-t>", my_actions.create_plugin) map("i", "<C-d>", my_actions.disable_plugin) |