From 651e931ce33c7b90b26ab6384c2e941dfba605cc Mon Sep 17 00:00:00 2001 From: rootiest Date: Sun, 15 Sep 2024 01:25:00 -0400 Subject: [PATCH] feat: include telescope-lazy and telescope-luasnip dependencies --- lua/data/func.lua | 2 +- lua/plugins/coding.lua | 13 ++++++++++--- lua/plugins/util.lua | 7 +++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/lua/data/func.lua b/lua/data/func.lua index 64168d3..6d0d943 100644 --- a/lua/data/func.lua +++ b/lua/data/func.lua @@ -664,7 +664,7 @@ function M.is_installed(plugins, simple) end end --- Function to create a floating terminal window +---@function Function to create a floating terminal window function M.open_floating_terminal() -- Create a scratch buffer specifically for the terminal local buf = vim.api.nvim_create_buf(false, true) -- Create an unnamed, non-file, scratch buffer diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index c916a05..e318d5c 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -12,11 +12,14 @@ return { automatic_installation = true, }, }, - { + { -- luasnip + import = "lazyvim.plugins.extras.coding.luasnip", + }, + { -- nvim-treesitter "nvim-treesitter/nvim-treesitter", opts = data.types.treesitter.opts, }, - { -- + { -- nvim-lspconfig "neovim/nvim-lspconfig", opts = data.types.lspconfig.opts, }, @@ -50,8 +53,12 @@ return { opts = data.types.substitute, keys = data.keys.substitute, }, - { + { -- Markdown Preview "iamcco/markdown-preview.nvim", build = "cd app && yarn install", }, + { -- Comment + "numToStr/Comment.nvim", + opts = {}, + }, } diff --git a/lua/plugins/util.lua b/lua/plugins/util.lua index a4f29d5..fce6438 100644 --- a/lua/plugins/util.lua +++ b/lua/plugins/util.lua @@ -193,4 +193,11 @@ return { dependencies = "tsakirist/telescope-lazy.nvim", keys = data.keys.telescope.lazy, }, + { + "benfowler/telescope-luasnip.nvim", + module = "telescope._extensions.luasnip", -- if you wish to lazy-load + config = function() + require("telescope").load_extension("luasnip") + end, + }, }