Skip to content

Commit 15143aa

Browse files
committed
fix: keybind to save and quita all
1 parent 03be50c commit 15143aa

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

lua/nivi/plugins/spectre.lua

+16-16
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ return {
99
open_cmd = "vnew",
1010
live_update = false,
1111
lnum_for_results = true,
12-
-- result_padding = '¦ ',
13-
-- line_sep_start = '┌-----------------------------------------',
14-
-- line_sep = '└-----------------------------------------',
15-
-- highlight = {
16-
-- ui = "String",
17-
-- search = "DiffChange",
18-
-- replace = "DiffDelete"
19-
-- },
20-
-- mapping={
21-
-- ['tab'] = {
22-
-- map = '<Tab>',
23-
-- cmd = "<cmd>lua require('spectre').tab()<cr>",
24-
-- desc = 'next query'
25-
-- },
26-
-- -- ... other mappings ...
27-
-- }
12+
result_padding = "¦ ",
13+
line_sep_start = "┌-----------------------------------------",
14+
line_sep = "└-----------------------------------------",
15+
highlight = {
16+
ui = "String",
17+
search = "DiffChange",
18+
replace = "DiffDelete",
19+
},
20+
mapping = {
21+
["tab"] = {
22+
map = "<Tab>",
23+
cmd = "<cmd>lua require('spectre').tab()<cr>",
24+
desc = "next query",
25+
},
26+
-- ... other mappings ...
27+
},
2828
})
2929
end,
3030
}

lua/nivi/plugins/which-key.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ return {
3838
{ "<leader>h", ":nohl<CR>", desc = "Clear search highlights" },
3939
{ "<leader>qq", ":qa<CR>", desc = "Close all buffers" },
4040
{ "<leader>qf", ":qa!<CR>", desc = "Close all and discard changes" },
41-
{ "<leader>qF", ":wq!<CR>", desc = "Close all and force save changes" },
41+
{ "<leader>qF", ":xa!<CR>", desc = "Close all and force save changes" },
4242
{ "<leader>qc", ":q<CR>", desc = "Close current buffer" },
4343
{ "<leader>qs", ":w!<CR>", desc = "Force save file" },
4444
{ "<C-s>", ":w<CR>", desc = "Save current buffer" },

0 commit comments

Comments
 (0)