diff options
| author | William Boman <william@redwill.se> | 2022-01-02 14:08:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-02 14:08:54 +0100 |
| commit | 264d499bcdc3d48a76b0344ad243fc9a2d033142 (patch) | |
| tree | 2789e83625186bd860dc40a7b37a8f4a2e7225f1 /lua/nvim-lsp-installer/servers/taplo/init.lua | |
| parent | health: add java check (diff) | |
| download | mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.tar mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.tar.gz mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.tar.bz2 mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.tar.lz mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.tar.xz mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.tar.zst mason-264d499bcdc3d48a76b0344ad243fc9a2d033142.zip | |
add taplo (#373)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/taplo/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/taplo/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/taplo/init.lua b/lua/nvim-lsp-installer/servers/taplo/init.lua new file mode 100644 index 00000000..2aacdaef --- /dev/null +++ b/lua/nvim-lsp-installer/servers/taplo/init.lua @@ -0,0 +1,15 @@ +local server = require "nvim-lsp-installer.server" +local cargo = require "nvim-lsp-installer.installers.cargo" + +return function(name, root_dir) + return server.Server:new { + name = name, + root_dir = root_dir, + languages = { "toml" }, + homepage = "https://taplo.tamasfe.dev/lsp/", + installer = cargo.crates { "taplo-lsp" }, + default_options = { + cmd = { cargo.executable(root_dir, "taplo-lsp"), "run" }, + }, + } +end |
