Based on this article
You can learn how to use the inspector from the official readme
You need to install
Setup with your favorite plugin manager:
vim script:
svelte_inspector#setup()
lua:
require("svelte_inspector").setup()
This is my config with lazy.nvim
return {
"ryoppippi/vim-svelte-inspector",
dependencies = {
"willothy/flatten.nvim",
"lewis6991/fileline.nvim",
"nvim-lua/plenary.nvim",
},
lazy = false,
config = true,
}
Then, enable inspector in svelte.config.js
:
export default {
vitePlugin: {
inspector: true
}
};
MIT