Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziontee113/deliberate.nvim
Deliberate.nvim adds a sub-mode for Neovim to manipulate HTML syntax & Tailwind CSS Classes.
https://github.com/ziontee113/deliberate.nvim
html neovim neovim-plugin react svelte tailwindcss
Last synced: 10 days ago
JSON representation
Deliberate.nvim adds a sub-mode for Neovim to manipulate HTML syntax & Tailwind CSS Classes.
- Host: GitHub
- URL: https://github.com/ziontee113/deliberate.nvim
- Owner: ziontee113
- License: mit
- Created: 2023-05-14T10:15:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-18T18:00:12.000Z (12 months ago)
- Last Synced: 2024-10-10T23:31:00.573Z (27 days ago)
- Topics: html, neovim, neovim-plugin, react, svelte, tailwindcss
- Language: Lua
- Homepage:
- Size: 653 KB
- Stars: 37
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deliberate.nvim
### Deliberate.nvim adds a sub-mode for Neovim to manipulate HTML syntax & Tailwind CSS Classes.
## 📣 Important Notice: ⚠️
This plugin is still in development and not yet stable. I apologize for any inconvenience caused.
Additionally, documentation is currently unavailable. I appreciate your patience as I work on improving stability and providing comprehensive documentation.
Your feedback is valuable for the development of the project. Thank you for your support.## Usage:
![deliberate-intro](https://github.com/ziontee113/deliberate.nvim/assets/102876811/17b8001a-5a4a-469f-8a90-f2b42e74f006)
You can watch the introduction to the plugin here: [Alternative way to manipulate HTML + Tailwind CSS in Neovim. Handy or impractical?](https://www.youtube.com/watch?v=_faghtBKQfc&)
For further mapping references, please visit [hydra.lua](https://github.com/ziontee113/deliberate.nvim/blob/master/lua/deliberate/hydra.lua)
## Installation: 💾
For Lazy:
```lua
return {
"ziontee113/deliberate.nvim",
dependencies = {
{
"anuvyklack/hydra.nvim",
},
},
config = function()
local supported_filetypes = { "typescriptreact", "svelte" }
local augroup = vim.api.nvim_create_augroup("DeliberateEntryPoint", { clear = true })
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = supported_filetypes,
group = augroup,
callback = function()
local bufnr = vim.api.nvim_get_current_buf()
if vim.tbl_contains(supported_filetypes, vim.bo.ft) then
vim.keymap.set("n", "", function()
vim.api.nvim_input("DeliberateHydraEsc")
end, { buffer = bufnr })
vim.keymap.set("i", "DeliberateHydraEsc", "", {})
end
end,
})require("deliberate.hydra")
end,
}
```## For Nvim Colorizer
```lua
-- in your nvim-colorizer config:
config = {
filetypes = {
--- ...
["tailwind-text-color-picker"] = { mode = "foreground", tailwind = true },
["tailwind-bg-color-picker"] = { mode = "background", tailwind = true },
},
-- ...
},
```