remove redundant plugin loading for git signs
This commit is contained in:
parent
052277d2eb
commit
e80d59af54
1
init.lua
1
init.lua
|
|
@ -538,7 +538,6 @@ do
|
||||||
|
|
||||||
-- Add Telescope-based LSP pickers when an LSP attaches to a buffer.
|
-- Add Telescope-based LSP pickers when an LSP attaches to a buffer.
|
||||||
-- If you later switch picker plugins, this is where to update these mappings.
|
-- If you later switch picker plugins, this is where to update these mappings.
|
||||||
--TODO: I should redo these mappings
|
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
group = vim.api.nvim_create_augroup('telescope-lsp-attach', { clear = true }),
|
group = vim.api.nvim_create_augroup('telescope-lsp-attach', { clear = true }),
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
-- NOTE: gitsigns is already included in init.lua but contains only the base
|
-- NOTE: gitsigns is already included in init.lua but contains only the base
|
||||||
-- config. This will add also the recommended keymaps.
|
-- config. This will add also the recommended keymaps.
|
||||||
|
|
||||||
vim.pack.add { 'https://github.com/lewis6991/gitsigns.nvim' }
|
|
||||||
|
|
||||||
require('gitsigns').setup {
|
require('gitsigns').setup {
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
local gitsigns = require 'gitsigns'
|
local gitsigns = require 'gitsigns'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue