1
0
Fork 0

add coq, todo-comments

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2022-05-24 15:33:33 -04:00
parent ad10c1ea18
commit f760d465b5
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
5 changed files with 78 additions and 64 deletions

View file

@ -1,31 +1,3 @@
-- nvim-cmp
local cmp = require("cmp")
cmp.setup {
completion = {
autocomplete = false
},
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
mapping = {
['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
['<C-y>'] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
['<C-e>'] = cmp.mapping({
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
}),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
},
sources = cmp.config.sources {
{ name = "nvim_lsp" },
{ name = "nvim_lua" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "path" }
}
}
vim.g.coq_settings = {auto_start = true}
local coq = require('coq')
vim.cmd('COQnow')