From 7cd7126b4f0796163b46c99f550935d266ceda7d Mon Sep 17 00:00:00 2001 From: Phillip Nguyen Date: Wed, 27 Mar 2024 03:09:31 +0700 Subject: [PATCH] update config --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index b06c0ced..cdd9b9a5 100644 --- a/init.lua +++ b/init.lua @@ -258,6 +258,8 @@ require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically + 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically + 'tpope/vim-fugitive', -- Git commands in nvim -- NOTE: Plugins can also be added by using a table, -- with the first argument being the link and the following -- keys can be used to configure plugin behavior/loading/etc. @@ -855,6 +857,10 @@ require('lazy').setup({ -- Adjusts spacing to ensure icons are aligned nerd_font_variant = 'mono', }, + -- Accept ([y]es) the completion. + -- This will auto-import if your LSP supports it. + -- This will expand snippets if the LSP sent a snippet. + [''] = cmp.mapping.confirm { select = true }, completion = { -- By default, you may press `` to show the documentation.