mirror of
https://github.com/pnx/dotfiles
synced 2026-07-05 07:43:39 +02:00
nvim: lazy load some plugins.
This commit is contained in:
parent
bf5139abd0
commit
7bb5d36e1e
3 changed files with 109 additions and 99 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
return {
|
return {
|
||||||
{ import = "user.plugins.editor.treesitter" },
|
{ import = "user.plugins.editor.treesitter" },
|
||||||
|
{
|
||||||
"mbbill/undotree",
|
"mbbill/undotree",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
},
|
||||||
-- color highlight in documents
|
-- color highlight in documents
|
||||||
{
|
{
|
||||||
'brenoprata10/nvim-highlight-colors',
|
'brenoprata10/nvim-highlight-colors',
|
||||||
|
|
@ -48,6 +51,7 @@ return {
|
||||||
-- Better status column
|
-- Better status column
|
||||||
{
|
{
|
||||||
"luukvbaal/statuscol.nvim",
|
"luukvbaal/statuscol.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile", "BufAdd" },
|
||||||
opts = function()
|
opts = function()
|
||||||
local builtin = require("statuscol.builtin")
|
local builtin = require("statuscol.builtin")
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ local icons = require('user.icons').diff_gutter
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
|
|
@ -13,7 +14,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lazy = false,
|
|
||||||
opts = {
|
opts = {
|
||||||
signs = {
|
signs = {
|
||||||
add = { text = icons.add },
|
add = { text = icons.add },
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,11 @@
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = function()
|
build = function()
|
||||||
require("nvim-treesitter.install").update({ with_sync = true })
|
require("nvim-treesitter.install").update({ with_sync = true })
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
{
|
|
||||||
"windwp/nvim-ts-autotag",
|
|
||||||
opts = {}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
opts_extend = { "ensure_installed" },
|
opts_extend = { "ensure_installed" },
|
||||||
opts = {
|
opts = {
|
||||||
|
|
@ -104,4 +101,13 @@ return {
|
||||||
|
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
end,
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"windwp/nvim-ts-autotag",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
},
|
||||||
|
event = "InsertEnter",
|
||||||
|
opts = {}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue