From f61a044c86e842c44b5e0ef77c0f32fefa6507d9 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 3 Jan 2025 20:00:01 +0100 Subject: [PATCH] Remove unused configuration files --- templates/nvim/init.lua.j2 | 2 -- templates/nvim/lua/auto-commands.lua.j2 | 6 ----- templates/nvim/lua/nvim-cmp.lua.j2 | 35 ------------------------- 3 files changed, 43 deletions(-) delete mode 100644 templates/nvim/lua/auto-commands.lua.j2 delete mode 100644 templates/nvim/lua/nvim-cmp.lua.j2 diff --git a/templates/nvim/init.lua.j2 b/templates/nvim/init.lua.j2 index c540171..0240adf 100644 --- a/templates/nvim/init.lua.j2 +++ b/templates/nvim/init.lua.j2 @@ -2,8 +2,6 @@ require('options') require('lsp') -require('nvim-cmp') -require('auto-commands') require('tree-sitter') require('lua-line') require('git-signs') diff --git a/templates/nvim/lua/auto-commands.lua.j2 b/templates/nvim/lua/auto-commands.lua.j2 deleted file mode 100644 index ee6b22c..0000000 --- a/templates/nvim/lua/auto-commands.lua.j2 +++ /dev/null @@ -1,6 +0,0 @@ --- {{ ansible_managed }} - -vim.api.nvim_create_autocmd('Filetype', { - pattern = 'TelescopeResults', - command = [[:setlocal nofoldenable]], -}) diff --git a/templates/nvim/lua/nvim-cmp.lua.j2 b/templates/nvim/lua/nvim-cmp.lua.j2 deleted file mode 100644 index b013475..0000000 --- a/templates/nvim/lua/nvim-cmp.lua.j2 +++ /dev/null @@ -1,35 +0,0 @@ --- {{ ansible_managed }} - -local cmp = require('cmp') - -cmp.setup { - mapping = { - [''] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.close(), - [''] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Replace, - select = true, - }, - [''] = function(fallback) - if cmp.visible() then - cmp.select_next_item() - else - fallback() - end - end, - [''] = function(fallback) - if cmp.visible() then - cmp.select_prev_item() - else - fallback() - end - end, - }, - sources = { - { name = 'nvim_lsp' }, - }, -}