Open Phantasimay opened 3 months ago
Can you provide more details on your problem?
If there is an error arising from this plugin can you give me the :messages
output of your neovim?
if i use your default instalation :messege
return
Error detected while processing VIMINIT..script /home/sandun/.config/nvim/vimrc:
line 136:
Lua module not found for config of rest.nvim. Please use a `config()` function instead
"lua/plugins/database.lua" 120L, 2822B
{}
then if i use:
{
"amirali/rest-ui.nvim",
dependencies = {
"rest-nvim/rest.nvim",
dependencies = { { "nvim-lua/plenary.nvim" } },
ft = 'http',
-- opts = {},
config = function()
require('rest').setup({})
end,
tag = 'v1.2.1',
}
}
:messege
return
Failed to run `config` for rest.nvim
/home/sandun/.config/nvim/lua/plugins/database.lua:93: module 'rest' not found:
no field package.preload['rest']
cache_loader: module rest not found
cache_loader_lib: module rest not found
no file './rest.lua'
no file '/mnt/windows/Users/Hp/Downloads/neovim/.deps/usr/share/luajit-2.1/rest.lua'
no file '/usr/local/share/lua/5.1/rest.lua'
no file '/usr/local/share/lua/5.1/rest/init.lua'
no file '/mnt/windows/Users/Hp/Downloads/neovim/.deps/usr/share/lua/5.1/rest.lua'
no file '/mnt/windows/Users/Hp/Downloads/neovim/.deps/usr/share/lua/5.1/rest/init.lua'
no file './rest.so'
no file '/usr/local/lib/lua/5.1/rest.so'
no file '/mnt/windows/Users/Hp/Downloads/neovim/.deps/usr/lib/lua/5.1/rest.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
# stacktrace:
- lua/plugins/database.lua:93 _in_ **config**
- /telescope.nvim/lua/telescope/_extensions/init.lua:8 _in_ **load_extension**
- /telescope.nvim/lua/telescope/_extensions/init.lua:62
- lua/plugins/telescope.lua:150 _in_ **config**
- /neodev.nvim/lua/neodev/lsp.lua:8 _in_ **setup**
- /neodev.nvim/lua/neodev/init.lua:26 _in_ **setup**
- lua/:19
now i use these conf:
{
"amirali/rest-ui.nvim",
dependencies = {
"rest-nvim/rest.nvim",
dependencies = { { "nvim-lua/plenary.nvim" } },
ft = 'http',
-- opts = {},
config = function()
require('rest-nvim').setup({})
end,
tag = 'v1.2.1',
}
}
but :RestUI
cant be access, nvim return E492: Not an editor command: RestUI
You should update your config like this:
{
"amirali/rest-ui.nvim",
dependencies = {
"rest-nvim/rest.nvim",
dependencies = { { "nvim-lua/plenary.nvim" } },
ft = 'http',
-- opts = {},
config = function()
require('rest-nvim').setup({})
end,
tag = 'v1.2.1',
},
opts = { triggers = { on_save = "request" } }
}
so Lazy initializes the plugin config. I also added it to the readme. thank you.
hi there, its promising plugin. unfortunatlly i tried but not working. could you give me more guidance to make it work?