aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/rnix/init.lua
blob: a79cec88787d9442342b8503c9e04fa540988a29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local server = require "nvim-lsp-installer.server"
local cargo = require "nvim-lsp-installer.core.managers.cargo"

return function(name, root_dir)
    return server.Server:new {
        name = name,
        root_dir = root_dir,
        languages = { "nix" },
        homepage = "https://github.com/nix-community/rnix-lsp",
        installer = cargo.crate "rnix-lsp",
        default_options = {
            cmd_env = cargo.env(root_dir),
        },
    }
end