Skip to content
Discussion options

You must be logged in to vote

I got it working! In case someone stumbles across this same issue I'll post what I came up with here:

	{
		"direnv.nvim",
		for_cat = "general",
		after = function()
			require("direnv-nvim").setup({
				async = true,
				on_direnv_finished = function()
					vim.cmd("LspStart")
					if vim.bo.filetype == "rust" then
						require("rustaceanvim.lsp").start()
					end
				end,
			})
		end,
	},
	{
		"rustaceanvim",
		for_cat = "general",
		lazy = false,
		before = function()
			vim.g.rustaceanvim = {
				server = {
					on_attach = function(client, bufnr)
						-- your config for what you want to do when you attach
					end,
				},
			}
		end,
	},

no other config needed.
if someone sees any…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mushrowan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant