Skip to content

Recommendations for using neovim 0.11 LSP support? #558

@rodrigc

Description

@rodrigc

Do you have any recommendations for how to use ray-x/go.nvim with the new LSP support
in neovim 0.11 as mentioned in:
https://gpanders.com/blog/whats-new-in-neovim-0-11/#lsp

Right now, I have:

require('go').setup(
{
	lsp_cfg = true,
})

local format_sync_grp = vim.api.nvim_create_augroup("Format", { clear = false})
-- Run goimport on save
vim.api.nvim_create_autocmd("BufWritePre", {
  pattern = "*.go",
  callback = function()
   require('go.format').goimport()
  end,
  group = format_sync_grp,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions