disable gitsign, sleuth and which-key
This commit is contained in:
parent
f2196bcbf1
commit
7bf43b0539
58
init.lua
58
init.lua
|
@ -229,7 +229,7 @@ vim.opt.rtp:prepend(lazypath)
|
||||||
-- NOTE: Here is where you install your plugins.
|
-- NOTE: Here is where you install your plugins.
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
--'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
||||||
|
|
||||||
-- NOTE: Plugins can also be added by using a table,
|
-- NOTE: Plugins can also be added by using a table,
|
||||||
-- with the first argument being the link and the following
|
-- with the first argument being the link and the following
|
||||||
|
@ -248,18 +248,18 @@ require('lazy').setup({
|
||||||
-- require('gitsigns').setup({ ... })
|
-- require('gitsigns').setup({ ... })
|
||||||
--
|
--
|
||||||
-- See `:help gitsigns` to understand what the configuration keys do
|
-- See `:help gitsigns` to understand what the configuration keys do
|
||||||
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
|
--{ -- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
'lewis6991/gitsigns.nvim',
|
-- 'lewis6991/gitsigns.nvim',
|
||||||
opts = {
|
-- opts = {
|
||||||
signs = {
|
-- signs = {
|
||||||
add = { text = '+' },
|
-- add = { text = '+' },
|
||||||
change = { text = '~' },
|
-- change = { text = '~' },
|
||||||
delete = { text = '_' },
|
-- delete = { text = '_' },
|
||||||
topdelete = { text = '‾' },
|
-- topdelete = { text = '‾' },
|
||||||
changedelete = { text = '~' },
|
-- changedelete = { text = '~' },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
--},
|
||||||
|
|
||||||
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
|
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
|
||||||
--
|
--
|
||||||
|
@ -276,24 +276,24 @@ require('lazy').setup({
|
||||||
-- after the plugin has been loaded:
|
-- after the plugin has been loaded:
|
||||||
-- config = function() ... end
|
-- config = function() ... end
|
||||||
|
|
||||||
{ -- Useful plugin to show you pending keybinds.
|
--{ -- Useful plugin to show you pending keybinds.
|
||||||
'folke/which-key.nvim',
|
-- 'folke/which-key.nvim',
|
||||||
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
-- event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
||||||
config = function() -- This is the function that runs, AFTER loading
|
-- config = function() -- This is the function that runs, AFTER loading
|
||||||
require('which-key').setup()
|
-- require('which-key').setup()
|
||||||
|
|
||||||
-- Document existing key chains
|
-- Document existing key chains
|
||||||
require('which-key').add {
|
-- require('which-key').add {
|
||||||
{ '<leader>c', group = '[C]ode' },
|
-- { '<leader>c', group = '[C]ode' },
|
||||||
{ '<leader>d', group = '[D]ocument' },
|
-- { '<leader>d', group = '[D]ocument' },
|
||||||
{ '<leader>r', group = '[R]ename' },
|
-- { '<leader>r', group = '[R]ename' },
|
||||||
{ '<leader>s', group = '[S]earch' },
|
-- { '<leader>s', group = '[S]earch' },
|
||||||
{ '<leader>w', group = '[W]orkspace' },
|
-- { '<leader>w', group = '[W]orkspace' },
|
||||||
{ '<leader>t', group = '[T]oggle' },
|
-- { '<leader>t', group = '[T]oggle' },
|
||||||
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
-- { '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
||||||
}
|
-- }
|
||||||
end,
|
-- end,
|
||||||
},
|
--},
|
||||||
|
|
||||||
-- NOTE: Plugins can specify dependencies.
|
-- NOTE: Plugins can specify dependencies.
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue