format with stylua
This commit is contained in:
@ -70,18 +70,19 @@ return {
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { 'i', 's', }),
|
||||
['<c-x>'] = cmp.mapping(cmp.mapping.complete(
|
||||
{
|
||||
end, { 'i', 's' }),
|
||||
['<c-x>'] = cmp.mapping(
|
||||
cmp.mapping.complete({
|
||||
config = {
|
||||
sources = {
|
||||
{
|
||||
name = 'cmdline_history'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
), { 'c' }),
|
||||
name = 'cmdline_history',
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
{ 'c' }
|
||||
),
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
@ -89,15 +90,15 @@ return {
|
||||
end,
|
||||
},
|
||||
sources = {
|
||||
{ name = 'neorg', priority = 8 },
|
||||
{ name = 'neorg', priority = 8 },
|
||||
{ name = 'luasnip', priority = 8 },
|
||||
{
|
||||
name = 'nvim_lsp',
|
||||
option = {
|
||||
markdown_oxide = {
|
||||
keyword_pattern = [[\(\k\| \|\/\|#\)\+]]
|
||||
}
|
||||
}
|
||||
keyword_pattern = [[\(\k\| \|\/\|#\)\+]],
|
||||
},
|
||||
},
|
||||
},
|
||||
{ name = 'nvim_lsp_signature_help', priority = 7 },
|
||||
-- { name = 'treesitter', priority = 6 },
|
||||
@ -111,8 +112,8 @@ return {
|
||||
bufs[vim.api.nvim_win_get_buf(win)] = true
|
||||
end
|
||||
return vim.tbl_keys(bufs)
|
||||
end
|
||||
}
|
||||
end,
|
||||
},
|
||||
},
|
||||
-- { name = 'nvim_lua' },
|
||||
-- { name = 'look' },
|
||||
@ -124,9 +125,9 @@ return {
|
||||
},
|
||||
enabled = function()
|
||||
return vim.api.nvim_buf_get_option(0, 'buftype') ~= 'prompt'
|
||||
or vim.api.nvim_buf_get_option(0, 'filetype') == 'dap-repl'
|
||||
or vim.api.nvim_buf_get_option(0, 'filetype') == 'dapui_watches'
|
||||
or vim.api.nvim_buf_get_option(0, 'filetype') == 'dapui_hover'
|
||||
or vim.api.nvim_buf_get_option(0, 'filetype') == 'dap-repl'
|
||||
or vim.api.nvim_buf_get_option(0, 'filetype') == 'dapui_watches'
|
||||
or vim.api.nvim_buf_get_option(0, 'filetype') == 'dapui_hover'
|
||||
end,
|
||||
-- completion = {
|
||||
-- completeopt = 'menu,menuone,noinsert, noselect',
|
||||
|
Reference in New Issue
Block a user