aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/eugenetriguba/plugins/conjure.lua
blob: 30de08a055c170faa7d0747e356f15aa711fca31 (plain) (blame)
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
-- Remap the documentation word mapping so it doesn't conflict
-- with our LSP mapping.
vim.g['conjure#mapping#doc_word'] = 'gk'

-- Only use conjure for certain languages.
vim.g['conjure#filetype'] = { 'scheme', 'lisp', 'fennel', 'lua', 'cl' }

-- Map .lisp and .cl files to the Common Lisp swank client, not nREPL.
vim.g['conjure#filetype#cl'] = 'conjure.client.common-lisp.swank'
vim.g['conjure#filetype#lisp'] = 'conjure.client.common-lisp.swank'

vim.api.nvim_create_autocmd('FileType', {
  pattern = vim.g['conjure#filetype'],
  once = true,
  callback = function()
    vim.pack.add {
      {
        name = 'conjure',
        src = 'https://github.com/Olical/conjure',
        version = 'v4.59.0',
      },
      {
        name = 'parinfer-rust',
        src = 'https://github.com/eraserhd/parinfer-rust',
        version = 'master',
      },
    }
  end,
})