Skip to content

Commit 7f586f5

Browse files
committed
COQ SUPPORT????????????
1 parent b626433 commit 7f586f5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lua/custom/plugins/init.lua

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,34 @@ return {
273273
},
274274
version = '^1.0.0', -- optional: only update when a new 1.x version is released
275275
},
276+
277+
-- Coq support lets hope this works
278+
{
279+
'whonore/Coqtail',
280+
init = function()
281+
vim.g.loaded_coqtail = 1
282+
vim.g['coqtail#supported'] = 0
283+
end,
284+
},
285+
{
286+
'tomtomjhj/vscoq.nvim',
287+
filetypes = 'coq',
288+
dependencies = {
289+
'neovim/nvim-lspconfig',
290+
'whonore/Coqtail',
291+
},
292+
opts = {
293+
vscoq = {
294+
path = '/home/aadi/.opam/CP.2024.10.1~8.19~2024.10/bin/vscoqtop',
295+
},
296+
lsp = {
297+
on_attach = function(client, bufnr)
298+
-- In manual mode, use ctrl-alt-{j,k,l} to step.
299+
vim.keymap.set({ 'n', 'i' }, '<M-j>', '<Cmd>VsCoq stepForward<CR>', { buffer = bufnr, desc = 'VsCoq step forward' })
300+
vim.keymap.set({ 'n', 'i' }, '<M-k>', '<Cmd>VsCoq stepBackward<CR>', { buffer = bufnr, desc = 'VsCoq step backward' })
301+
vim.keymap.set({ 'n', 'i' }, '<M-l>', '<Cmd>VsCoq interpretToPoint<CR>', { buffer = bufnr, desc = 'VsCoq interpret to point' })
302+
end,
303+
},
304+
},
305+
},
276306
}

0 commit comments

Comments
 (0)