Skip to content

Commit c9a56e6

Browse files
committed
feat: looking good with the quality of life changes
1 parent 3662a30 commit c9a56e6

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

lua/theprimeagen/lazy/init.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ return {
55
name = "plenary"
66
},
77

8-
{
9-
"folke/trouble.nvim",
10-
config = function()
11-
-- TODO: I don't care, but maybe i should...
12-
require("trouble").setup {
13-
icons = false,
14-
}
15-
end
16-
},
17-
188
"github/copilot.vim",
199
"eandrju/cellular-automaton.nvim",
2010
}

lua/theprimeagen/lazy/trouble.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
return {
2+
{
3+
"folke/trouble.nvim",
4+
config = function()
5+
require("trouble").setup({
6+
icons = false,
7+
})
8+
9+
vim.keymap.set("n", "<leader>tt", function()
10+
require("trouble").toggle()
11+
end)
12+
13+
vim.keymap.set("n", "<leader>tn", function()
14+
require("trouble").next({skip_groups = true, jump = true});
15+
end)
16+
17+
vim.keymap.set("n", "<leader>tp", function()
18+
require("trouble").previous({skip_groups = true, jump = true});
19+
end)
20+
21+
end
22+
},
23+
}

lua/theprimeagen/lazy_init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ if not vim.loop.fs_stat(lazypath) then
1111
end
1212
vim.opt.rtp:prepend(lazypath)
1313

14-
require("lazy").setup("theprimeagen.lazy")
15-
14+
require("lazy").setup({
15+
spec = "theprimeagen.lazy",
16+
change_detection = { notify = false }
17+
})
1618
--[[
1719
require("lazy").setup({
1820
use("~/personal/harpoon")

0 commit comments

Comments
 (0)