summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/config/language-servers.lua
blob: 763a712ffd3658ce1dad5fc8fc54bc6166780602 (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
-- NOTE: A list of language servers (and potentially their config)
-- Accepts either true to enable, false to disable or a table with settings
return {
    lua_ls = {
        settings = {
            diagnostics = {
                globals = { 'vim' },
            },
            workspace = {
                library = {
                    [vim.fn.expand('$VIMRUNTIME/lua')] = true,
                    [vim.fn.stdpath('config') .. '/lua'] = true,
                },
            },
        },
    }, -- lua
    clangd = true, -- C/C++
    gradle_ls = true, -- java package manager
    -- jdtls = true, -- java eclipse lsp
    kotlin_language_server = true, -- kotlin
    pyright = {
        settings = {
            python = {
                pythonPath = '~/python/venv/bin/python',
            },
        },
    }, -- python
    rust_analyzer = false, -- NOTE: using rustaceanvim
    bashls = true, -- bash
    taplo = true, -- toml
    lemminx = true, -- xml
    yamlls = true, -- yaml
    jsonls = true, -- json

    -- For CS50x, sorry for everyone who sees this
    -- FIX: this should be removed ASAP
    html = true,
    cssls = true,
    eslint = true,
    tsserver = true,
}