Split up config and remove obsidian plugin

This commit is contained in:
NaniNoni 2024-07-13 21:18:51 +02:00
parent c1ba048e90
commit 4f13bbbb04
7 changed files with 342 additions and 39 deletions

View file

@ -178,30 +178,7 @@ require('lazy').setup({
-- Then, because we use the `config` key, the configuration only runs
-- 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()
-- Document existing key chains
require('which-key').register {
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
}
-- visual mode
require('which-key').register({
['<leader>h'] = { 'Git [H]unk' },
}, { mode = 'v' })
end,
},
require 'plugins.which-key',
-- NOTE: Plugins can specify dependencies.
--
-- The dependencies are proper plugin specifications as well - anything
@ -761,8 +738,7 @@ require('lazy').setup({
--
require 'plugins.neo-tree',
require 'plugins.autopairs',
-- require 'plugins.lint',
require 'plugins.obsidian',
require 'plugins.lint',
}, {
ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the