From ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 3 Jul 2021 14:45:08 -0700 Subject: ci: lint and format with stylua --- lua/lspconfig/purescriptls.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'lua/lspconfig/purescriptls.lua') diff --git a/lua/lspconfig/purescriptls.lua b/lua/lspconfig/purescriptls.lua index b8a4745c..986d3e12 100644 --- a/lua/lspconfig/purescriptls.lua +++ b/lua/lspconfig/purescriptls.lua @@ -1,30 +1,30 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' +local configs = require "lspconfig/configs" +local util = require "lspconfig/util" local server_name = "purescriptls" local bin_name = "purescript-language-server" -if vim.fn.has('win32') == 1 then - bin_name = bin_name..'.cmd' +if vim.fn.has "win32" == 1 then + bin_name = bin_name .. ".cmd" end configs[server_name] = { default_config = { - cmd = {bin_name, "--stdio"}; - filetypes = {"purescript"}; - root_dir = util.root_pattern("spago.dhall", "bower.json"); - }; + cmd = { bin_name, "--stdio" }, + filetypes = { "purescript" }, + root_dir = util.root_pattern("spago.dhall", "bower.json"), + }, docs = { - package_json = "https://raw.githubusercontent.com/nwolverson/vscode-ide-purescript/master/package.json"; + package_json = "https://raw.githubusercontent.com/nwolverson/vscode-ide-purescript/master/package.json", description = [[ https://github.com/nwolverson/purescript-language-server `purescript-language-server` can be installed via `npm` ```sh npm install -g purescript-language-server ``` -]]; +]], default_config = { - root_dir = [[root_pattern("spago.dhall, bower.json")]]; - }; - }; -}; + root_dir = [[root_pattern("spago.dhall, bower.json")]], + }, + }, +} -- vim:et ts=2 sw=2 -- cgit v1.2.3-70-g09d2