From d86a84f84c7a82da74d0f43fbca258df6c3a7860 Mon Sep 17 00:00:00 2001 From: adamstuck Date: Thu, 28 Oct 2021 12:05:14 +0200 Subject: Starship shell prompt + doom one theme for alacritty + vim + nvim --- .config/nvim/lua/opts.lua | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to '.config/nvim/lua/opts.lua') diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index a1c0bbf..aa56f76 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -16,11 +16,12 @@ cmp.setup { end, }, mapping = { + [''] = cmp.mapping.confirm({ select = true }), [''] = cmp.mapping.select_next_item(), [''] = cmp.mapping.select_prev_item(), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.close(), + [''] = cmp.mapping.close(), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -51,16 +52,6 @@ cmp.setup { vim.cmd('autocmd FileType markdown lua require("cmp").setup.buffer { enabled = false }') require('nvim-autopairs').setup{} -require("nvim-autopairs.completion.cmp").setup { - map_cr = true, -- map on insert mode - map_complete = true, -- it will auto insert `(` (map_char) after select function or method item - auto_select = true, -- automatically select the first item - insert = false, -- use insert confirm behavior instead of replace - map_char = { -- modifies the function or method delimiter by filetypes - all = '(', - tex = '{', - }, -} -- LSPCONFIG local nvim_lsp = require('lspconfig') -- cgit v1.2.3-70-g09d2