diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 14:45:08 -0700 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-03 15:49:27 -0700 |
| commit | ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c (patch) | |
| tree | 77d533dc9606ca7e9b30d1a96baebf3de325d2a8 /lua/lspconfig/ocamllsp.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.gz nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.bz2 nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.lz nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.xz nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.zst nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.zip | |
ci: lint and format with stylua
Diffstat (limited to 'lua/lspconfig/ocamllsp.lua')
| -rw-r--r-- | lua/lspconfig/ocamllsp.lua | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/lua/lspconfig/ocamllsp.lua b/lua/lspconfig/ocamllsp.lua index 5ce8441d..f08fb3d4 100644 --- a/lua/lspconfig/ocamllsp.lua +++ b/lua/lspconfig/ocamllsp.lua @@ -1,12 +1,12 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' +local configs = require "lspconfig/configs" +local util = require "lspconfig/util" local language_id_of = { - menhir = 'ocaml.menhir'; - ocaml = 'ocaml'; - ocamlinterface = 'ocaml.interface'; - ocamllex = 'ocaml.ocamllex'; - reason = 'reason'; + menhir = "ocaml.menhir", + ocaml = "ocaml", + ocamlinterface = "ocaml.interface", + ocamllex = "ocaml.ocamllex", + reason = "reason", } local filetypes = {} @@ -15,15 +15,17 @@ for ftype, _ in pairs(language_id_of) do table.insert(filetypes, ftype) end -local get_language_id = function (_, ftype) return language_id_of[ftype] end +local get_language_id = function(_, ftype) + return language_id_of[ftype] +end configs.ocamllsp = { default_config = { - cmd = {"ocamllsp",}; - filetypes = filetypes; - root_dir = util.root_pattern("*.opam", "esy.json", "package.json", ".git"); - get_language_id = get_language_id; - }; + cmd = { "ocamllsp" }, + filetypes = filetypes, + root_dir = util.root_pattern("*.opam", "esy.json", "package.json", ".git"), + get_language_id = get_language_id, + }, docs = { description = [[ https://github.com/ocaml/ocaml-lsp @@ -35,9 +37,9 @@ To install the lsp server in a particular opam switch: opam pin add ocaml-lsp-server https://github.com/ocaml/ocaml-lsp.git opam install ocaml-lsp-server ``` - ]]; + ]], default_config = { - root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git")]]; - }; - }; + root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git")]], + }, + }, } |
