diff --git a/lua/plugins/chezmoi.lua b/lua/plugins/chezmoi.lua --- a/lua/plugins/chezmoi.lua +++ b/lua/plugins/chezmoi.lua @@ -60,7 +60,7 @@ end, }, { 'alker0/chezmoi.vim', - lazy = false, + event = 'VeryLazy', -- Only needed for template syntax init = function() vim.g['chezmoi#use_tmp_buffer'] = true end, diff --git a/lua/plugins/fugative.lua b/lua/plugins/fugative.lua --- a/lua/plugins/fugative.lua +++ b/lua/plugins/fugative.lua @@ -1,9 +1,9 @@ --- @type LazySpec | LazySpec[] return { - { enabled = true, 'tpope/vim-fugitive', + cmd = { 'G', 'Git', 'Gstatus', 'Gblame', 'Gpush', 'Gpull', 'Gfetch', 'Gwrite', 'Gread' }, config = function() end, }, } diff --git a/lua/plugins/hover.lua b/lua/plugins/hover.lua --- a/lua/plugins/hover.lua +++ b/lua/plugins/hover.lua @@ -1,6 +1,13 @@ --- @type LazySpec | LazySpec[] return { 'lewis6991/hover.nvim', + keys = { + { 'K', desc = 'Hover documentation' }, + { 'gK', desc = 'Hover select provider' }, + { '', mode = 'n', desc = 'Hover previous source' }, + { '', mode = 'n', desc = 'Hover next source' }, + { '', mode = 'n', desc = 'Hover mouse' }, + }, config = function() require('hover').config { -- Require providers diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -11,7 +11,6 @@ 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended 'MunifTanjim/nui.nvim', }, cmd = 'Neotree', - lazy = false, -- neo-tree will lazily load itself keys = { { 'ß', ':Neotree reveal', desc = 'NeoTree reveal', silent = true }, }, diff --git a/lua/plugins/typst-preview.lua b/lua/plugins/typst-preview.lua --- a/lua/plugins/typst-preview.lua +++ b/lua/plugins/typst-preview.lua @@ -1,7 +1,7 @@ --- @type LazySpec | LazySpec[] return { 'chomosuke/typst-preview.nvim', - lazy = false, -- or ft = 'typst' + ft = 'typst', -- Only load for Typst files version = '1.*', opts = {}, -- lazy.nvim will implicitly calls `setup {}` config = function() diff --git a/lua/plugins/vim-sleuth.lua b/lua/plugins/vim-sleuth.lua --- a/lua/plugins/vim-sleuth.lua +++ b/lua/plugins/vim-sleuth.lua @@ -1,4 +1,5 @@ --- @type LazySpec | LazySpec[] return { 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically + event = 'BufReadPre', -- Load before reading buffer }