aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/lsp.lua
blob: 145182ecee5d5a5cf8bd6fdfdbaf71660b4b8034 (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
return {
    {
        "neovim/nvim-lspconfig",
        opts = function(_, opts)
            -- Add your desired LSP server here
            opts.servers.arduino_language_server = {
                cmd = {
                    "arduino-language-server",
                    "-clangd",
                    "/usr/bin/clangd",
                    "-cli",
                    "/usr/bin/arduino-cli",
                    "-cli-config",
                    "/home/krolyxon/.arduino15/arduino-cli.yaml",
                    "-fqbn",
                    "arduino:avr:uno",
                },
            } -- Example: Python

            opts.servers.pyright = {}
            opts.servers.clangd = {}

            -- local servers = { "cssls", "jdtls", "slint_lsp", "pyright", "marksman", "eslint", "tailwindcss", "phpactor", "gopls", "clangd", "arduino_language_server" }
        end,
    },
}