Skip to content

Commit b03d9b6

Browse files
committed
feat(flash): don't use char mode
- Flash plugin now has character highlighting disabled. - Keymap limit increased for better usability. - Removed unnecessary diagnostic navigation keymaps. - Streamlined LSP keymap setup for improved clarity.
1 parent 64fa636 commit b03d9b6

3 files changed

Lines changed: 2 additions & 18 deletions

File tree

lua/plugins/flash.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ return {
2525
enabled = false,
2626
},
2727
char = {
28-
enabled = true,
29-
highlight = { backdrop = false },
28+
enabled = false,
3029
},
3130
treesitter = {
3231
jump = {

lua/plugins/mini.keymap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ local function hardtime()
1717
}
1818

1919
for key, opposite_key in pairs(key_opposite) do
20-
local limit = 3
20+
local limit = 5
2121
local lhs = string.rep(key, limit)
2222
local rhs = string.rep(opposite_key, limit)
2323
km.map_combo({ "n", "x" }, lhs, rhs)

plugin/autocmds/lsp-attach.lua

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,6 @@ local function diagnostics()
4343
})
4444
end
4545

46-
-- Make diagnostic navigation
47-
local function set_keymaps_diagnostics(k)
48-
local jump_to_next = function()
49-
vim.diagnostic.jump({ count = vim.v.count1 })
50-
end
51-
local jump_to_prev = function()
52-
vim.diagnostic.jump({ count = -vim.v.count1 })
53-
end
54-
55-
k("[x", jump_to_prev, "Previous diagnostic")
56-
k("]x", jump_to_next, "Next diagnostic")
57-
end
58-
5946
-- Set keymaps for LSP
6047
local function keymaps(bufnr, client)
6148
local snacks = require("snacks")
@@ -95,8 +82,6 @@ local function keymaps(bufnr, client)
9582
k("<leader>xf", snacks.picker.diagnostics_buffer, "Diagnostics: File")
9683
k("K", hover, "Hover")
9784

98-
set_keymaps_diagnostics(k)
99-
10085
if client:supports_method(methods.textDocument_typeDefinition) then
10186
k("grt", vim.lsp.buf.type_definition, "Jump to type definition")
10287
end

0 commit comments

Comments
 (0)