Added OCaml support

This commit is contained in:
Eduardo Cueto-Mendoza 2024-04-24 16:11:53 +01:00
parent f5d54abb9d
commit 3ff42bdcc1
1 changed files with 12 additions and 3 deletions

View File

@ -18,6 +18,7 @@ then
'clangd', 'clangd',
'julials', 'julials',
'lua_ls', 'lua_ls',
'ocamllsp',
'pylsp', 'pylsp',
'rust_analyzer', 'rust_analyzer',
'zls' 'zls'
@ -27,6 +28,7 @@ then
lsp.ensure_installed({ lsp.ensure_installed({
-- Replace these with whatever servers you want to install -- Replace these with whatever servers you want to install
'bashls', 'bashls',
'ocamllsp',
'pylsp' 'pylsp'
}) })
elseif (MY_OS == 'Darwin') elseif (MY_OS == 'Darwin')
@ -36,6 +38,7 @@ then
'clangd', 'clangd',
'julials', 'julials',
'lua_ls', 'lua_ls',
'ocamllsp',
'pylsp', 'pylsp',
'rust_analyzer', 'rust_analyzer',
'zls' 'zls'
@ -123,7 +126,9 @@ then
}, },
}) })
require'lspconfig'.pylsp.setup{} require('lspconfig').ocamllsp.setup({})
require('lspconfig').pylsp.setup({})
require('lspconfig').rust_analyzer.setup({ require('lspconfig').rust_analyzer.setup({
settings = { settings = {
@ -144,7 +149,9 @@ then
require('lspconfig').clangd.setup({}) require('lspconfig').clangd.setup({})
require'lspconfig'.pylsp.setup{} require('lspconfig').ocamllsp.setup({})
require('lspconfig').pylsp.setup({})
require('lspconfig').rust_analyzer.setup({ require('lspconfig').rust_analyzer.setup({
settings = { settings = {
@ -203,7 +210,9 @@ then
}, },
}) })
require'lspconfig'.pylsp.setup{} require('lspconfig').ocamllsp.setup({})
require('lspconfig').pylsp.setup({})
require('lspconfig').rust_analyzer.setup({ require('lspconfig').rust_analyzer.setup({
settings = { settings = {