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.