diff options
| author | pml68 <contact@pml68.me> | 2024-10-01 14:24:59 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-10-01 14:36:38 +0200 |
| commit | 706017b4de8f604cf0d3d4083b0ce34428bf25f3 (patch) | |
| tree | cfe0ff423bc992559c039d78610794b4dadc0952 /lua/pml68 | |
| parent | feat: add C# to format-on-save list (diff) | |
| download | nvim-706017b4de8f604cf0d3d4083b0ce34428bf25f3.tar.gz | |
feat: change some remaps
s
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/plugins.lua | 2 | ||||
| -rw-r--r-- | lua/pml68/remap.lua | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index 1a176db..0cdeb16 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -186,6 +186,7 @@ local plugins = { "python", "rust", "markdown", + "markdown_inline", "yaml", "json", "glsl", @@ -266,7 +267,6 @@ local plugins = { --JSON { "b0o/schemastore.nvim", - ft = "json", }, --Rust { diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index 1ae3760..05d3dc3 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -6,15 +6,15 @@ vim.keymap.set("n", "<Esc>", "<cmd>nohl<CR>") vim.keymap.set("n", "<leader>x", "<cmd>bd<CR>") vim.keymap.set("n", "<leader>fo", "=ap") vim.keymap.set("n", "<leader>b", "<cmd>!chmod 755 %<CR>", { silent = true }) -vim.keymap.set("n", "<leader>j", "ddp") -vim.keymap.set("n", "<leader>k", "ddkP") +vim.keymap.set("n", "<A-J>", "ddp") +vim.keymap.set("n", "<A-K>", "ddkP") vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") vim.keymap.set("n", "<leader>sl", "<cmd>exec \"normal i\".nr2char(getchar()).\"\\e\"<CR>") vim.keymap.set("n", "<leader>sc", "<cmd>exec \"normal a\".nr2char(getchar()).\"\\e\"<CR>") -- u/soer9459 -vim.keymap.set('n', '<leader>;', +vim.keymap.set('n', '<leader>,', function() local cursor = vim.api.nvim_win_get_cursor(0) vim.cmd('norm A;') |
