fix(nvim): completions
This commit is contained in:
parent
793afcdf33
commit
0821891006
@ -18,6 +18,7 @@ local function setup_cmp()
|
|||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
require('luasnip').lsp_expand(args.body)
|
require('luasnip').lsp_expand(args.body)
|
||||||
|
vim.snippet.expand(args.body)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
mapping = {
|
mapping = {
|
||||||
@ -46,10 +47,11 @@ local function setup_cmp()
|
|||||||
sorting = {
|
sorting = {
|
||||||
priority_weight = 1.0,
|
priority_weight = 1.0,
|
||||||
comparators = {
|
comparators = {
|
||||||
|
cmp.config.compare.score,
|
||||||
cmp.config.compare.locality,
|
cmp.config.compare.locality,
|
||||||
cmp.config.compare.recently_used,
|
cmp.config.compare.recently_used,
|
||||||
cmp.config.compare.score,
|
|
||||||
cmp.config.compare.offset,
|
cmp.config.compare.offset,
|
||||||
|
require("cmp-under-comparator").under,
|
||||||
cmp.config.compare.order,
|
cmp.config.compare.order,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -101,7 +103,6 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
"hrsh7th/cmp-buffer",
|
"hrsh7th/cmp-buffer",
|
||||||
"hrsh7th/cmp-path",
|
"hrsh7th/cmp-path",
|
||||||
"hrsh7th/cmp-cmdline",
|
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
'lukas-reineke/cmp-under-comparator',
|
'lukas-reineke/cmp-under-comparator',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user