-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathtest-config.lua
More file actions
26 lines (21 loc) · 760 Bytes
/
test-config.lua
File metadata and controls
26 lines (21 loc) · 760 Bytes
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
---@diagnostic disable: assign-type-mismatch
---@param dev_path string
---@param plug_path string
---@return string|nil
local function local_plug(dev_path, plug_path)
return (vim.fn.isdirectory(dev_path) == 1) and dev_path or plug_path
end
local plug_path = './.test_plugins'
vim.opt.rtp:append(plug_path .. '/plenary.nvim')
vim.opt.rtp:append(plug_path .. '/nvim-lspconfig')
vim.opt.rtp:append(plug_path .. '/mason.nvim')
vim.opt.rtp:append(plug_path .. '/nui.nvim')
vim.opt.rtp:append(
local_plug('~/Workspace/nvim-java-core', plug_path .. '/nvim-java-core')
)
vim.opt.rtp:append(
local_plug('~/Workspace/nvim-java-test', plug_path .. '/nvim-java-test')
)
vim.opt.rtp:append(
local_plug('~/Workspace/nvim-java-dap', plug_path .. '/nvim-java-dap')
)