Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryoppippi/svelte_inspector.vim
https://github.com/ryoppippi/svelte_inspector.vim
neovim-plugin nvim-plugin svelte svetlekit vim-plugin
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryoppippi/svelte_inspector.vim
- Owner: ryoppippi
- License: mit
- Created: 2023-10-18T13:08:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-14T19:24:39.000Z (12 months ago)
- Last Synced: 2024-07-29T06:37:12.092Z (3 months ago)
- Topics: neovim-plugin, nvim-plugin, svelte, svetlekit, vim-plugin
- Language: Lua
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte_inspector.vim
https://github.com/ryoppippi/sveltekit_inspector.vim/assets/1560508/4b8a3903-3339-43d2-817a-2ff246b81416
Based on [this article](https://theosteiner.de/open-neovim-from-your-browser-integrating-nvim-with-sveltes-inspector)
You can learn how to use the inspector from [the official readme](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#inspector)## Dependencies
You need to install
- [flatten.nvim](https://github.com/willothy/flatten.nvim) or [guice.vim](https://github.com/lambdalisue/guise.vim/tree/main)
- [fileline.nvim](https://github.com/lewis6991/fileline.nvim), [File-line](https://github.com/bogado/file-line) or [vim-fetch](https://github.com/wsdjeg/vim-fetch)
- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim)## Config
Setup with your favorite plugin manager:
vim script:
```vim
svelte_inspector#setup()
```lua:
```lua
require("svelte_inspector").setup()
```This is my config with lazy.nvim
```lua
return {
"ryoppippi/svelte_inspector.vim",
dependencies = {
"willothy/flatten.nvim",
"lewis6991/fileline.nvim",
"nvim-lua/plenary.nvim",
},
lazy = false,
config = true,
}
```Then, enable inspector in `svelte.config.js`:
```js
export default {
vitePlugin: {
inspector: true
}
};
```# Limitation
- Only works in vim terminal# License
MIT