mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
Fugitive shortcuts and colors
This commit is contained in:
parent
3e731f662b
commit
b259d28da3
3 changed files with 5 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ vim.keymap.set("n", "<leader>dm", ":delmarks ", { desc = "Stream current buffer
|
|||
-- Close buffler split
|
||||
vim.keymap.set("n", "<leader>bx", ":quit<CR>", { desc = "Close focused split buffer" })
|
||||
-- Jump to implementation
|
||||
vim.keymap.set("n", "<leader>gi", "<cmd>Telescope lsp_implementations<cr>", { desc = "Telescope Go to implementation" })
|
||||
vim.keymap.set("n", "gi", "<cmd>Telescope lsp_implementations<cr>", { desc = "Telescope Go to implementation" })
|
||||
-- Set filte-type
|
||||
vim.keymap.set("n", "<leader>ft", ":set filetype=", { desc = "Set file type" })
|
||||
-- Tidy code
|
||||
|
|
|
|||
|
|
@ -2,9 +2,11 @@ return {
|
|||
"tpope/vim-fugitive",
|
||||
-- Optional: Configure lazy loading
|
||||
-- cmd = { "Git", "Gedit", "Gstatus", "Gdiffsplit", "Gblame" },
|
||||
keys = { "<leader>gi" }, -- Example key mapping for lazy loading
|
||||
keys = { "<leader>gi", "<leader>gd" }, -- Example key mapping for lazy loading
|
||||
config = function()
|
||||
-- Optional: Add keymaps or settings for Vim Fugitive here
|
||||
vim.keymap.set("n", "<leader>gi", ":Git ", { desc = "Git Status" })
|
||||
-- Diff current buffer
|
||||
vim.keymap.set("n", "<leader>gd", ":Gdiffsplit <cr>", { desc = "Show git diff for the current buffer" })
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
1
lua/plugins/preview-color.lua
Normal file
1
lua/plugins/preview-color.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
return { "norcalli/nvim-colorizer.lua", opts = {} }
|
||||
Loading…
Add table
Reference in a new issue