-
Notifications
You must be signed in to change notification settings - Fork 459
/
editor.lua
127 lines (124 loc) · 3.29 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
local editor = {}
editor["olimorris/persisted.nvim"] = {
lazy = true,
cmd = {
"SessionToggle",
"SessionStart",
"SessionStop",
"SessionSave",
"SessionLoad",
"SessionLoadLast",
"SessionLoadFromFile",
"SessionDelete",
},
config = require("editor.persisted"),
}
editor["m4xshen/autoclose.nvim"] = {
lazy = true,
event = "InsertEnter",
config = require("editor.autoclose"),
}
editor["LunarVim/bigfile.nvim"] = {
lazy = false,
config = require("editor.bigfile"),
cond = require("core.settings").load_big_files_faster,
}
editor["ojroques/nvim-bufdel"] = {
lazy = true,
cmd = { "BufDel", "BufDelAll", "BufDelOthers" },
}
-- NOTE: `flash.nvim` is a powerful plugin that can be used as partial or complete replacements for:
-- > `hop.nvim`,
-- > `wilder.nvim`
-- > `nvim-treehopper`
-- Considering its steep learning curve as well as backward compatibility issues...
-- > We have no plan to remove the above plugins for the time being.
-- But as usual, you can always tweak the plugin to your liking.
editor["folke/flash.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.flash"),
}
editor["numToStr/Comment.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.comment"),
}
editor["sindrets/diffview.nvim"] = {
lazy = true,
cmd = { "DiffviewOpen", "DiffviewClose" },
config = require("editor.diffview"),
}
editor["echasnovski/mini.align"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.align"),
}
editor["smoka7/hop.nvim"] = {
lazy = true,
version = "*",
event = { "CursorHold", "CursorHoldI" },
config = require("editor.hop"),
}
editor["tzachar/local-highlight.nvim"] = {
lazy = true,
event = { "BufReadPost", "BufAdd", "BufNewFile" },
config = require("editor.local-highlight"),
}
editor["brenoprata10/nvim-highlight-colors"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("editor.highlight-colors"),
}
editor["romainl/vim-cool"] = {
lazy = true,
event = { "CursorMoved", "InsertEnter" },
}
editor["lambdalisue/suda.vim"] = {
lazy = true,
cmd = { "SudaRead", "SudaWrite" },
init = require("editor.suda"),
}
editor["tpope/vim-sleuth"] = {
lazy = true,
event = { "BufNewFile", "BufReadPost", "BufFilePost" },
}
editor["nvim-pack/nvim-spectre"] = {
lazy = true,
cmd = "Spectre",
}
----------------------------------------------------------------------
-- :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 = "BufReadPre",
config = require("editor.treesitter"),
dependencies = {
{ "andymass/vim-matchup" },
{ "mfussenegger/nvim-treehopper" },
{ "nvim-treesitter/nvim-treesitter-textobjects" },
{
"windwp/nvim-ts-autotag",
config = require("editor.autotag"),
},
{
"hiphish/rainbow-delimiters.nvim",
config = require("editor.rainbow_delims"),
},
{
"nvim-treesitter/nvim-treesitter-context",
config = require("editor.ts-context"),
},
{
"JoosepAlviste/nvim-ts-context-commentstring",
config = require("editor.ts-context-commentstring"),
},
},
}
return editor