add some git stuff
This commit is contained in:
parent
cfad39f336
commit
a2495e2cf6
2 changed files with 22 additions and 1 deletions
|
@ -10,8 +10,9 @@ local leader_keymap = {
|
||||||
b = {
|
b = {
|
||||||
name = "+buffers",
|
name = "+buffers",
|
||||||
b = {"<cmd>Telescope buffers<CR>", "List buffers"},
|
b = {"<cmd>Telescope buffers<CR>", "List buffers"},
|
||||||
["<tab>"] = {"<cmd>b#<CR>", "Goto other buffer"},
|
d = {"<cmd>bd<CR>", "Delete buffer"}
|
||||||
},
|
},
|
||||||
|
["<tab><tab>"] = {"<cmd>b#<CR>", "Goto other buffer"},
|
||||||
w = {
|
w = {
|
||||||
name = "+window",
|
name = "+window",
|
||||||
v = {"<cmd>vsplit<CR>", "Split vertically"},
|
v = {"<cmd>vsplit<CR>", "Split vertically"},
|
||||||
|
@ -39,6 +40,12 @@ local leader_keymap = {
|
||||||
S = {"<cmd>Telescope lsp_workspace_symbols<CR>", "List workspace symbols"},
|
S = {"<cmd>Telescope lsp_workspace_symbols<CR>", "List workspace symbols"},
|
||||||
d = {"<cmd>Telescope lsp_definitions<CR>", "Goto definition"},
|
d = {"<cmd>Telescope lsp_definitions<CR>", "Goto definition"},
|
||||||
},
|
},
|
||||||
|
g = {
|
||||||
|
name = "+git",
|
||||||
|
s = {"<cmd>Telescope git_status<CR>", "Status"},
|
||||||
|
g = {"<cmd>Neogit<CR>", "Neogit"},
|
||||||
|
c = {"<cmd>Neogit commit<CR>", "Commit"},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
wk.register_keymap("leader", leader_keymap)
|
wk.register_keymap("leader", leader_keymap)
|
||||||
|
|
|
@ -36,9 +36,14 @@ return require("packer").startup(function(use)
|
||||||
use "hrsh7th/cmp-cmdline"
|
use "hrsh7th/cmp-cmdline"
|
||||||
use({"hrsh7th/nvim-cmp", config = function() require("plugins.completion") end})
|
use({"hrsh7th/nvim-cmp", config = function() require("plugins.completion") end})
|
||||||
|
|
||||||
|
-- Text editing
|
||||||
|
use "tpope/vim-surround"
|
||||||
|
use "Raimondi/delimitMate"
|
||||||
|
|
||||||
-- Fancy UI stuff
|
-- Fancy UI stuff
|
||||||
use "RRethy/nvim-base16"
|
use "RRethy/nvim-base16"
|
||||||
use "stevearc/dressing.nvim"
|
use "stevearc/dressing.nvim"
|
||||||
|
use({"lewis6991/gitsigns.nvim", config = function() require("gitsigns").setup() end})
|
||||||
use({"nvim-lualine/lualine.nvim", config = function()
|
use({"nvim-lualine/lualine.nvim", config = function()
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
|
@ -49,6 +54,14 @@ return require("packer").startup(function(use)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end})
|
end})
|
||||||
|
use({"kdheepak/tabline.nvim", config = function()
|
||||||
|
require("tabline").setup({
|
||||||
|
options = {
|
||||||
|
show_devicons = false,
|
||||||
|
modified_icon = "#",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end})
|
||||||
|
|
||||||
-- Keybinds
|
-- Keybinds
|
||||||
use({
|
use({
|
||||||
|
@ -58,5 +71,6 @@ return require("packer").startup(function(use)
|
||||||
|
|
||||||
-- File interaction
|
-- File interaction
|
||||||
use({"nvim-telescope/telescope.nvim", config = function () end})
|
use({"nvim-telescope/telescope.nvim", config = function () end})
|
||||||
|
use({"TimUntersberger/neogit", config = function () require("neogit").setup({}) end})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue