Closed mk990 closed 10 months ago
i add it to lazyvim in this dir
lua/plugin/namespace.lua
return { { "ccaglak/namespace.nvim", keys = { { "<leader>la", "<cmd>GetClasses<cr>", desc = "Get Classes" }, { "<leader>lc", "<cmd>GetClass<cr>", desc = "Get Class" }, { "<leader>ls", "<cmd>AsClass<cr>", desc = "As Class" }, { "<leader>ln", "<cmd>Namespace<cr>", desc = "Namespace" }, }, dependencies = { "nvim-lua/plenary.nvim", }, }, }
i can get commands but its not working
Hi mk990, I have tested on lazyvim and it works on mac. you must have ripgrep installed and php json treesitters parsers. if everything checks. Whats your operating system?
i use linux also i installed ripgrep , php json in treesitters any way to check log file or debug ??
i will look into it, i just updated package check it out it might have fixed the issue
i apoligize, i messed it up. everything is good now. i will run a virtual machine to see how it works on linux tomorrow
yes i see that but its not working in linux any way to debug it?
getClass.lua is the main file
_G.dd = function(...)
local obj = select("#", ...) == 1 and select(1, ...) or { ... }
local s = type(obj) == "string" and obj or vim.inspect(obj)
if vim.in_fast_event() then
vim.schedule(function()
print(s)
end)
else
print(s)
end
end
make sure you have .git or composer.json vendor in your project root check the values
which distro do you use
archlinux
tomorrow around this time it will be fixed. thanks
thank you
update it, and try again
no not working
i've found one bug in namespace generater but everything else was working just fine. my virtualmachine was arch 24.01 tested on both neovim 9-10 with lazyvim conf.
no i update and it not working it something wrong with my config
return {
{
"ccaglak/namespace.nvim",
keys = {
{ "<leader>la", "<cmd>GetClasses<cr>", desc = "Get Classes" },
{ "<leader>lc", "<cmd>GetClass<cr>", desc = "Get Class" },
{ "<leader>ls", "<cmd>AsClass<cr>", desc = "As Class" },
{ "<leader>ln", "<cmd>Namespace<cr>", desc = "Namespace" },
},
dependencies = {
"nvim-lua/plenary.nvim",
},
},
}
i add it to lazyvim in this dir
lua/plugin/namespace.lua
i can get commands but its not working