Open einarpersson opened 1 week ago
I perhaps should create a new issue, but:
unfortunately, now i get it to run but it does not seem to work.
When i run npm run check
in the terminal I get 7 errors, but when I do :SvelteCheck
I get a "nice! no errors blalbal"
{
'StephenGunn/sveltecheck.nvim',
config = function()
require('sveltecheck').setup({
command = "npm run check",
})
end,
},
So, this is my first neovim plugin. You're definitely correct on the docs, I just fixed that. I think I changed the name of the plugin during development and that is why that was wrong. I honestly can't remember.
So I have been running this on my two computers with no errors and full functionality.
you can also pass debug_mode = true in the settings to get verbose logging, I will add that to the readme, let me know if that gives you anything
I have a feeling it's not running the script in the correct directory, which would mean no errors. I am working on changing it to detect where the package.json is located to make sure it runs there, and will list where it is running in debug mode..
Sorry for the reply-storm! I want to make this work for you!
I just updated the plugin repo with code that will search for the package.json and run the script in that directory. If you turn on debug mode, it will also display which directory it runs the script in- which should ensure that the actual svelte check command is being run.
I use https://github.com/ahmedkhalf/project.nvim to manage projects inside of Neovim, which might've changed the way my plugin worked on my machines. If this doesn't work, please reply and maybe we can chat on Discord to try and figure out what is going on. Would love to get it to work for more people.
Hi, this was exactly what i was looking for. Happy if i do not have to reinvent the wheel.
However, in the docs it says
But should it be
?
I got an error with the former, but it ran with the latter
error