1

Update generated neovim config

This commit is contained in:
2024-08-15 14:28:54 +02:00
parent 07409c223d
commit 25cfcf2941
3809 changed files with 351157 additions and 0 deletions

View File

@ -0,0 +1,263 @@
commands = {}
dependencies = {
["nvim-cmp"] = {
["scm-1"] = {
{
constraints = {
{
op = ">=",
version = {
5, 1, string = "5.1"
}
},
{
op = "<",
version = {
5, 4, string = "5.4"
}
}
},
name = "lua"
}
}
}
}
modules = {
["cmp.config"] = {
"nvim-cmp/scm-1"
},
["cmp.config.compare"] = {
"nvim-cmp/scm-1"
},
["cmp.config.context"] = {
"nvim-cmp/scm-1"
},
["cmp.config.default"] = {
"nvim-cmp/scm-1"
},
["cmp.config.mapping"] = {
"nvim-cmp/scm-1"
},
["cmp.config.sources"] = {
"nvim-cmp/scm-1"
},
["cmp.config.window"] = {
"nvim-cmp/scm-1"
},
["cmp.context"] = {
"nvim-cmp/scm-1"
},
["cmp.context_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.core"] = {
"nvim-cmp/scm-1"
},
["cmp.core_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.entry"] = {
"nvim-cmp/scm-1"
},
["cmp.entry_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.init"] = {
"nvim-cmp/scm-1"
},
["cmp.matcher"] = {
"nvim-cmp/scm-1"
},
["cmp.matcher_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.source"] = {
"nvim-cmp/scm-1"
},
["cmp.source_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.types.cmp"] = {
"nvim-cmp/scm-1"
},
["cmp.types.init"] = {
"nvim-cmp/scm-1"
},
["cmp.types.lsp"] = {
"nvim-cmp/scm-1"
},
["cmp.types.lsp_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.types.vim"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.api"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.api_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.async"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.async_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.autocmd"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.binary"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.binary_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.buffer"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.cache"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.char"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.debug"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.event"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.feedkeys"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.feedkeys_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.highlight"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.keymap"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.keymap_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.misc"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.misc_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.options"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.pattern"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.snippet"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.str"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.str_spec"] = {
"nvim-cmp/scm-1"
},
["cmp.utils.window"] = {
"nvim-cmp/scm-1"
},
["cmp.view"] = {
"nvim-cmp/scm-1"
},
["cmp.view.custom_entries_view"] = {
"nvim-cmp/scm-1"
},
["cmp.view.docs_view"] = {
"nvim-cmp/scm-1"
},
["cmp.view.ghost_text_view"] = {
"nvim-cmp/scm-1"
},
["cmp.view.native_entries_view"] = {
"nvim-cmp/scm-1"
},
["cmp.view.wildmenu_entries_view"] = {
"nvim-cmp/scm-1"
},
["cmp.vim_source"] = {
"nvim-cmp/scm-1"
}
}
repository = {
["nvim-cmp"] = {
["scm-1"] = {
{
arch = "installed",
commands = {},
dependencies = {},
modules = {
["cmp.config"] = "cmp/config.lua",
["cmp.config.compare"] = "cmp/config/compare.lua",
["cmp.config.context"] = "cmp/config/context.lua",
["cmp.config.default"] = "cmp/config/default.lua",
["cmp.config.mapping"] = "cmp/config/mapping.lua",
["cmp.config.sources"] = "cmp/config/sources.lua",
["cmp.config.window"] = "cmp/config/window.lua",
["cmp.context"] = "cmp/context.lua",
["cmp.context_spec"] = "cmp/context_spec.lua",
["cmp.core"] = "cmp/core.lua",
["cmp.core_spec"] = "cmp/core_spec.lua",
["cmp.entry"] = "cmp/entry.lua",
["cmp.entry_spec"] = "cmp/entry_spec.lua",
["cmp.init"] = "cmp/init.lua",
["cmp.matcher"] = "cmp/matcher.lua",
["cmp.matcher_spec"] = "cmp/matcher_spec.lua",
["cmp.source"] = "cmp/source.lua",
["cmp.source_spec"] = "cmp/source_spec.lua",
["cmp.types.cmp"] = "cmp/types/cmp.lua",
["cmp.types.init"] = "cmp/types/init.lua",
["cmp.types.lsp"] = "cmp/types/lsp.lua",
["cmp.types.lsp_spec"] = "cmp/types/lsp_spec.lua",
["cmp.types.vim"] = "cmp/types/vim.lua",
["cmp.utils.api"] = "cmp/utils/api.lua",
["cmp.utils.api_spec"] = "cmp/utils/api_spec.lua",
["cmp.utils.async"] = "cmp/utils/async.lua",
["cmp.utils.async_spec"] = "cmp/utils/async_spec.lua",
["cmp.utils.autocmd"] = "cmp/utils/autocmd.lua",
["cmp.utils.binary"] = "cmp/utils/binary.lua",
["cmp.utils.binary_spec"] = "cmp/utils/binary_spec.lua",
["cmp.utils.buffer"] = "cmp/utils/buffer.lua",
["cmp.utils.cache"] = "cmp/utils/cache.lua",
["cmp.utils.char"] = "cmp/utils/char.lua",
["cmp.utils.debug"] = "cmp/utils/debug.lua",
["cmp.utils.event"] = "cmp/utils/event.lua",
["cmp.utils.feedkeys"] = "cmp/utils/feedkeys.lua",
["cmp.utils.feedkeys_spec"] = "cmp/utils/feedkeys_spec.lua",
["cmp.utils.highlight"] = "cmp/utils/highlight.lua",
["cmp.utils.keymap"] = "cmp/utils/keymap.lua",
["cmp.utils.keymap_spec"] = "cmp/utils/keymap_spec.lua",
["cmp.utils.misc"] = "cmp/utils/misc.lua",
["cmp.utils.misc_spec"] = "cmp/utils/misc_spec.lua",
["cmp.utils.options"] = "cmp/utils/options.lua",
["cmp.utils.pattern"] = "cmp/utils/pattern.lua",
["cmp.utils.snippet"] = "cmp/utils/snippet.lua",
["cmp.utils.spec"] = "cmp/utils/spec.lua",
["cmp.utils.str"] = "cmp/utils/str.lua",
["cmp.utils.str_spec"] = "cmp/utils/str_spec.lua",
["cmp.utils.window"] = "cmp/utils/window.lua",
["cmp.view"] = "cmp/view.lua",
["cmp.view.custom_entries_view"] = "cmp/view/custom_entries_view.lua",
["cmp.view.docs_view"] = "cmp/view/docs_view.lua",
["cmp.view.ghost_text_view"] = "cmp/view/ghost_text_view.lua",
["cmp.view.native_entries_view"] = "cmp/view/native_entries_view.lua",
["cmp.view.wildmenu_entries_view"] = "cmp/view/wildmenu_entries_view.lua",
["cmp.vim_source"] = "cmp/vim_source.lua"
}
}
}
}
}

View File

@ -0,0 +1,75 @@
let s:bridge_id = 0
let s:sources = {}
"
" cmp#register_source
"
function! cmp#register_source(name, source) abort
let l:methods = []
for l:method in [
\ 'is_available',
\ 'get_debug_name',
\ 'get_position_encoding_kind',
\ 'get_trigger_characters',
\ 'get_keyword_pattern',
\ 'complete',
\ 'execute',
\ 'resolve'
\ ]
if has_key(a:source, l:method) && type(a:source[l:method]) == v:t_func
call add(l:methods, l:method)
endif
endfor
let s:bridge_id += 1
let a:source.bridge_id = s:bridge_id
let a:source.id = luaeval('require("cmp").register_source(_A[1], require("cmp.vim_source").new(_A[2], _A[3]))', [a:name, s:bridge_id, l:methods])
let s:sources[s:bridge_id] = a:source
return a:source.id
endfunction
"
" cmp#unregister_source
"
function! cmp#unregister_source(id) abort
if has_key(s:sources, a:id)
unlet s:sources[a:id]
endif
call luaeval('require("cmp").unregister_source(_A)', a:id)
endfunction
"
" cmp#_method
"
function! cmp#_method(bridge_id, method, args) abort
try
let l:source = s:sources[a:bridge_id]
if a:method ==# 'is_available'
return l:source[a:method]()
elseif a:method ==# 'get_debug_name'
return l:source[a:method]()
elseif a:method ==# 'get_position_encoding_kind'
return l:source[a:method](a:args[0])
elseif a:method ==# 'get_keyword_pattern'
return l:source[a:method](a:args[0])
elseif a:method ==# 'get_trigger_characters'
return l:source[a:method](a:args[0])
elseif a:method ==# 'complete'
return l:source[a:method](a:args[0], s:callback(a:args[1]))
elseif a:method ==# 'resolve'
return l:source[a:method](a:args[0], s:callback(a:args[1]))
elseif a:method ==# 'execute'
return l:source[a:method](a:args[0], s:callback(a:args[1]))
endif
catch /.*/
echomsg string({ 'exception': v:exception, 'throwpoint': v:throwpoint })
endtry
return v:null
endfunction
"
" s:callback
"
function! s:callback(id) abort
return { ... -> luaeval('require("cmp.vim_source").on_callback(_A[1], _A[2])', [a:id, a:000]) }
endfunction

View File

@ -0,0 +1,31 @@
local MODREV, SPECREV = 'scm', '-1'
rockspec_format = '3.0'
package = 'nvim-cmp'
version = MODREV .. SPECREV
description = {
summary = 'A completion plugin for neovim',
labels = { 'neovim' },
detailed = [[
A completion engine plugin for neovim written in Lua. Completion sources are installed from external repositories and "sourced".
]],
homepage = 'https://github.com/hrsh7th/nvim-cmp',
license = 'MIT',
}
dependencies = {
'lua >= 5.1, < 5.4',
}
source = {
url = 'git://github.com/hrsh7th/nvim-cmp',
}
build = {
type = 'builtin',
copy_directories = {
'autoload',
'plugin',
'doc'
}
}

View File

@ -0,0 +1,61 @@
if vim.g.loaded_cmp then
return
end
vim.g.loaded_cmp = true
if not vim.api.nvim_create_autocmd then
return print('[nvim-cmp] Your nvim does not has `nvim_create_autocmd` function. Please update to latest nvim.')
end
local api = require('cmp.utils.api')
local types = require('cmp.types')
local highlight = require('cmp.utils.highlight')
local autocmd = require('cmp.utils.autocmd')
vim.api.nvim_set_hl(0, 'CmpItemAbbr', { link = 'CmpItemAbbrDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemAbbrDeprecated', { link = 'CmpItemAbbrDeprecatedDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemAbbrMatch', { link = 'CmpItemAbbrMatchDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemAbbrMatchFuzzy', { link = 'CmpItemAbbrMatchFuzzyDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemKind', { link = 'CmpItemKindDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemMenu', { link = 'CmpItemMenuDefault', default = true })
for kind in pairs(types.lsp.CompletionItemKind) do
if type(kind) == 'string' then
local name = ('CmpItemKind%s'):format(kind)
vim.api.nvim_set_hl(0, name, { link = ('%sDefault'):format(name), default = true })
end
end
autocmd.subscribe({ 'ColorScheme', 'UIEnter' }, function()
highlight.inherit('CmpItemAbbrDefault', 'Pmenu', { bg = 'NONE', default = false })
highlight.inherit('CmpItemAbbrDeprecatedDefault', 'Comment', { bg = 'NONE', default = false })
highlight.inherit('CmpItemAbbrMatchDefault', 'Pmenu', { bg = 'NONE', default = false })
highlight.inherit('CmpItemAbbrMatchFuzzyDefault', 'Pmenu', { bg = 'NONE', default = false })
highlight.inherit('CmpItemKindDefault', 'Special', { bg = 'NONE', default = false })
highlight.inherit('CmpItemMenuDefault', 'Pmenu', { bg = 'NONE', default = false })
for name in pairs(types.lsp.CompletionItemKind) do
if type(name) == 'string' then
vim.api.nvim_set_hl(0, ('CmpItemKind%sDefault'):format(name), { link = 'CmpItemKind', default = false })
end
end
end)
autocmd.emit('ColorScheme')
if vim.on_key then
local control_c_termcode = vim.api.nvim_replace_termcodes('<C-c>', true, true, true)
vim.on_key(function(keys)
if keys == control_c_termcode then
vim.schedule(function()
if not api.is_suitable_mode() then
autocmd.emit('InsertLeave')
end
end)
end
end, vim.api.nvim_create_namespace('cmp.plugin'))
end
vim.api.nvim_create_user_command('CmpStatus', function()
require('cmp').status()
end, { desc = 'Check status of cmp sources' })
vim.cmd([[doautocmd <nomodeline> User CmpReady]])

View File

@ -0,0 +1,80 @@
rock_manifest = {
autoload = {
["cmp.vim"] = "3486f63ca3381e0b6bf094569f028665"
},
doc = {
["cmp.txt"] = "0ed9ef42d5a72bfd6f805b64cd00276a"
},
lua = {
cmp = {
config = {
["compare.lua"] = "3aebf065a89dafb7a139972a49ccb5b5",
["context.lua"] = "28e9f4e9575f6183d1d05bbee4c4408c",
["default.lua"] = "2f2648b4528925dc6a98f0fa4d93c6fc",
["mapping.lua"] = "39b88ca1fa06ced8522ec0ee27cb24f2",
["sources.lua"] = "81bb51dbe8997bfabd46541a394b4b41",
["window.lua"] = "ae25fe313122f0e90b651c5e9d7dfd2e"
},
["config.lua"] = "3a196d30b4572b8935ea4e879f900f59",
["context.lua"] = "aa01e370d568a387e98389103e3e01df",
["context_spec.lua"] = "d5b2fb143dd2efaee3f71bfe1bdc31a9",
["core.lua"] = "0d7de2518b5be40093c777416bb36af1",
["core_spec.lua"] = "edbefcd3d75e48e9d7bc4326f100a864",
["entry.lua"] = "6bc6aba58cea17879cd2ccdffee61631",
["entry_spec.lua"] = "ca2aff02436ad84ca62d3df331173f01",
["init.lua"] = "c428d4c7f3fc90af2151e9ca1a72ec50",
["matcher.lua"] = "55af0d4c7ce03827a3dbda8715a1b472",
["matcher_spec.lua"] = "59da9197d47615ada5bf93011766356c",
["source.lua"] = "60cc28eea79e72914142fe5dc5ad95d1",
["source_spec.lua"] = "2b54677be2c92d7c3984783140b7018c",
types = {
["cmp.lua"] = "174d92640f57fb2f3c0f2c62eb5f8654",
["init.lua"] = "d372a58d9966fbc24e7ccd3d6c30a834",
["lsp.lua"] = "401502e8b85568aee57584948953feb5",
["lsp_spec.lua"] = "72e9da2b231e4716ac39d0759c387b44",
["vim.lua"] = "a6796b027eb76f5d1cce7fa8172eabea"
},
utils = {
["api.lua"] = "53067718473650f4d109780a1a7bcdc6",
["api_spec.lua"] = "89fe537ce824cad191576272d8cdc47a",
["async.lua"] = "2b968476962ba1c22a86a5392b62da9f",
["async_spec.lua"] = "679338ab70a4c1ea72d7173e77143b68",
["autocmd.lua"] = "322672f88beaeec084dbcd4086a78b8c",
["binary.lua"] = "385a0844080b9d281a2ea0a254e09ddd",
["binary_spec.lua"] = "cb428e4eded68b6bf27c2dd778cba44c",
["buffer.lua"] = "0d72e16d90fecb8dbed6843d4ce46553",
["cache.lua"] = "622af76c4c7bf212b9fd6f2c6c832ddd",
["char.lua"] = "723a8066d2e67d40034ffce692250a58",
["debug.lua"] = "c87003d9480670c22d73a1ba670e8c89",
["event.lua"] = "38b59f97402a0c71ac21fb1408536c0d",
["feedkeys.lua"] = "dc06216a0ec2eb1ac6412cb1fdb8e059",
["feedkeys_spec.lua"] = "76b9acca3b02ef4163ae070b9fd78ed9",
["highlight.lua"] = "f9bf48596410a2105e7e1f9214ff3a33",
["keymap.lua"] = "791262dc36492c6daa8a485c8c855f28",
["keymap_spec.lua"] = "6cd866f56f97a1d5ed70fa8dd20c6d53",
["misc.lua"] = "4a5ef5ee10bf1dd5ada4b4cd75c840c1",
["misc_spec.lua"] = "691adf08c16f1312976594986340dab4",
["options.lua"] = "b076c4f8f9c915f6334944ec9749fdb0",
["pattern.lua"] = "e77acfc76798494a14c6e62472a2ef7b",
["snippet.lua"] = "de00ee60d79f76eb7d42defb969e1eb8",
["spec.lua"] = "484dcd49b1a4cfb8fc195f16b2dc38c1",
["str.lua"] = "075a6cbb4683b4b2bd52ceeb3af96755",
["str_spec.lua"] = "5b17025edaa3a49892951521da0bc9c4",
["window.lua"] = "8b90f3cbc1992529e7326cc5ec109b47"
},
view = {
["custom_entries_view.lua"] = "b66a0988215b358970d1ed7ccb12fc11",
["docs_view.lua"] = "527e58b879a27b67382048808b1c599b",
["ghost_text_view.lua"] = "9327099e6007f383fdd459d1cdbbcae9",
["native_entries_view.lua"] = "2ccde9ddc9f917194d507da6c54afb5f",
["wildmenu_entries_view.lua"] = "6af1772e3ad9d4fa79f0548e686f3189"
},
["view.lua"] = "770aecef2794ea7626439b18385b8545",
["vim_source.lua"] = "205a75409f6ae2debad0bf96e7041466"
}
},
["nvim-cmp-scm-1.rockspec"] = "92079ac860d2bbb56eb8dc343423d1ac",
plugin = {
["cmp.lua"] = "070df415c09de0e23bb521a820f1614d"
}
}