add some git stuff

This commit is contained in:
mokou 2022-03-14 18:08:36 +01:00
parent cfad39f336
commit a2495e2cf6
2 changed files with 22 additions and 1 deletions

View file

@ -10,8 +10,9 @@ local leader_keymap = {
b = {
name = "+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 = {
name = "+window",
v = {"<cmd>vsplit<CR>", "Split vertically"},
@ -39,6 +40,12 @@ local leader_keymap = {
S = {"<cmd>Telescope lsp_workspace_symbols<CR>", "List workspace symbols"},
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)

View file

@ -36,9 +36,14 @@ return require("packer").startup(function(use)
use "hrsh7th/cmp-cmdline"
use({"hrsh7th/nvim-cmp", config = function() require("plugins.completion") end})
-- Text editing
use "tpope/vim-surround"
use "Raimondi/delimitMate"
-- Fancy UI stuff
use "RRethy/nvim-base16"
use "stevearc/dressing.nvim"
use({"lewis6991/gitsigns.nvim", config = function() require("gitsigns").setup() end})
use({"nvim-lualine/lualine.nvim", config = function()
require("lualine").setup({
options = {
@ -49,6 +54,14 @@ return require("packer").startup(function(use)
},
})
end})
use({"kdheepak/tabline.nvim", config = function()
require("tabline").setup({
options = {
show_devicons = false,
modified_icon = "#",
},
})
end})
-- Keybinds
use({
@ -58,5 +71,6 @@ return require("packer").startup(function(use)
-- File interaction
use({"nvim-telescope/telescope.nvim", config = function () end})
use({"TimUntersberger/neogit", config = function () require("neogit").setup({}) end})
end)