mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Lazy load more stuff
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
||||
result
|
||||
log
|
||||
log*
|
||||
.luarc.json
|
||||
|
||||
@@ -40,7 +40,8 @@ return {
|
||||
|
||||
{
|
||||
"git-conflict.nvim",
|
||||
lazy = false,
|
||||
-- load on enter to detect + highlight conflicts
|
||||
event = { "BufReadPost", "BufWritePost", "BufNewFile" },
|
||||
keys = {
|
||||
{ "c<", "<Plug>(git-conflict-our)", desc = "Accept ours (top one)" },
|
||||
{ "c>", "<Plug>(git-conflict-theirs)", desc = "Accept their (bottom one)" },
|
||||
|
||||
@@ -1,19 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"nvim-navic",
|
||||
opts = {
|
||||
highlight = true,
|
||||
lsp = {
|
||||
auto_attach = true,
|
||||
},
|
||||
},
|
||||
after = function(plug)
|
||||
require("nvim-navic").setup(plug.opts)
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"lualine.nvim",
|
||||
event = "DeferredUIEnter",
|
||||
opts = {
|
||||
options = {
|
||||
theme = "auto",
|
||||
@@ -113,4 +101,18 @@ return {
|
||||
require("lualine").setup(plug.opts)
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-navic",
|
||||
event = "DeferredUIEnter",
|
||||
opts = {
|
||||
highlight = true,
|
||||
lsp = {
|
||||
auto_attach = true,
|
||||
},
|
||||
},
|
||||
after = function(plug)
|
||||
require("nvim-navic").setup(plug.opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"mini.icons",
|
||||
event = "DeferredUIEnter",
|
||||
enabled = vim.g.have_nerd_font,
|
||||
after = function()
|
||||
require("mini.icons").setup();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"nvim-surround",
|
||||
event = "DeferredUIEnter",
|
||||
after = function()
|
||||
require("nvim-surround").setup({})
|
||||
end,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"noice.nvim",
|
||||
lazy = false,
|
||||
event = "DeferredUIEnter",
|
||||
keys = {
|
||||
{ "<leader>zl", "<cmd>Noice<cr>", desc = "List messages" },
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"statuscol.nvim",
|
||||
event = "DeferredUIEnter",
|
||||
after = function()
|
||||
local builtin = require("statuscol.builtin")
|
||||
require("statuscol").setup({
|
||||
|
||||
@@ -37,7 +37,7 @@ return {
|
||||
|
||||
{
|
||||
"ts-comments.nvim",
|
||||
event = { "VimEnter" },
|
||||
event = { "BufReadPost", "BufWritePost", "BufNewFile" },
|
||||
after = function()
|
||||
require("ts-comments").setup({})
|
||||
end,
|
||||
|
||||
@@ -8,6 +8,7 @@ return {
|
||||
|
||||
{
|
||||
"which-key.nvim",
|
||||
event = "DeferredUIEnter",
|
||||
opts = {
|
||||
plugins = { spelling = true },
|
||||
icons = {
|
||||
@@ -75,6 +76,7 @@ return {
|
||||
|
||||
{
|
||||
"virt-column.nvim",
|
||||
event = { "BufReadPost", "BufWritePost", "BufNewFile" },
|
||||
opts = {
|
||||
char = "▕",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user