Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 },
},
-- ...
},
```