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

Wed, 01 Mar 2023 03:31:16 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 01 Mar 2023 03:31:16 -0500
changeset 1056
235dd39d6629
parent 1055
ba91fd3b81e1
child 1059
dc0095e5bbc8
permissions
-rw-r--r--

Pretty sig help

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({
            capabilities = require('cmp_nvim_lsp').default_capabilities()
          })
        end,
        gopls = function ()
          require("lspconfig").gopls.setup({
            capabilities = require('cmp_nvim_lsp').default_capabilities(),
            settings = { gopls = { gofumpt = true } }
          })
        end
      })
    end,
  },
}

mercurial