vim-svelte-inspector Svelte Themes

Vim Svelte Inspector

Use Svelte Inspector in Vim/Neovim! (Actually you can use this with React, Vue and so on...

vim-svelte-inspector

https://github.com/ryoppippi/sveltekit_inspector.vim/assets/1560508/4b8a3903-3339-43d2-817a-2ff246b81416

Based on this article
You can learn how to use the inspector from the official readme

Dependencies

You need to install

Config

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
  }
};

Limitation

  • Only works in vim terminal

License

MIT

Top categories

Loading Svelte Themes