update to various, and added neogit

This commit is contained in:
Andre Henriques 2023-07-06 18:09:04 +01:00
parent 27121ac7fd
commit c02043fee2
5 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@ local opts = { noremap=true }
vim.keymap.set('n', '<leader>f', function () vim.cmd('Telescope find_files') end, { remap = true })
vim.keymap.set('n', '<leader>/', function () vim.cmd('Telescope live_grep') end, { remap = true })
vim.keymap.set('n', '<leader>b', function () vim.cmd('Telescope buffers') end, { remap = true })
vim.keymap.set('n', 'ge', 'G0', { remap = true })
vim.keymap.set('n', 'gh', '0', { remap = true })

View File

@ -4,4 +4,5 @@ else
require('andr3.set')
require('andr3.packer')
require('andr3.lsp')
require('andr3.neogit')
end

View File

@ -117,12 +117,13 @@ saga.setup{
}
keymap("n", "<leader>sf", "<cmd>Lspsaga lsp_finder<CR>", { silent = true })
keymap("n", "<leader>t", "<cmd>terminal<CR>", { silent = true })
keymap({"n","v"}, "<leader>ca", function () saga.code_action() end, {})
keymap("n", "gr", "<cmd>Lspsaga rename<CR>", { silent = true })
keymap("n", "gd", "<cmd>Lspsaga peek_definition<CR>", { silent = true })
--keymap("n", "<leader>cd", "<cmd>Lspsaga show_line_diagnostics<CR>", { silent = true })
keymap("n", "<leader>cd", "<cmd>Lspsaga show_cursor_diagnostics<CR>", { silent = true })
keymap('n', '<space>e', '<cmd>lua vim.diagnostic.open_float()<CR>', { silent = true })
keymap('n', '<leader>e', '<cmd>lua vim.diagnostic.open_float()<CR>', { silent = true })
keymap("n", "[e", "<cmd>Lspsaga diagnostic_jump_prev<CR>", { silent = true })
keymap("n", "]e", "<cmd>Lspsaga diagnostic_jump_next<CR>", { silent = true })

2
lua/andr3/neogit.lua Normal file
View File

@ -0,0 +1,2 @@
local neogit = require('neogit')
neogit.setup {}

View File

@ -23,6 +23,8 @@ return require('packer').startup(function()
use 'MunifTanjim/prettier.nvim'
use { 'NeogitOrg/neogit', requires = 'nvim-lua/plenary.nvim' }
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-path'