Skip to content

Commit 8d6bf51

Browse files
committed
chore(configs): remove useless legacy configs
1 parent d476275 commit 8d6bf51

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed
Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
return function()
2-
vim.g.maplocalleader = ","
32
require("modules.utils").load_plugin("grug-far", {
3+
windowCreationCommand = "bot split",
4+
disableBufferLineNumbers = false,
5+
icons = { enabled = true },
46
engine = "ripgrep",
57
engines = {
68
ripgrep = {
@@ -11,10 +13,30 @@ return function()
1113
},
1214
},
1315
},
14-
windowCreationCommand = "bot split",
15-
disableBufferLineNumbers = false,
16-
icons = {
17-
enabled = true,
16+
keymaps = {
17+
replace = { n = "R" },
18+
qflist = { n = "Q" },
19+
syncLocations = { n = "S" },
20+
syncLine = { n = "L" },
21+
close = { n = "C" },
22+
historyOpen = { n = "T" },
23+
historyAdd = { n = "A" },
24+
refresh = { n = "F" },
25+
openLocation = { n = "O" },
26+
openNextLocation = { n = "<Down>" },
27+
openPrevLocation = { n = "<Up>" },
28+
gotoLocation = { n = "<Enter>" },
29+
pickHistoryEntry = { n = "<Enter>" },
30+
abort = { n = "B" },
31+
help = { n = "g?" },
32+
toggleShowCommand = { n = "P" },
33+
swapEngine = { n = "E" },
34+
previewLocation = { n = "I" },
35+
swapReplacementInterpreter = { n = "X" },
36+
applyNext = { n = "J" },
37+
applyPrev = { n = "K" },
38+
nextInput = { n = "<Tab>" },
39+
prevInput = { n = "<S-Tab>" },
1840
},
1941
})
2042
end

lua/modules/configs/ui/splits.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
return function()
22
require("modules.utils").load_plugin("smart-splits", {
3+
-- The default number of lines/columns to resize by at a time
4+
default_amount = 3,
5+
-- Ignored filetypes (only while resizing)
6+
ignored_filetypes = {
7+
"NvimTree",
8+
},
39
-- Ignored buffer types (only while resizing)
410
ignored_buftypes = {
511
"nofile",
612
"quickfix",
713
"prompt",
814
},
9-
-- Ignored filetypes (only while resizing)
10-
ignored_filetypes = { "NvimTree" },
11-
-- the default number of lines/columns to resize by at a time
12-
default_amount = 3,
1315
})
1416
end

0 commit comments

Comments
 (0)