|
@@ -101,6 +101,9 @@ require('lazy').setup({
|
|
|
'L3MON4D3/LuaSnip',
|
|
|
'saadparwaiz1/cmp_luasnip',
|
|
|
|
|
|
+ 'hrsh7th/cmp-path',
|
|
|
+
|
|
|
+
|
|
|
-- Adds LSP completion capabilities
|
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
|
|
|
@@ -155,16 +158,7 @@ require('lazy').setup({
|
|
|
},
|
|
|
},
|
|
|
|
|
|
- {
|
|
|
- -- Add indentation guides even on blank lines
|
|
|
- 'lukas-reineke/indent-blankline.nvim',
|
|
|
- -- Enable `lukas-reineke/indent-blankline.nvim`
|
|
|
- -- See `:help indent_blankline.txt`
|
|
|
- opts = {
|
|
|
- char = '┊',
|
|
|
- show_trailing_blankline_indent = false,
|
|
|
- },
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
-- "gc" to comment visual regions/lines
|
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
@@ -495,7 +489,7 @@ cmp.setup {
|
|
|
['<C-d>'] = cmp.mapping.scroll_docs(-4),
|
|
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
|
|
['<C-Space>'] = cmp.mapping.complete {},
|
|
|
- ['<CR>'] = cmp.mapping.confirm {
|
|
|
+ ['<C-y>'] = cmp.mapping.confirm {
|
|
|
behavior = cmp.ConfirmBehavior.Replace,
|
|
|
select = true,
|
|
|
},
|
|
@@ -521,7 +515,8 @@ cmp.setup {
|
|
|
sources = {
|
|
|
{ name = 'nvim_lsp' },
|
|
|
{ name = 'luasnip' },
|
|
|
- },
|
|
|
+ { name = 'path' },
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|