-
Notifications
You must be signed in to change notification settings - Fork 484
Expand file tree
/
Copy pathtool.lua
More file actions
159 lines (155 loc) · 3.96 KB
/
tool.lua
File metadata and controls
159 lines (155 loc) · 3.96 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
local tool = {}
local settings = require("core.settings")
tool["tpope/vim-fugitive"] = {
lazy = true,
cmd = { "Git", "G" },
}
-- This is specifically for fcitx5 users who code in languages other than English
-- tool["pysan3/fcitx5.nvim"] = {
-- lazy = true,
-- event = "BufReadPost",
-- cond = vim.fn.executable("fcitx5-remote") == 1,
-- config = require("tool.fcitx5"),
-- }
tool["Bekaboo/dropbar.nvim"] = {
lazy = false,
config = require("tool.dropbar"),
dependencies = {
"nvim-tree/nvim-web-devicons",
"nvim-telescope/telescope-fzf-native.nvim",
},
}
tool["nvim-tree/nvim-tree.lua"] = {
lazy = true,
cmd = {
"NvimTreeToggle",
"NvimTreeOpen",
"NvimTreeFindFile",
"NvimTreeFindFileToggle",
"NvimTreeRefresh",
},
config = require("tool.nvim-tree"),
}
tool["ibhagwan/smartyank.nvim"] = {
lazy = true,
event = "BufReadPost",
config = require("tool.smartyank"),
}
tool["michaelb/sniprun"] = {
lazy = true,
-- If you see an error about a missing SnipRun executable,
-- run `bash ./install.sh` inside `~/.local/share/nvim/site/lazy/sniprun/`.
build = "bash ./install.sh",
cmd = { "SnipRun", "SnipReset", "SnipInfo" },
config = require("tool.sniprun"),
}
tool["akinsho/toggleterm.nvim"] = {
lazy = true,
cmd = {
"ToggleTerm",
"ToggleTermSetName",
"ToggleTermToggleAll",
"ToggleTermSendVisualLines",
"ToggleTermSendCurrentLine",
"ToggleTermSendVisualSelection",
},
config = require("tool.toggleterm"),
}
tool["folke/trouble.nvim"] = {
lazy = true,
cmd = { "Trouble", "TroubleToggle", "TroubleRefresh" },
config = require("tool.trouble"),
}
tool["folke/which-key.nvim"] = {
lazy = true,
event = { "CursorHold", "CursorHoldI" },
config = require("tool.which-key"),
}
if settings.use_chat then
tool["olimorris/codecompanion.nvim"] = {
lazy = true,
cmd = {
"CodeCompanion",
"CodeCompanionActions",
"CodeCompanionChat",
"CodeCompanionCLI",
"CodeCompanionCmd",
"CodeCompanionHistory",
"CodeCompanionSummaries",
},
config = require("tool.codecompanion"),
dependencies = {
{ "ravitemer/codecompanion-history.nvim" },
},
}
end
-- Needs `fzf` installed and in $PATH
tool["ibhagwan/fzf-lua"] = {
lazy = true,
cond = (settings.search_backend == "fzf"),
cmd = "FzfLua",
config = require("tool.fzf-lua"),
dependencies = { "nvim-tree/nvim-web-devicons" },
}
----------------------------------------------------------------------
-- Telescope Plugins --
----------------------------------------------------------------------
tool["nvim-telescope/telescope.nvim"] = {
lazy = true,
cmd = "Telescope",
config = require("tool.telescope"),
dependencies = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-tree/nvim-web-devicons" },
{ "jvgrootveld/telescope-zoxide" },
{ "debugloop/telescope-undo.nvim" },
{ "nvim-telescope/telescope-frecency.nvim" },
{ "nvim-telescope/telescope-live-grep-args.nvim" },
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
{
"ayamir/search.nvim",
config = require("tool.search"),
},
{
"DrKJeff16/project.nvim",
event = { "CursorHold", "CursorHoldI" },
config = require("tool.project"),
},
{
"aaronhallaert/advanced-git-search.nvim",
cmd = { "AdvancedGitSearch" },
dependencies = {
"tpope/vim-rhubarb",
"tpope/vim-fugitive",
"sindrets/diffview.nvim",
},
},
},
}
----------------------------------------------------------------------
-- DAP Plugins --
----------------------------------------------------------------------
tool["mfussenegger/nvim-dap"] = {
lazy = true,
cmd = {
"DapSetLogLevel",
"DapShowLog",
"DapContinue",
"DapToggleBreakpoint",
"DapToggleRepl",
"DapStepOver",
"DapStepInto",
"DapStepOut",
"DapTerminate",
},
config = require("tool.dap"),
dependencies = {
{ "jay-babu/mason-nvim-dap.nvim" },
{
"rcarriga/nvim-dap-ui",
dependencies = "nvim-neotest/nvim-nio",
config = require("tool.dap.dapui"),
},
},
}
return tool