Skip to content

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

License

Notifications You must be signed in to change notification settings

ryoppippi/vim-svelte-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-svelte-inspector

2023-10-18.14.42.07.mov

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

About

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

Topics

Resources

License

Stars

Watchers

Forks