working version after update
This commit is contained in:
parent
a963cb7284
commit
00ed47465d
17 changed files with 288 additions and 158 deletions
27
lua/plugins/nvim-cmp.lua
Normal file
27
lua/plugins/nvim-cmp.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
return {
|
||||
-- Autocompletion
|
||||
{
|
||||
'hrsh7th/nvim-cmp',
|
||||
dependencies = {
|
||||
'luckasRanarison/tailwind-tools.nvim',
|
||||
'onsails/lspkind-nvim',
|
||||
-- Snippet Engine & its associated nvim-cmp source
|
||||
'L3MON4D3/LuaSnip',
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
-- Adds LSP completion capabilities
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
-- Adds a number of user-friendly snippets
|
||||
'rafamadriz/friendly-snippets',
|
||||
},
|
||||
opts = function()
|
||||
return {
|
||||
-- ...
|
||||
formatting = {
|
||||
format = require('lspkind').cmp_format {
|
||||
before = require('tailwind-tools.cmp').lspkind_format,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue