AutoYADM commit: 2025-02-05 22:30:03

This commit is contained in:
Daniel Fichtinger 2025-02-05 22:30:03 -05:00
parent ddf6e8ed5b
commit 95fe4deee0
3 changed files with 89 additions and 68 deletions

View file

@ -12,61 +12,61 @@ insert = "bar"
normal = "block" normal = "block"
select = "underline" select = "underline"
[keys.normal] # [keys.normal]
m = "move_char_left" # m = "move_char_left"
M = "goto_line_start" # M = "goto_line_start"
n = "move_visual_line_down" # n = "move_visual_line_down"
e = "move_visual_line_up" # e = "move_visual_line_up"
i = "move_char_right" # i = "move_char_right"
I = "goto_line_end" # I = "goto_line_end"
h = "insert_mode" # h = "insert_mode"
H = "insert_at_line_start" # H = "insert_at_line_start"
w = "move_next_sub_word_start" # w = "move_next_sub_word_start"
b = "move_prev_sub_word_start" # b = "move_prev_sub_word_start"
j = "move_next_sub_word_end" # j = "move_next_sub_word_end"
J = "move_next_long_word_end" # J = "move_next_long_word_end"
k = "search_next" # k = "search_next"
K = "search_prev" # K = "search_prev"
C-q = ":qa" # C-q = ":qa"
C-Q = ":qa!" # C-Q = ":qa!"
[keys.select] # [keys.select]
m = "extend_char_left" # m = "extend_char_left"
M = "extend_to_line_start" # M = "extend_to_line_start"
n = "extend_visual_line_down" # n = "extend_visual_line_down"
e = "extend_visual_line_up" # e = "extend_visual_line_up"
i = "extend_char_right" # i = "extend_char_right"
I = "extend_to_line_end" # I = "extend_to_line_end"
k = "extend_search_next" # k = "extend_search_next"
K = "extend_search_prev" # K = "extend_search_prev"
[keys.normal.l] # [keys.normal.l]
m = "match_brackets" # m = "match_brackets"
l = "match_brackets" # l = "match_brackets"
s = "surround_add" # s = "surround_add"
r = "surround_replace" # r = "surround_replace"
d = "surround_delete" # d = "surround_delete"
a = "select_textobject_around" # a = "select_textobject_around"
i = "select_textobject_inner" # i = "select_textobject_inner"
[keys.normal."C-w"] # [keys.normal."C-w"]
m = "jump_view_left" # m = "jump_view_left"
C-m = "jump_view_left" # C-m = "jump_view_left"
n = "jump_view_down" # n = "jump_view_down"
C-n = "jump_view_down" # C-n = "jump_view_down"
i = "jump_view_right" # i = "jump_view_right"
C-i = "jump_view_right" # C-i = "jump_view_right"
e= "jump_view_up" # e= "jump_view_up"
C-e = "jump_view_up" # C-e = "jump_view_up"
M = "swap_view_left" # M = "swap_view_left"
N = "swap_view_down" # N = "swap_view_down"
E = "swap_view_up" # E = "swap_view_up"
I = "swap_view_right" # I = "swap_view_right"
h = "no_op" # h = "no_op"
j = "no_op" # j = "no_op"
k = "no_op" # k = "no_op"
l = "no_op" # l = "no_op"
H = "no_op" # H = "no_op"
J = "no_op" # J = "no_op"
K = "no_op" # K = "no_op"
L = "no_op" # L = "no_op"

View file

@ -1,13 +1,13 @@
# Syntax highlighting # Syntax highlighting
# ------------------- # -------------------
"attribute" = "yellow" "attribute" = "g_4"
"type" = "yellow" "type" = "g_2"
"type.enum.variant" = "teal" "type.enum.variant" = "orange_blaze"
"constructor" = "sapphire" "constructor" = "g_1"
"constant" = "peach" "constant" = "orange_blaze"
"constant.character" = "teal" "constant.character" = "teal"
"constant.character.escape" = "pink" "constant.character.escape" = "pink"
@ -121,16 +121,16 @@
"diagnostic.hint" = { underline = { color = "teal", style = "curl" } } "diagnostic.hint" = { underline = { color = "teal", style = "curl" } }
"diagnostic.unnecessary" = { modifiers = ["dim"] } "diagnostic.unnecessary" = { modifiers = ["dim"] }
error = "red" error = "red_flame"
warning = "yellow" warning = "orange_golden"
info = "sky" info = "g_2"
hint = "teal" hint = "g_4"
[palette] [palette]
cursorline = "#2a2b3c" cursorline = "#212121"
secondary_cursor = "#b5a6a8" # secondary_cursor = "#b5a6a8"
secondary_cursor_normal = "#b5a6a8" # secondary_cursor_normal = "#b5a6a8"
secondary_cursor_insert = "#7ea87f" # secondary_cursor_insert = "#7ea87f"
red_flame = "#C53030" red_flame = "#C53030"
red_glowing = "#DF6464" red_glowing = "#DF6464"

View file

@ -0,0 +1,21 @@
return {
"jake-stewart/multicursor.nvim",
branch = "1.0",
config = function()
local mc = require("multicursor-nvim")
mc.setup()
local set = vim.keymap.set
set({ "n", "v" }, "<S-up>", function()
mc.lineAddCursor(-1)
end)
set({ "n", "v" }, "<S-down>", function()
mc.lineAddCursor(1)
end)
set({ "n", "v" }, "<leader><up>", function()
mc.lineSkipCursor(-1)
end)
set({ "n", "v" }, "<leader><down>", function()
mc.lineSkipCursor(1)
end)
end,
}