summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/TODO-completions.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/plugins/TODO-completions.lua')
-rw-r--r--.config/nvim/lua/custom/plugins/TODO-completions.lua50
1 files changed, 0 insertions, 50 deletions
diff --git a/.config/nvim/lua/custom/plugins/TODO-completions.lua b/.config/nvim/lua/custom/plugins/TODO-completions.lua
deleted file mode 100644
index 0699e9b..0000000
--- a/.config/nvim/lua/custom/plugins/TODO-completions.lua
+++ /dev/null
@@ -1,50 +0,0 @@
-return {
- {
- 'hrsh7th/cmp-nvim-lsp',
- },
- {
- 'L3MON4D3/LuaSnip',
- dependencies = {
- 'saadparwaiz1/cmp_luasnip',
- 'rafamadriz/friendly-snippets',
- },
- },
- {
- 'hrsh7th/nvim-cmp',
- opts = function(_, opts)
- -- Setup options for lazydev.nvim
- opts.sources = opts.sources or {}
- table.insert(opts.sources, {
- name = 'lazydev',
- group_index = 0,
- })
- end,
- config = function()
- local cmp = require('cmp')
- require('luasnip.loaders.from_vscode').lazy_load()
-
- cmp.setup({
- snippet = {
- expand = function(args)
- require('luasnip').lsp_expand(args.body)
- end,
- },
- window = {
- completion = cmp.config.window.bordered(),
- documentation = cmp.config.window.bordered(),
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-b>'] = cmp.mapping.scroll_docs(-4),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-Space>'] = cmp.mapping.complete(),
- ['<C-k>'] = cmp.mapping.abort(),
- ['<CR>'] = cmp.mapping.confirm({ select = true }),
- }),
- sources = cmp.config.sources({
- { name = 'nvim_lsp' },
- { name = 'luasnip' },
- }, { { name = 'buffer' } }),
- })
- end,
- },
-}