Fix nvim config: copy files directly instead of submodule
This commit is contained in:
20
configs/nvim/lua/plugins/rest.lua
Normal file
20
configs/nvim/lua/plugins/rest.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
{
|
||||
"vhyrro/luarocks.nvim",
|
||||
priority = 1000,
|
||||
opts = {
|
||||
rocks = { "lua-curl", "nvim-nio", "mimetypes", "xml2lua" },
|
||||
},
|
||||
config = function(_, opts)
|
||||
local plugin_path = vim.fn.stdpath("data") .. "/lazy/luarocks.nvim"
|
||||
local vendor_path = plugin_path .. "/.rocks/share/lua/5.1/luarocks/vendor/?.lua"
|
||||
package.path = package.path .. ";" .. vendor_path
|
||||
require("luarocks-nvim").setup(opts)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"rest-nvim/rest.nvim",
|
||||
ft = "http",
|
||||
dependencies = { "luarocks.nvim" },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user