aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/volar/init.lua
blob: 26af7d5df0801ab77c2a29bec7f70ec98a0dbe6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local server = require "nvim-lsp-installer.server"
local npm = require "nvim-lsp-installer.installers.npm"

return function(name, root_dir)
    return server.Server:new {
        name = name,
        root_dir = root_dir,
        homepage = "https://github.com/johnsoncodehk/volar",
        installer = npm.packages { "@volar/server" },
        default_options = {
            cmd = { npm.executable(root_dir, "volar-server"), "--stdio" },
        },
    }
end