From f5dc9a045e9db2d0613f96ba941777e8560dbf4c Mon Sep 17 00:00:00 2001 From: Dietrich Rink Date: Sat, 10 Jun 2023 15:11:30 +0200 Subject: [PATCH] remove command line completion --- basic/Containerfile | 2 +- basic/nvim/init/00-basic.lua | 1 - basic/nvim/plugconf/cmp.lua | 13 ------------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/basic/Containerfile b/basic/Containerfile index be4a815..8a2ea90 100644 --- a/basic/Containerfile +++ b/basic/Containerfile @@ -11,9 +11,9 @@ RUN printf '%s\n' \ christoomey/vim-tmux-navigator benmills/vimux ap/vim-buftabline \ nvim-tree/nvim-tree.lua nvim-tree/nvim-web-devicons ctrlpvim/ctrlp.vim \ hrsh7th/nvim-cmp ray-x/lsp_signature.nvim hrsh7th/cmp-buffer \ - hrsh7th/cmp-path hrsh7th/cmp-nvim-lua hrsh7th/cmp-cmdline \ hrsh7th/cmp-nvim-lsp neovim/nvim-lspconfig saadparwaiz1/cmp_luasnip \ L3MON4D3/LuaSnip jiangmiao/auto-pairs tpope/vim-surround tpope/vim-repeat \ + hrsh7th/cmp-path hrsh7th/cmp-nvim-lua \ rebelot/kanagawa.nvim \ | xargs -n1 -P0 -I'{}' git clone --depth 1 'https://github.com/{}' RUN printf 'helptags %s\n' */doc | nvim --noplugin -es diff --git a/basic/nvim/init/00-basic.lua b/basic/nvim/init/00-basic.lua index 2096e18..64b43b9 100644 --- a/basic/nvim/init/00-basic.lua +++ b/basic/nvim/init/00-basic.lua @@ -17,7 +17,6 @@ pack 'lsp_signature.nvim' -- Completion pack 'cmp-buffer' pack 'cmp-path' -pack 'cmp-cmdline' pack 'cmp-nvim-lua' pack 'cmp-nvim-lsp' pack 'cmp_luasnip' diff --git a/basic/nvim/plugconf/cmp.lua b/basic/nvim/plugconf/cmp.lua index 381ac62..c2ec028 100644 --- a/basic/nvim/plugconf/cmp.lua +++ b/basic/nvim/plugconf/cmp.lua @@ -76,16 +76,3 @@ cmp.setup { return not context.in_syntax_group('Comment') end, } - --- Command line setup -cmp.setup.cmdline(':', { - mapping = cmp.mapping.preset.cmdline(), - sources = cmp.config.sources({ - { name = 'path' }, - },{ - { name = 'cmdline' }, - }), - completion = { - keyword_length = 2 - }, -})