summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/configs/language-servers.lua
blob: 116599422edee66c05b2cff245fe99b050765a5d (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
-- 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
    lua_ls = true, -- lua
    clangd = true,                 -- C/C++
    gradle_ls = true,              -- java package manager
    jdtls = true,                  -- java eclipse lsp
    kotlin_language_server = true, -- kotlin
    pyright = true,                -- python
    rust_analyzer = true,          -- rust
    bashls = true,                 -- bash
    taplo = true,                  -- toml
    lemminx = true,                -- xml
    yamlls = true,                 -- yaml
    jsonls = true,                 -- json
}