From 5455aacdedfb2829f000b2f120a6d5194d1227f8 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 22 Jan 2023 10:18:07 +0100 Subject: feat: big change on the structure of the plugins, move several things to config dir --- lua/alpha/telescope/actions.lua | 3 +-- lua/alpha/telescope/init.lua | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lua/alpha/telescope') 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", "", my_actions.create_plugin) map("i", "", my_actions.disable_plugin) -- cgit v1.2.3