add: Some lsp configs for OCaml
This commit is contained in:
parent
ec2f46016d
commit
7513bfa9d2
2 changed files with 4 additions and 2 deletions
|
@ -59,7 +59,7 @@ end
|
||||||
|
|
||||||
-- Add space around =
|
-- Add space around =
|
||||||
npairs.add_rules {
|
npairs.add_rules {
|
||||||
Rule('=', '', { "-tex", "-vim", "-sh", "-dockerfile", "-make" })
|
Rule('=', '', { "-tex", "-vim", "-sh", "-dockerfile", "-make", "-html" })
|
||||||
:with_pair(cond.not_inside_quote())
|
:with_pair(cond.not_inside_quote())
|
||||||
:with_pair(function(opts)
|
:with_pair(function(opts)
|
||||||
local last_char = opts.line:sub(opts.col - 1, opts.col - 1)
|
local last_char = opts.line:sub(opts.col - 1, opts.col - 1)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
local map = vim.keymap.set
|
local map = vim.keymap.set
|
||||||
|
|
||||||
require 'lspconfig'.pyright.setup({
|
lspconfig.pyright.setup({
|
||||||
settings = {
|
settings = {
|
||||||
python = {
|
python = {
|
||||||
analysis = {
|
analysis = {
|
||||||
|
@ -19,6 +19,8 @@ lspconfig.lua_ls.setup({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
lspconfig.ocamllsp.setup {}
|
||||||
|
|
||||||
-- Set ;k to hover and ;a to show code actions
|
-- Set ;k to hover and ;a to show code actions
|
||||||
vim.api.nvim_create_autocmd("LspAttach", {
|
vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
Loading…
Reference in a new issue