Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryoppippi/vim-svelte-inspector
Use Svelte Inspector in Vim/Neovim!
https://github.com/ryoppippi/vim-svelte-inspector
neovim-plugin nvim-plugin svelte svetlekit vim-plugin
Last synced: about 2 months ago
JSON representation
Use Svelte Inspector in Vim/Neovim!
- Host: GitHub
- URL: https://github.com/ryoppippi/vim-svelte-inspector
- Owner: ryoppippi
- License: mit
- Created: 2023-10-18T13:08:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-02T09:56:24.000Z (4 months ago)
- Last Synced: 2024-11-12T02:34:07.631Z (about 2 months ago)
- Topics: neovim-plugin, nvim-plugin, svelte, svetlekit, vim-plugin
- Language: Lua
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-svelte-inspector
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/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`:
```js
export default {
vitePlugin: {
inspector: true
}
};
```# Limitation
- Only works in vim terminal# License
MIT