commit 50451218ac097c73c198270c5dd9236a3de86cb5
parent 04338434cd5ac7d356c2f0df904bcbfca6aa71fa
Author: Tomas Nemec <owl@gtms.dev>
Date: Mon, 25 Sep 2023 22:24:20 +0200
update
Diffstat:
2 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua
@@ -100,6 +100,15 @@ cmp.setup({
['<c-p>'] = cmp.mapping({ i = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }) }),
['<c-space>'] = cmp.mapping({ i = cmp.mapping.complete() }),
},
+
+ -- = cmp.config.sources({
+ -- { name = 'nvim_lsp' },
+ -- { name = 'vsnip' }, -- For vsnip users.
+ -- -- { name = 'luasnip' }, -- For luasnip users.
+ -- -- { name = 'snippy' }, -- For snippy users.
+ -- -- { name = 'ultisnips' }, -- For ultisnips users.
+ -- }, { { name = 'buffer' } }),
+
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'nvim_lsp_signature_help' },
@@ -129,7 +138,7 @@ cmp.setup({
-- compare.order,
-- },
-- },
- experimental = { ghost_text = false },
+ -- experimental = { ghost_text = false },
})
-- cmp.setup.cmdline('/', {
diff --git a/lua/plugins.lua b/lua/plugins.lua
@@ -75,7 +75,7 @@ return plugins {
'rhysd/conflict-marker.vim',
-- http
- { 'NTBBloodbath/rest.nvim', requires = { 'nvim-lua/plenary.nvim' } },
+ { 'rest-nvim/rest.nvim', requires = { 'nvim-lua/plenary.nvim' } },
-- filetype
'tikhomirov/vim-glsl',
@@ -88,27 +88,24 @@ return plugins {
'L3MON4D3/luaSnip',
-- completion
- {
- 'hrsh7th/nvim-cmp',
- requires = {
- 'dmitmel/cmp-cmdline-history',
- 'f3fora/cmp-spell',
- 'hrsh7th/cmp-buffer',
- 'hrsh7th/cmp-calc',
- 'hrsh7th/cmp-cmdline',
- 'hrsh7th/cmp-nvim-lsp',
- -- 'zbirenbaum/copilot-cmp',
- 'hrsh7th/cmp-nvim-lsp-signature-help',
- 'hrsh7th/cmp-nvim-lua',
- 'hrsh7th/cmp-path',
- 'petertriho/cmp-git',
- 'ray-x/cmp-treesitter',
- 'rcarriga/cmp-dap',
- 'saadparwaiz1/cmp_luasnip',
- 'tamago324/cmp-zsh',
- 'uga-rosa/cmp-dictionary',
- },
- },
+ 'dmitmel/cmp-cmdline-history',
+ 'f3fora/cmp-spell',
+ 'hrsh7th/cmp-buffer',
+ 'hrsh7th/cmp-calc',
+ 'hrsh7th/cmp-cmdline',
+ 'hrsh7th/cmp-nvim-lsp',
+ -- 'zbirenbaum/copilot-cmp',
+ 'hrsh7th/cmp-nvim-lsp-signature-help',
+ 'hrsh7th/cmp-nvim-lua',
+ 'hrsh7th/cmp-path',
+ 'petertriho/cmp-git',
+ 'ray-x/cmp-treesitter',
+ 'rcarriga/cmp-dap',
+ 'saadparwaiz1/cmp_luasnip',
+ 'tamago324/cmp-zsh',
+ 'uga-rosa/cmp-dictionary',
+ 'hrsh7th/nvim-cmp',
+
'aduros/ai.vim',
-- ui