nvim: sorted cmp plugin dependencies

master
tiyn 1 year ago
parent 9d99e84a93
commit df3d35ddba

@ -2,10 +2,9 @@
-- bootstrap packer -- bootstrap packer
local ensure_packer = function() local ensure_packer = function()
local fn = vim.fn local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
if fn.empty(fn.glob(install_path)) > 0 then vim.fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
vim.cmd [[packadd packer.nvim]] vim.cmd [[packadd packer.nvim]]
return true return true
end end
@ -40,7 +39,7 @@ return require("packer").startup(function(use)
-- preview for markdown filetypes -- preview for markdown filetypes
use { "iamcco/markdown-preview.nvim", use { "iamcco/markdown-preview.nvim",
ft = { 'md' }, ft = { 'markdown' },
run = "cd app && yarn install" run = "cd app && yarn install"
} }
@ -60,23 +59,30 @@ return require("packer").startup(function(use)
-- autocompletion and its sources -- autocompletion and its sources
use { 'hrsh7th/nvim-cmp', use { 'hrsh7th/nvim-cmp',
requires = { 'hrsh7th/cmp-buffer', requires = { 'hrsh7th/cmp-buffer',
-- standalone cmp sources
'hrsh7th/cmp-path', 'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lsp',
'lukas-reineke/cmp-under-comparator', 'lukas-reineke/cmp-under-comparator',
'antoinemadec/fixcursorhold.nvim', -- lsp cmp source
'l3mon4d3/luasnip',
'saadparwaiz1/cmp_luasnip',
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
'hrsh7th/cmp-nvim-lsp',
'onsails/lspkind-nvim', 'onsails/lspkind-nvim',
-- luasnip cmp source
'l3mon4d3/luasnip',
'saadparwaiz1/cmp_luasnip',
-- lang server management
'williamboman/mason.nvim', 'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
'jose-elias-alvarez/null-ls.nvim', 'jose-elias-alvarez/null-ls.nvim',
'LostNeophyte/null-ls-embedded', 'LostNeophyte/null-ls-embedded',
'jay-babu/mason-null-ls.nvim',
-- dependencies
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
'jay-babu/mason-null-ls.nvim'
} }
} }
-- fix for cursorhold function
use { 'antoinemadec/fixcursorhold.nvim' }
-- showing color of hex values, etc -- showing color of hex values, etc
use { 'norcalli/nvim-colorizer.lua' } use { 'norcalli/nvim-colorizer.lua' }

Loading…
Cancel
Save