disable gitsign, sleuth and which-key

This commit is contained in:
long-crypto 2024-07-21 05:52:27 +00:00 committed by GitHub
parent f2196bcbf1
commit 7bf43b0539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 29 additions and 29 deletions

View File

@ -229,7 +229,7 @@ vim.opt.rtp:prepend(lazypath)
-- NOTE: Here is where you install your plugins.
require('lazy').setup({
-- 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,
-- with the first argument being the link and the following
@ -248,18 +248,18 @@ require('lazy').setup({
-- require('gitsigns').setup({ ... })
--
-- See `:help gitsigns` to understand what the configuration keys do
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
},
},
},
--{ -- Adds git related signs to the gutter, as well as utilities for managing changes
-- 'lewis6991/gitsigns.nvim',
-- opts = {
-- signs = {
-- add = { text = '+' },
-- change = { text = '~' },
-- delete = { text = '_' },
-- topdelete = { text = '‾' },
-- changedelete = { text = '~' },
-- },
-- },
--},
-- 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:
-- config = function() ... end
{ -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
config = function() -- This is the function that runs, AFTER loading
require('which-key').setup()
--{ -- Useful plugin to show you pending keybinds.
-- 'folke/which-key.nvim',
-- event = 'VimEnter', -- Sets the loading event to 'VimEnter'
-- config = function() -- This is the function that runs, AFTER loading
-- require('which-key').setup()
-- Document existing key chains
require('which-key').add {
{ '<leader>c', group = '[C]ode' },
{ '<leader>d', group = '[D]ocument' },
{ '<leader>r', group = '[R]ename' },
{ '<leader>s', group = '[S]earch' },
{ '<leader>w', group = '[W]orkspace' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
}
end,
},
-- require('which-key').add {
-- { '<leader>c', group = '[C]ode' },
-- { '<leader>d', group = '[D]ocument' },
-- { '<leader>r', group = '[R]ename' },
-- { '<leader>s', group = '[S]earch' },
-- { '<leader>w', group = '[W]orkspace' },
-- { '<leader>t', group = '[T]oggle' },
-- { '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
-- }
-- end,
--},
-- NOTE: Plugins can specify dependencies.
--