add: Some lsp configs for OCaml

This commit is contained in:
Sayantan Santra 2024-05-17 15:12:24 -05:00
parent ec2f46016d
commit 7513bfa9d2
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
2 changed files with 4 additions and 2 deletions

View file

@ -59,7 +59,7 @@ end
-- Add space around =
npairs.add_rules {
Rule('=', '', { "-tex", "-vim", "-sh", "-dockerfile", "-make" })
Rule('=', '', { "-tex", "-vim", "-sh", "-dockerfile", "-make", "-html" })
:with_pair(cond.not_inside_quote())
:with_pair(function(opts)
local last_char = opts.line:sub(opts.col - 1, opts.col - 1)

View file

@ -1,7 +1,7 @@
local lspconfig = require('lspconfig')
local map = vim.keymap.set
require 'lspconfig'.pyright.setup({
lspconfig.pyright.setup({
settings = {
python = {
analysis = {
@ -19,6 +19,8 @@ lspconfig.lua_ls.setup({
}
})
lspconfig.ocamllsp.setup {}
-- Set ;k to hover and ;a to show code actions
vim.api.nvim_create_autocmd("LspAttach", {
callback = function()