summaryrefslogtreecommitdiff
path: root/lua/plugins/lsp.lua
blob: 342d40875b77726e2be6ae0d2a5c4cf8d0507253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
return {

  -- uncomment and add lsp servers with their config to servers below
  {
    "neovim/nvim-lspconfig",
    -- ---@class PluginLspOpts
    -- opts = {
    --   ---@type lspconfig.options
    --   servers = {
    --     jsonls = {},
    --     sumneko_lua = {
    --       settings = {
    --         Lua = {
    --           workspace = {
    --             checkThirdParty = false,
    --           },
    --           completion = {
    --             callSnippet = "Replace",
    --           },
    --         },
    --       },
    --     },
    --   },
    --   -- you can do any additional lsp server setup here
    --   -- return true if you don't want this server to be setup with lspconfig
    --   ---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
    --   setup = {
    --     -- example to setup with typescript.nvim
    --     -- tsserver = function(_, opts)
    --     --   require("typescript").setup({ server = opts })
    --     --   return true
    --     -- end,
    --     -- Specify * to use this function as a fallback for any server
    --     -- ["*"] = function(server, opts) end,
    --   },
    -- },
  },

  -- uncomment and add tools to ensure_installed below
  {
    "williamboman/mason.nvim",
    -- opts = {
    --   ensure_installed = {
    --     "stylua",
    --     "shellcheck",
    --     "shfmt",
    --     "flake8",
    --   },
    -- },
  },
}