From b4cb757aa969933d385e1b5456ac8e7a9e13c9fc Mon Sep 17 00:00:00 2001 From: Jules Sang Date: Wed, 29 Mar 2023 18:02:57 +0200 Subject: [PATCH] leap-ast, lightbulb --- lua/plugins/leap-ast.lua | 11 +++++++++++ lua/plugins/lightbulb.lua | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 lua/plugins/leap-ast.lua create mode 100644 lua/plugins/lightbulb.lua diff --git a/lua/plugins/leap-ast.lua b/lua/plugins/leap-ast.lua new file mode 100644 index 0000000..413ebc2 --- /dev/null +++ b/lua/plugins/leap-ast.lua @@ -0,0 +1,11 @@ +return { + "jul-o/leap-ast.nvim", + -- dir = '~/projects/nvim-plugins/leap-ast.nvim', + dependencies = { + "ggandor/leap.nvim", + "nvim-treesitter/nvim-treesitter", + }, + config = function() + vim.keymap.set({ "n", "x", "o" }, "s", require("leap-ast").leap, { desc = "Leap AST" }) + end, +} diff --git a/lua/plugins/lightbulb.lua b/lua/plugins/lightbulb.lua new file mode 100644 index 0000000..6af20de --- /dev/null +++ b/lua/plugins/lightbulb.lua @@ -0,0 +1,7 @@ +return { + "kosayoda/nvim-lightbulb", + dependencies = "antoinemadec/FixCursorHold.nvim", + config = function() + vim.cmd([[autocmd CursorHold,CursorHoldI * lua require('nvim-lightbulb').update_lightbulb()]]) + end, +}