forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlocal-lspconfig.lua
35 lines (33 loc) · 889 Bytes
/
local-lspconfig.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local util = require 'plugins/lspconfig'
if vim.fn.has('vim_starting') then
local lspconfig = require'lspconfig'
local config = {
cmd = { "ocamllsp" },
filetypes = { 'ocaml' }
}
require'lspconfig'.ocamllsp.setup(config)
local configs = require'lspconfig/configs'
if not lspconfig.reason then
configs.reason = {
default_config = {
cmd = {'reason-language-server'};
filetypes = {'reason'};
root_dir = lspconfig.util.root_pattern(".git");
settings = {};
on_attach = function(client, bufnr)
require('lsp_signature').on_attach({
bind = true,
hint_enable = false,
hint_prefix = ' ', --
handler_opts = { border = 'rounded' },
zindex = 50,
}, bufnr)
end
};
}
end
lspconfig.reason.setup(util.make_config("reason"))
end
-- return {
-- config = function(_) return config end,
-- }