neovim

update rust-analyzer options for leptos

+29 -11
-11
candy/ftplugin/rust.lua
··· 1 - -- I just like having it seperated by ft even if its not heavy 2 - vim.g.rustaceanvim = { 3 - tools = {}, 4 - server = { 5 - settings = { 6 - ["rust-analyzer"] = {}, 7 - }, 8 - }, 9 - dap = {}, 10 - } 11 - 12 1 vim.keymap.set("n", "gra", function() 13 2 vim.cmd.RustLsp("codeAction") 14 3 end, { buffer = true, silent = true })
+1
candy/lua/marshmallow/init.lua
··· 1 + -- I just like having it seperated by ft even if its not heavy 1 2 require("marshmallow.colorscheme") 2 3 require("marshmallow.defaults") 3 4 require("marshmallow.statusline")
+28
candy/lua/marshmallow/lsp.lua
··· 1 + vim.g.rustaceanvim = { 2 + tools = {}, 3 + server = { 4 + settings = { 5 + ["rust-analyzer"] = { 6 + diagnostics = { 7 + enable = true, 8 + disabled = { "proc-macro-disabled" }, 9 + enableExperimental = true, 10 + }, 11 + 12 + procMacro = { 13 + ignored = { 14 + leptos_macro = { 15 + "component", 16 + "server", 17 + }, 18 + }, 19 + }, 20 + cargo = { 21 + features = "all", -- Run against all crate features 22 + }, 23 + }, 24 + }, 25 + }, 26 + dap = {}, 27 + } 28 + 1 29 require("fidget").setup({}) 2 30 3 31 local group = vim.api.nvim_create_augroup("marsh-lsp", {})