mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 11:40:36 +00:00
feat(lsp-config.lua): add configuration for dockerls, jsonls, volar, rust_analyzer, cssls, htmx, docker_compose_language_service, and eslint servers to enhance language support in the editor
fix(remap.lua): add key mappings for moving selected lines or blocks of text up and down in visual mode, moving half page up and down, and adjusting cursor position after using 'n' and 'N' commands
This commit is contained in:
@@ -2,12 +2,23 @@ vim.g.mapleader = " "
|
||||
|
||||
vim.keymap.set("n", "<leader>\\", "<cmd>NvimTreeToggle<CR>") -- toggle file explorer
|
||||
|
||||
|
||||
-- Move selected line / block of text in visual mode up
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
|
||||
-- Move selected line / block of text in visual mode down
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
|
||||
vim.keymap.set("n", "J", "mzJ`z")
|
||||
|
||||
-- Move half page down
|
||||
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
|
||||
-- Move half page up
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
|
||||
|
||||
vim.keymap.set("n", "n", "nzzzv")
|
||||
vim.keymap.set("n", "N", "Nzzzv")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user