Deleted lazy dependency

This commit is contained in:
Rendo 2026-10-20 21:54:21 +05:00
commit ceeb113721
24 changed files with 193 additions and 243 deletions

56
lua/packs/cmp.lua Normal file
View file

@ -0,0 +1,56 @@
function config_cmp()
local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
window = {
-- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
}, {
{ name = 'buffer' },
})
})
cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = 'buffer' }
}
})
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
}),
matching = { disallow_symbol_nonprefix_matching = false }
})
-- local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- vim.lsp.config('<YOUR_LSP_SERVER>', {
-- capabilities = capabilities
-- })
-- vim.lsp.enable('<YOUR_LSP_SERVER>')
end
return {
config_cmp
}

22
lua/packs/lua.lua Normal file
View file

@ -0,0 +1,22 @@
function gh(link)
return 'https://github.com/' .. link
end
return {
gh('L3MON4D3/LuaSnip'),
gh('folke/which-key.nvim'),
gh('hrsh7th/cmp-buffer'),
gh('hrsh7th/cmp-cmdline'),
gh('hrsh7th/cmp-nvim-lsp'),
gh('hrsh7th/cmp-path'),
gh('hrsh7th/nvim-cmp'),
gh('iamcco/markdown-preview.nvim'),
gh('midoBB/nvim-quicktype'),
gh('nvim-lua/plenary.nvim'),
gh('neovim/nvim-lspconfig'),
gh('nvim-telescope/telescope.nvim'),
gh('preservim/nerdtree'),
gh('saadparwaiz1/cmp_luasnip'),
gh('sakhnik/nvim-gdb')
}