-
-
Notifications
You must be signed in to change notification settings - Fork 155
Recommendations for using neovim 0.11 LSP support? #558
Copy link
Copy link
Open
Description
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,
})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels