mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
5 Commits
238886c136
...
f308ccad7b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f308ccad7b | ||
|
|
09dd81bf67 | ||
|
|
5ecb74ad85 | ||
|
|
773003b71b | ||
|
|
f5097b44b9 |
@ -167,6 +167,8 @@ Some of the shortcuts I use frequently are listed here. In the following shortcu
|
|||||||
| `<leader>gc` | Normal | Linux/macOS/Win | Run git commit |
|
| `<leader>gc` | Normal | Linux/macOS/Win | Run git commit |
|
||||||
| `<leader>gpl` | Normal | Linux/macOS/Win | Run git pull |
|
| `<leader>gpl` | Normal | Linux/macOS/Win | Run git pull |
|
||||||
| `<leader>gpu` | Normal | Linux/macOS/Win | Run git push |
|
| `<leader>gpu` | Normal | Linux/macOS/Win | Run git push |
|
||||||
|
| `<leader>gl` | Normal/Visual | Linux/macOS/Win | Get perm link for current/visually-select lines
|
||||||
|
| `<leader>gb` | Normal | macOS | Browse current git repo in browser
|
||||||
| `<F9>` | Normal | Linux/macOS/Win | Compile&run current source file (for C++, LaTeX, Lua, Python) |
|
| `<F9>` | Normal | Linux/macOS/Win | Compile&run current source file (for C++, LaTeX, Lua, Python) |
|
||||||
| `<F11>` | Normal | Linux/macOS/Win | Toggle spell checking |
|
| `<F11>` | Normal | Linux/macOS/Win | Toggle spell checking |
|
||||||
| `<F12>` | Normal | Linux/macOS/Win | Toggle paste mode |
|
| `<F12>` | Normal | Linux/macOS/Win | Toggle paste mode |
|
||||||
|
|||||||
1
after/ftplugin/sql.vim
Normal file
1
after/ftplugin/sql.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
set commentstring=--\ %s
|
||||||
@ -6,3 +6,6 @@ keymap.set("n", "<leader>gc", "<cmd>Git commit<cr>", { desc = "Git commit" })
|
|||||||
keymap.set("n", "<leader>gd", "<cmd>Gdiffsplit<cr>", { desc = "Git diff" })
|
keymap.set("n", "<leader>gd", "<cmd>Gdiffsplit<cr>", { desc = "Git diff" })
|
||||||
keymap.set("n", "<leader>gpl", "<cmd>Git pull<cr>", { desc = "Git pull" })
|
keymap.set("n", "<leader>gpl", "<cmd>Git pull<cr>", { desc = "Git pull" })
|
||||||
keymap.set("n", "<leader>gpu", "<cmd>15 split|term git push<cr>", { desc = "Git push" })
|
keymap.set("n", "<leader>gpu", "<cmd>15 split|term git push<cr>", { desc = "Git push" })
|
||||||
|
|
||||||
|
-- convert git to Git in command line mode
|
||||||
|
vim.fn['utils#Cabbrev']('git', 'Git')
|
||||||
|
|||||||
@ -13,3 +13,13 @@ keymap.set({ "n", "v" }, "<leader>gl", "", {
|
|||||||
gitlinker.get_buf_range_url(mode)
|
gitlinker.get_buf_range_url(mode)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
keymap.set("n", "<leader>gb", "", {
|
||||||
|
silent = true,
|
||||||
|
desc = "browse repo in browser",
|
||||||
|
callback = function()
|
||||||
|
gitlinker.get_repo_url({
|
||||||
|
action_callback = gitlinker.actions.open_in_browser
|
||||||
|
})
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user