mirror of
https://github.com/Xevion/astronvim_config.git
synced 2025-12-05 23:14:19 -06:00
add mappings, add disabled line mover keybinds
This commit is contained in:
19
lua/plugins/mappings.lua
Normal file
19
lua/plugins/mappings.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"AstroNvim/astrocore",
|
||||||
|
---@type AstroCoreOpts
|
||||||
|
opts = {
|
||||||
|
mappings = {
|
||||||
|
-- first key is the mode
|
||||||
|
n = {
|
||||||
|
-- ["C-S-Up"] = { ":m -2<CR>", desc = "Move line up" },
|
||||||
|
-- ["C-S-Down"] = { ":m +1<CR>", desc = "Move line down" },
|
||||||
|
},
|
||||||
|
v = {
|
||||||
|
-- ["<M-k>"] = { ":m '<-2<CR>gv=gv", desc = "move line up" },
|
||||||
|
-- ["<M-j>"] = { ":m '>+1<CR>gv=gv", desc = "move line down" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user