aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-07-05 21:52:03 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-07-05 21:52:03 +0100
commitc4caa1a935e5549ea776b9ddf2ac68d69a7bcc7d (patch)
tree603445682189abd4a82e5320462cbde6290ff43b
parent41d7325b8f099274125fe74fb1a94860ed83c751 (diff)
downloaddotnvim-c4caa1a935e5549ea776b9ddf2ac68d69a7bcc7d.tar.gz
dotnvim-c4caa1a935e5549ea776b9ddf2ac68d69a7bcc7d.zip
It is lua, actually
-rw-r--r--cmp.vim20
-rw-r--r--plugins.vim2
2 files changed, 1 insertions, 21 deletions
diff --git a/cmp.vim b/cmp.vim
deleted file mode 100644
index 4f8db13..0000000
--- a/cmp.vim
+++ /dev/null
@@ -1,20 +0,0 @@
-lua <<EOF
- -- Setup nvim-cmp.
- local cmp = require'cmp'
-
- cmp.setup({
- snippet = {
- expand = function(args)
- vim.fn["vsnip#anonymous"](args.body)
- end,
- },
- mapping = cmp.mapping.preset.insert({
- ['<CR>'] = cmp.mapping.confirm({ select = true }),
- }),
- sources = cmp.config.sources({
- { name = 'nvim_lsp' },
- { name = 'vsnip' },
- })
- })
-EOF
-
diff --git a/plugins.vim b/plugins.vim
index c37325a..eb12f9b 100644
--- a/plugins.vim
+++ b/plugins.vim
@@ -79,5 +79,5 @@ source ~/.config/nvim/treesitter.lua
source ~/.config/nvim/metals.vim
" auto-complete
-source ~/.config/nvim/cmp.vim
+source ~/.config/nvim/cmp.lua