aboutsummaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/lsp.lua
blob: e13cfc2fbed0f5c7ca390d420447722641da2202 (plain) (blame)
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
return {
  "neovim/nvim-lspconfig",
  config = function()
    vim.lsp.enable({ "lua_ls",
      "basedpyright",
      "gopls",
      "html",
      "yamlls",
      "svelte-language-server",
      "clangd",
      "ansiblels",
      "vtsls",
      "zls",
      "glsl_analyzer",
      "rust_analyzer",
      "templ",
      "tailwindcss",
      "nil_ls",
      "gleam",
      "ty"
    })


    -- Testing basedpyright atm, change to jedi idk
    vim.lsp.config("basedpyright", {
      settings = {
        python = {
          pythonPath = vim.fn.exepath("python"),
        },
        ['basedpyright'] = {
          analysis = {
            typeCheckingMode = "basic",
            inlayHints = {
              variableTypes = true,
              genericTypes = true,
            },
            autoFormatStrings = true,
          }
        }
      }
    })
  end
}