mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-22 07:33:33 +00:00
chore: keybindings and git
This commit is contained in:
parent
eab51deeff
commit
9fb0d124b4
4 changed files with 14 additions and 3 deletions
|
@ -144,6 +144,12 @@
|
|||
pull = {
|
||||
ff = "only";
|
||||
};
|
||||
|
||||
url = {
|
||||
"git@github.com:" = {
|
||||
insteadOf = "https://github.com/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@ Plug("norcalli/nvim-colorizer.lua")
|
|||
Plug("j-hui/fidget.nvim")
|
||||
-- Git
|
||||
Plug("lewis6991/gitsigns.nvim")
|
||||
Plug("NeogitOrg/neogit")
|
||||
Plug("sindrets/diffview.nvim")
|
||||
-- Search/Files
|
||||
Plug("nvim-lua/plenary.nvim")
|
||||
Plug("nvim-telescope/telescope.nvim")
|
||||
|
|
|
@ -244,3 +244,6 @@ autocmd("BufWritePost", {
|
|||
})
|
||||
|
||||
require("trouble").setup({})
|
||||
|
||||
-- Git
|
||||
require("neogit").setup({})
|
||||
|
|
|
@ -43,20 +43,20 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||
{ desc = "LSP Rename", cmd = vim.lsp.buf.rename, keys = { "n", "rn", opts } },
|
||||
{ desc = "LSP Implementation", cmd = vim.lsp.buf.implementation, keys = { "n", "gi", opts } },
|
||||
{ desc = "LSP Signature Help", cmd = vim.lsp.buf.signature_help, keys = { "n", "<C-k>", opts } },
|
||||
{ desc = "LSP Code Action", cmd = vim.lsp.buf.code_action, keys = { "n", "<space>ca", opts } },
|
||||
{ desc = "LSP Code Action", cmd = vim.lsp.buf.code_action, keys = { "n", "<leader>ca", opts } },
|
||||
{
|
||||
desc = "LSP Format",
|
||||
cmd = function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end,
|
||||
keys = { "n", "<space>f", opts },
|
||||
keys = { "n", "<leader>f", opts },
|
||||
},
|
||||
{
|
||||
desc = "LSP Diagnostics",
|
||||
cmd = function()
|
||||
require("trouble").toggle("document_diagnostics")
|
||||
end,
|
||||
keys = { "n", "<space>d" },
|
||||
keys = { "n", "<leader>d" },
|
||||
},
|
||||
{
|
||||
desc = "LSP Diagnostics whole workspace",
|
||||
|
|
Loading…
Reference in a new issue