-
Hi, I'm using Metals to add language support for my local instance of Chipyard. But when I want to rename a symbol (I press The only options after pressing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thanks for the questions @JL102 .
Can you tell me a bit more about this? For rename do you just have Also with Chipyard, does the metals doctor, ( |
Beta Was this translation helpful? Give feedback.
-
I got help on the AstroNvim discord server, and it turns out I wasn't attaching it to Astro's language server properly. This is my config section of user.lua now: {
"scalameta/nvim-metals",
dependencies = "nvim-lua/plenary.nvim",
init = function()
vim.api.nvim_create_autocmd("FileType", {
pattern = { "scala", "sbt", "java" },
callback = function() require("metals").initialize_or_attach(require("astronvim.utils.lsp").config "metals") end,
group = vim.api.nvim_create_augroup("nvim-metals", { clear = true }),
})
end,
}, After changing it, now the keybinds work as expected. |
Beta Was this translation helpful? Give feedback.
I got help on the AstroNvim discord server, and it turns out I wasn't attaching it to Astro's language server properly. This is my config section of user.lua now:
After changing it, now the keybinds work as expected.