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

Mon, 27 Feb 2023 09:54:21 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 27 Feb 2023 09:54:21 -0600
changeset 1052
1ff243e9e6ca
parent 1044
8b90bfdedd2b
child 1055
ba91fd3b81e1
permissions
-rw-r--r--

drop ginit.vim (its not standard for nvim)

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