new lua style
This commit is contained in:
@ -54,9 +54,7 @@ return {
|
||||
nerd_font_variant = 'mono',
|
||||
},
|
||||
|
||||
enabled = function()
|
||||
return (vim.bo.buftype ~= 'prompt' and vim.b.completion ~= false) or require('cmp_dap').is_dap_buffer()
|
||||
end,
|
||||
enabled = function() return (vim.bo.buftype ~= 'prompt' and vim.b.completion ~= false) or require('cmp_dap').is_dap_buffer() end,
|
||||
-- default list of enabled providers defined so that you can extend it
|
||||
-- elsewhere in your config, without redefining it, via `opts_extend`
|
||||
sources = {
|
||||
@ -104,9 +102,7 @@ return {
|
||||
name = 'dap',
|
||||
module = 'blink.compat.source',
|
||||
async = false,
|
||||
enabled = function()
|
||||
return require('cmp_dap').is_dap_buffer()
|
||||
end,
|
||||
enabled = function() return require('cmp_dap').is_dap_buffer() end,
|
||||
},
|
||||
buffer = {
|
||||
name = 'Buffer',
|
||||
@ -116,12 +112,8 @@ return {
|
||||
get_bufnrs = function()
|
||||
return vim
|
||||
.iter(vim.api.nvim_list_wins())
|
||||
:map(function(win)
|
||||
return vim.api.nvim_win_get_buf(win)
|
||||
end)
|
||||
:filter(function(buf)
|
||||
return vim.bo[buf].buftype ~= 'nofile'
|
||||
end)
|
||||
:map(function(win) return vim.api.nvim_win_get_buf(win) end)
|
||||
:filter(function(buf) return vim.bo[buf].buftype ~= 'nofile' end)
|
||||
:totable()
|
||||
end,
|
||||
},
|
||||
|
Reference in New Issue
Block a user