Skip to content

Can't rename symbol? #581

Answered by JL102
JL102 asked this question in Q&A
Jun 29, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@JL102
Comment options

@JL102
Comment options

@ckipp01
Comment options

@JL102
Comment options

Comment options

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