Merge branch 'main' of git.ateijelo.com:ateijelo/nvim
This commit is contained in:
commit
4f20c382f4
2 changed files with 26 additions and 5 deletions
|
@ -98,9 +98,28 @@ keymap("n", "<F17>", "<cmd>lua require'dap'.terminate()<cr>", opts) -- Shift+F5
|
||||||
--keymap("n", "<F41>", "<Plug>VimspectorRestart", opts) -- Ctrl+Shift+F5
|
--keymap("n", "<F41>", "<Plug>VimspectorRestart", opts) -- Ctrl+Shift+F5
|
||||||
--keymap("n", "<leader>di", "<Plug>VimspectorBalloonEval", opts)
|
--keymap("n", "<leader>di", "<Plug>VimspectorBalloonEval", opts)
|
||||||
|
|
||||||
-- move.vim
|
-- move.nvim
|
||||||
vim.keymap.set('n', '<A-j>', '<cmd>MoveLine(1)<cr>', opts)
|
vim.keymap.set('n', '<M-j>', ':MoveLine(1)<cr>', opts)
|
||||||
vim.keymap.set('n', '<A-k>', '<cmd>MoveLine(-1)<cr>', opts)
|
vim.keymap.set('n', '<M-k>', ':MoveLine(-1)<cr>', opts)
|
||||||
vim.keymap.set('v', '<A-j>', '<cmd>MoveBlock(1)<cr>', opts)
|
vim.keymap.set('x', '<M-j>', ':MoveBlock(1)<cr>', opts)
|
||||||
vim.keymap.set('v', '<A-k>', '<cmd>MoveBlock(-1)<cr>', opts)
|
vim.keymap.set('x', '<M-k>', ':MoveBlock(-1)<cr>', opts)
|
||||||
|
|
||||||
|
-- disable arrow keys
|
||||||
|
keymap("n", "<Right>", "<Nop>", opts)
|
||||||
|
keymap("n", "<Left>", "<Nop>", opts)
|
||||||
|
keymap("n", "<Up>", "<Nop>", opts)
|
||||||
|
keymap("n", "<Down>", "<Nop>", opts)
|
||||||
|
keymap("i", "<Right>", "<Nop>", opts)
|
||||||
|
keymap("i", "<Left>", "<Nop>", opts)
|
||||||
|
keymap("i", "<Up>", "<Nop>", opts)
|
||||||
|
keymap("i", "<Down>", "<Nop>", opts)
|
||||||
|
|
||||||
|
-- move through wrapped lines
|
||||||
|
keymap("n", "j", "gj")
|
||||||
|
keymap("n", "k", "gk")
|
||||||
|
|
||||||
|
-- use Alt + ijkl to move in insert mode
|
||||||
|
keymap("i", "<M-l>", "<Right>", opts)
|
||||||
|
keymap("i", "<M-h>", "<Left>", opts)
|
||||||
|
keymap("i", "<M-j>", "<C-o>gj", opts)
|
||||||
|
keymap("i", "<M-k>", "<C-o>gk", opts)
|
||||||
|
|
|
@ -116,6 +116,8 @@ return packer.startup(function(use)
|
||||||
use { "j-hui/fidget.nvim", commit = "2cf9997d3bde2323a1a0934826ec553423005a26" }
|
use { "j-hui/fidget.nvim", commit = "2cf9997d3bde2323a1a0934826ec553423005a26" }
|
||||||
use { "mg979/vim-visual-multi" }
|
use { "mg979/vim-visual-multi" }
|
||||||
|
|
||||||
|
use { 'vala-lang/vala.vim' }
|
||||||
|
|
||||||
-- Automatically set up your configuration after cloning packer.nvim
|
-- Automatically set up your configuration after cloning packer.nvim
|
||||||
-- Put this at the end after all plugins
|
-- Put this at the end after all plugins
|
||||||
if PACKER_BOOTSTRAP then
|
if PACKER_BOOTSTRAP then
|
||||||
|
|
Loading…
Reference in a new issue