fix neovim a little

This commit is contained in:
Piotr Domański 2024-02-12 11:30:44 +01:00
parent 32a4f696f0
commit 06e662079e
3 changed files with 8 additions and 2 deletions

View file

@ -7,3 +7,5 @@ alias stopparra='hc && pkill -SIGHUP -f /Applications/Parallels\ Desktop.app'
# docker # docker
alias startdocker='open -a Docker' alias startdocker='open -a Docker'
alias stopdocker="pkill -SIGHUP -f /Applications/Docker.app 'docker serve'" alias stopdocker="pkill -SIGHUP -f /Applications/Docker.app 'docker serve'"
alias sd='startdocker'
alias ssd='startdocker'

View file

@ -35,6 +35,7 @@
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" }, "todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
"undotree": { "branch": "master", "commit": "36ff7abb6b60980338344982ad4cdf03f7961ecd" }, "undotree": { "branch": "master", "commit": "36ff7abb6b60980338344982ad4cdf03f7961ecd" },
"vim-ditto": { "branch": "master", "commit": "c21f0e2f651e0ae87788390dca2fb97af7fb8fcf" },
"vim-illuminate": { "branch": "master", "commit": "3bd2ab64b5d63b29e05691e624927e5ebbf0fb86" }, "vim-illuminate": { "branch": "master", "commit": "3bd2ab64b5d63b29e05691e624927e5ebbf0fb86" },
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
"window-picker": { "branch": "main", "commit": "41cfaa428577c53552200a404ae9b3a0b5719706" } "window-picker": { "branch": "main", "commit": "41cfaa428577c53552200a404ae9b3a0b5719706" }

View file

@ -1,5 +1,5 @@
vim.api.nvim_set_keymap("n", "<leader>bj", "<cmd>bprev<cr>", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "<leader>;", "<cmd>bprev<cr>", { desc="prev buffer", noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>bk", "<cmd>bnext<cr>", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "<leader>'", "<cmd>bnext<cr>", { desc="next buffer", noremap = true, silent = true })
vim.api.nvim_set_keymap("x", "<C-p>", '"_dP', { noremap = true, silent = true }) vim.api.nvim_set_keymap("x", "<C-p>", '"_dP', { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>/", "gcc", { noremap = false, silent = true }) vim.api.nvim_set_keymap("n", "<leader>/", "gcc", { noremap = false, silent = true })
vim.api.nvim_set_keymap( vim.api.nvim_set_keymap(
@ -104,3 +104,6 @@ vim.keymap.set("n", "<leader>hh", "<cmd>lua require('harpoon.ui').toggle_quick_m
vim.keymap.set("n", "<leader>ha", "<cmd>lua require('harpoon.mark').add_file()<cr>", { desc = "Harpoon Add File" }) vim.keymap.set("n", "<leader>ha", "<cmd>lua require('harpoon.mark').add_file()<cr>", { desc = "Harpoon Add File" })
vim.keymap.set("n", "<leader>k", "<cmd>lua require('harpoon.ui').nav_next()<cr>", { desc = "Navigate to next harpoon file" }) vim.keymap.set("n", "<leader>k", "<cmd>lua require('harpoon.ui').nav_next()<cr>", { desc = "Navigate to next harpoon file" })
vim.keymap.set("n", "<leader>j", "<cmd>lua require('harpoon.ui').nav_prev()<cr>", { desc = "Navigate to previous harpoon file" }) vim.keymap.set("n", "<leader>j", "<cmd>lua require('harpoon.ui').nav_prev()<cr>", { desc = "Navigate to previous harpoon file" })
-- ditto
vim.keymap.set("n", "<leader>dd", "<cmd>ToggleDitto<cr>", { desc = "Ditto toggle" })