Closed loganbnielsen closed 1 month ago
I don't think we can support that one through treesitter, because expressions inside macro are parsed as normal rust expressions and don't provide useful information.
To solve this maybe we could add a regex solution as a fallback.
Leeptos support has been added in #31.
@luckasRanarison How do I add the server completions for rust files for lepton? I am currently working on a leptos project and below is my config for your plugin:
return {
"luckasRanarison/tailwind-tools.nvim",
name = "tailwind-tools",
build = ":UpdateRemotePlugins",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"neovim/nvim-lspconfig",
},
opts = {
server = {
settings = {
includeLanguages = {
rust = "html"
}
}
},
extension = {
patterns = {
rust = { "class=[\"']([^\"']+)[\"']" },
}
}
} -- your configuration
}
Running :LspInfo
shows that no language servers are binded to the rust file. My config for LSP is from https://github.com/alvarojsino813/nvim-config-guide?tab=readme-ov-file.
Thanks for any/all help!
@highjeans Rust is now supported by default from the server and the plugin so you don't need to add additional server setting or luapattern extension, it should work out of the box.
@luckasRanarison Thank you so much!
For some reason I'm having a hard time getting this to work with Leptos which is Rust front end framework. I'm not sure if this is expected or if I'm just doing the setup wrong but wanted to raise that it'd be very cool if this supported leptos.
view!{}
macros might be what make this difficult to achieve so no worries if it's too much effort.Thanks for sharing this btw, really neat plugin :smile: