gopher.nvim/lua/gopher/_utils/lsp.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11
local lsp = {} local gopls = "gopls" -- Restarts gopls server (see: `:h lsp-restart`) function lsp.restart() vim.lsp.enable(gopls, false) vim.lsp.enable(gopls, true) end return lsp