migrate to dobot (#1)

* get rid of old stuff

* dotbot migration
This commit is contained in:
Cy 2024-10-28 17:15:34 -04:00 committed by GitHub
parent a5693c1964
commit 69286972bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 41 additions and 744 deletions

View file

@ -0,0 +1,36 @@
local cmp = require("cmp")
cmp.setup {
snippet = {
expand = function(args)
vim.fn["UltiSnips#Anon"](args.body)
end,
},
mapping = cmp.mapping.preset.insert {
["<Tab>"] = function(fallback)
if cmp.visible() then
cmp.select_next_item()
else
fallback()
end
end,
["<S-Tab"] = function(fallback)
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
end,
["<C-u>"] = cmp.mapping.scroll_docs(-4),
["<C-d>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = false }),
},
sources = cmp.config.sources {
{ name = "nvim_lsp" },
{ name = "ultisnips" },
{ name = "buffer" },
{ name = "path" },
}
}