From bb50eda917ff046675d8e43374c9ed86a76a1448 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sat, 8 Jun 2024 16:43:07 +0200 Subject: [PATCH] [neovim] Add grug-far plugin --- .config/nvim/lua/core/lazy.lua | 6 +++++- .config/nvim/lua/plugins/grug-far.lua | 1 + .config/nvim/lua/plugins/init.lua | 1 + .config/nvim/lua/plugins/neotest.lua | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .config/nvim/lua/plugins/grug-far.lua diff --git a/.config/nvim/lua/core/lazy.lua b/.config/nvim/lua/core/lazy.lua index fd72c60..87eaf75 100644 --- a/.config/nvim/lua/core/lazy.lua +++ b/.config/nvim/lua/core/lazy.lua @@ -140,7 +140,7 @@ require("lazy").setup({ dependencies = { { "Shatur/neovim-session-manager" }, }, - priority = 100, + event = "VeryLazy", }, { "nvim-treesitter/nvim-treesitter", event = "BufReadPost" }, { @@ -164,6 +164,10 @@ require("lazy").setup({ version = "*", build = "cp ./*.py ~/.config/kitty/", }, + { + "MagicDuck/grug-far.nvim", + event = "VeryLazy", + }, -- cmp plugins { diff --git a/.config/nvim/lua/plugins/grug-far.lua b/.config/nvim/lua/plugins/grug-far.lua new file mode 100644 index 0000000..4082054 --- /dev/null +++ b/.config/nvim/lua/plugins/grug-far.lua @@ -0,0 +1 @@ +require("grug-far").setup({}) diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index 2576e7a..0364ca2 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -23,3 +23,4 @@ require("plugins.align") require("plugins.ufo") require("plugins.bufferline") require("plugins.lualine") +require("plugins.grug-far") diff --git a/.config/nvim/lua/plugins/neotest.lua b/.config/nvim/lua/plugins/neotest.lua index 512a9e9..3d336dd 100644 --- a/.config/nvim/lua/plugins/neotest.lua +++ b/.config/nvim/lua/plugins/neotest.lua @@ -34,6 +34,10 @@ vim.api.nvim_create_user_command("RunTest", function() neotest.run.run() end, {}) +vim.api.nvim_create_user_command("DebugTest", function() + neotest.run.run({ strategy = "dap" }) +end, {}) + vim.api.nvim_create_user_command("RunTestFile", function() neotest.run.run(vim.fn.expand("%")) end, {})