leptos rust support

main
Nick Zana 1 day ago
parent 643c896f2d
commit d6361b1591

@ -83,6 +83,10 @@ return {
lsp.rust_analyzer.setup({ lsp.rust_analyzer.setup({
settings = { settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
checkOnSave = {
allFeatures = true,
command = { "clippy" },
},
procMacro = { procMacro = {
enable = true, enable = true,
ignored = { ignored = {
@ -91,7 +95,25 @@ return {
}, },
cargo = { cargo = {
allFeatures = true, allFeatures = true,
autoreload = true,
},
rustfmt = {
overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
},
callInfo = { full = true },
lens = {
enable = true,
references = true,
implementations = true,
enumVariantReferences = true,
methodReferences = true,
},
inlayHints = {
enable = true,
typeHints = true,
parameterHints = true,
}, },
hoverActions = { enable = true, },
} }
} }
}) })

@ -9,4 +9,18 @@ return {
}) })
end, end,
}, },
{
"rayliwell/tree-sitter-rstml",
dependencies = { "nvim-treesitter" },
build = ":TSUpdate",
config = function ()
require("tree-sitter-rstml").setup()
end
},
{
"windwp/nvim-ts-autotag",
config = function()
require("nvim-ts-autotag").setup()
end,
},
} }

Loading…
Cancel
Save