mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 03:30:01 +02:00
big nvim update. maybe broke something
This commit is contained in:
parent
1e68462bc1
commit
8a39a1b88a
32 changed files with 531 additions and 195 deletions
|
|
@ -37,10 +37,13 @@ map("n", "<leader>bb", cmd.bp, { silent = true, desc = "Move to previous buffer"
|
|||
map("n", "<leader>bd", cmd.bd, { silent = true, desc = "Close current buffer"})
|
||||
|
||||
-- Indent
|
||||
map('n', "<Tab>", "v=")
|
||||
map('n', "<Tab>", "^=$")
|
||||
map('x', "<Tab>", "=", { desc = "auto indent selection" })
|
||||
map("i", "<S-Tab>", "<C-d>", { desc = "delete indent" })
|
||||
|
||||
-- fix paste
|
||||
map('n', "p", "p=$")
|
||||
|
||||
-- Crazy search+replace
|
||||
map("n", "<leader>rw", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], {
|
||||
desc = "search+replace word under cursor"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue