.config/nvim/lua/plugins/lsp.lua

Sat, 25 Feb 2023 13:01:43 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 25 Feb 2023 13:01:43 -0500
changeset 1050
6fb014427493
parent 1044
8b90bfdedd2b
child 1055
ba91fd3b81e1
permissions
-rw-r--r--

Make autoread more reliable

return {
  "neovim/nvim-lspconfig",
  {"williamboman/mason.nvim", config = true},
  {"j-hui/fidget.nvim", config = true},

  {
    "williamboman/mason-lspconfig.nvim",
    config = function(plugin, opts)
      require("mason-lspconfig").setup()
      require("mason-lspconfig").setup_handlers({
        function(server)
          require("lspconfig")[server].setup({})
        end,
        gopls = function ()
          require("lspconfig").gopls.setup({
            settings = { gopls = { gofumpt = true } }
          })
        end
      })
    end,
  },
}

mercurial