-
Notifications
You must be signed in to change notification settings - Fork 462
/
Copy patheditor.lua
105 lines (102 loc) · 2.63 KB
/
editor.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
local editor = {}
editor["rainbowhxch/accelerated-jk.nvim"] = {
lazy = true,
event = "VeryLazy",
config = require("editor.accelerated-jk"),
}
editor["rmagatti/auto-session"] = {
lazy = true,
cmd = { "SessionSave", "SessionRestore", "SessionDelete" },
config = require("editor.auto-session"),
}
editor["m4xshen/autoclose.nvim"] = {
lazy = true,
event = "InsertEnter",
config = require("editor.autoclose"),
}
editor["max397574/better-escape.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.better-escape"),
}
editor["LunarVim/bigfile.nvim"] = {
lazy = false,
config = require("editor.bigfile"),
cond = require("core.settings").load_big_files_faster,
}
editor["ojroques/nvim-bufdel"] = {
lazy = true,
event = "BufReadPost",
}
editor["rhysd/clever-f.vim"] = {
lazy = true,
event = { "BufReadPost", "BufAdd", "BufNewFile" },
config = require("editor.cleverf"),
}
editor["numToStr/Comment.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.comment"),
}
editor["sindrets/diffview.nvim"] = {
lazy = true,
cmd = { "DiffviewOpen", "DiffviewClose" },
}
editor["junegunn/vim-easy-align"] = {
lazy = true,
cmd = "EasyAlign",
}
editor["phaazon/hop.nvim"] = {
lazy = true,
branch = "v2",
event = "BufReadPost",
config = require("editor.hop"),
}
editor["RRethy/vim-illuminate"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.vim-illuminate"),
}
editor["romainl/vim-cool"] = {
lazy = true,
event = { "CursorMoved", "InsertEnter" },
}
editor["lambdalisue/suda.vim"] = {
lazy = true,
cmd = { "SudaRead", "SudaWrite" },
config = require("editor.suda"),
}
----------------------------------------------------------------------
-- :treesitter related plugins --
----------------------------------------------------------------------
editor["nvim-treesitter/nvim-treesitter"] = {
lazy = true,
build = function()
if #vim.api.nvim_list_uis() ~= 0 then
vim.api.nvim_command("TSUpdate")
end
end,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.treesitter"),
dependencies = {
{ "nvim-treesitter/nvim-treesitter-textobjects" },
{ "nvim-treesitter/nvim-treesitter-context" },
{ "mrjones2014/nvim-ts-rainbow" },
{ "JoosepAlviste/nvim-ts-context-commentstring" },
{ "mfussenegger/nvim-treehopper" },
{ "andymass/vim-matchup" },
{
"windwp/nvim-ts-autotag",
config = require("editor.autotag"),
},
{
"NvChad/nvim-colorizer.lua",
config = require("editor.colorizer"),
},
{
"abecodes/tabout.nvim",
config = require("editor.tabout"),
},
},
}
return editor