-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/lua/modules/configs/completion\cmp.lua:95: attempt to concatenate a nil value #634
Comments
Maybe the same as #624 ? |
This resolves ayamir#634 as a temporal workaround (cherry picked from commit d506a19)
I think you have a point,After I commented out the relevant code, the problem disappeared along with the Nerd fonts icon. |
This resolves ayamir#634 as a temporal workaround
I pulled the new config file, but didn't upgrade nvim from 0.8 to 0.9, so my problem was not solved.
|
#637 is coming. Hang tight! |
* chore(README): bump supported version * feat(options): support new options shipped with v0.9 * feat(scripts): support v0.9 * feat!: add initial support for lsp semantic tokens (#633) * feat(utils): use neovim builtin to get highlights (#632) * fix: remove deprecated options for nvim-tree. * fix(cmp): support dynamic `kind_text` from cmp source: `treesitter`, fix #624 #634 (#637) * fix&feat: introduce suda.vim to write file with sudo * chore(kind_text): cleanup (#648) * feat(alpha): add custom highlight groups (#650) * fix: install `psutils` by default for Windows users * revert: bind `SudaWrite` to `<A-s>` ref: #641 (comment) * fix(cmp): nil `vim_item` * perf(core-mapping): add some useful mapping * fix(nvim-tree): `hide_root_folder` is deprecated * perf: load fidget.nvim after `LspAttach` * minor fix 1. remove `<nop>` at "n|Q" 2. use visual mode instead of visual-line mode for "n|<C-a>" * perf: align style * perf(0.9): `stabilize.nvim` had been upstream to `0.9` * chore(project.nvim): update legacy code * chore(README): update branch info * chore(mapping): cleanup (#657) * fix(icon): update invalid cmp icon (#665) * chore/lspsaga_move (#667) * fix: paint word boundary in python (#669) * fix(bufferline): `show_buffer_default_icon` is now deprecate * feat(formatting): notify users for files under disabled dirs * chore(formatting): rephrase messages * fix(font-encoding): fix invalid characters on windows, fix #639 (#659) Co-authored-by: 冷酔閑吟 <[email protected]> * pref: unify code style for PowerShell commands * perf: better guidance to `Discussions` and `Wiki` (#680) * pref(ISSUE_TEMPLATE): fix typos and format with prettier * fixup! pref(ISSUE_TEMPLATE): fix typos and format with prettier * feat(scripts): abort for nvim v0.7 and its antecedent * feat(settings): allow customization of `transparent_background` (#687) * fix(bufferline): use defaults for `get_element_icon` (#685) * feat(auto-session): remember opened buffers (#688) * revert(keymap): remove redundant mappings. * fix(catppuccin): properly detect `g:colors_name` (#695) Ref: upstream breaking change [catppuccin/nvim@7a7a664] --------- Co-authored-by: ayamir <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: CharlesChiuGit <[email protected]> Co-authored-by: Xie Zejian <[email protected]> Co-authored-by: AngelontheRoad <[email protected]> Co-authored-by: Saafo <[email protected]>
* chore(README): bump supported version * feat(options): support new options shipped with v0.9 * feat(scripts): support v0.9 * feat!: add initial support for lsp semantic tokens (ayamir#633) * feat(utils): use neovim builtin to get highlights (ayamir#632) * fix: remove deprecated options for nvim-tree. * fix(cmp): support dynamic `kind_text` from cmp source: `treesitter`, fix ayamir#624 ayamir#634 (ayamir#637) * fix&feat: introduce suda.vim to write file with sudo * chore(kind_text): cleanup (ayamir#648) * feat(alpha): add custom highlight groups (ayamir#650) * fix: install `psutils` by default for Windows users * revert: bind `SudaWrite` to `<A-s>` ref: ayamir#641 (comment) * fix(cmp): nil `vim_item` * perf(core-mapping): add some useful mapping * fix(nvim-tree): `hide_root_folder` is deprecated * perf: load fidget.nvim after `LspAttach` * minor fix 1. remove `<nop>` at "n|Q" 2. use visual mode instead of visual-line mode for "n|<C-a>" * perf: align style * perf(0.9): `stabilize.nvim` had been upstream to `0.9` * chore(project.nvim): update legacy code * chore(README): update branch info * chore(mapping): cleanup (ayamir#657) * fix(icon): update invalid cmp icon (ayamir#665) * chore/lspsaga_move (ayamir#667) * fix: paint word boundary in python (ayamir#669) * fix(bufferline): `show_buffer_default_icon` is now deprecate * feat(formatting): notify users for files under disabled dirs * chore(formatting): rephrase messages * fix(font-encoding): fix invalid characters on windows, fix ayamir#639 (ayamir#659) Co-authored-by: 冷酔閑吟 <[email protected]> * pref: unify code style for PowerShell commands * perf: better guidance to `Discussions` and `Wiki` (ayamir#680) * pref(ISSUE_TEMPLATE): fix typos and format with prettier * fixup! pref(ISSUE_TEMPLATE): fix typos and format with prettier * feat(scripts): abort for nvim v0.7 and its antecedent * feat(settings): allow customization of `transparent_background` (ayamir#687) * fix(bufferline): use defaults for `get_element_icon` (ayamir#685) * feat(auto-session): remember opened buffers (ayamir#688) * revert(keymap): remove redundant mappings. * fix(catppuccin): properly detect `g:colors_name` (ayamir#695) Ref: upstream breaking change [catppuccin/nvim@7a7a664] --------- Co-authored-by: ayamir <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: CharlesChiuGit <[email protected]> Co-authored-by: Xie Zejian <[email protected]> Co-authored-by: AngelontheRoad <[email protected]> Co-authored-by: Saafo <[email protected]>
* chore(README): bump supported version * feat(options): support new options shipped with v0.9 * feat(scripts): support v0.9 * feat!: add initial support for lsp semantic tokens (ayamir#633) * feat(utils): use neovim builtin to get highlights (ayamir#632) * fix: remove deprecated options for nvim-tree. * fix(cmp): support dynamic `kind_text` from cmp source: `treesitter`, fix ayamir#624 ayamir#634 (ayamir#637) * fix&feat: introduce suda.vim to write file with sudo * chore(kind_text): cleanup (ayamir#648) * feat(alpha): add custom highlight groups (ayamir#650) * fix: install `psutils` by default for Windows users * revert: bind `SudaWrite` to `<A-s>` ref: ayamir#641 (comment) * fix(cmp): nil `vim_item` * perf(core-mapping): add some useful mapping * fix(nvim-tree): `hide_root_folder` is deprecated * perf: load fidget.nvim after `LspAttach` * minor fix 1. remove `<nop>` at "n|Q" 2. use visual mode instead of visual-line mode for "n|<C-a>" * perf: align style * perf(0.9): `stabilize.nvim` had been upstream to `0.9` * chore(project.nvim): update legacy code * chore(README): update branch info * chore(mapping): cleanup (ayamir#657) * fix(icon): update invalid cmp icon (ayamir#665) * chore/lspsaga_move (ayamir#667) * fix: paint word boundary in python (ayamir#669) * fix(bufferline): `show_buffer_default_icon` is now deprecate * feat(formatting): notify users for files under disabled dirs * chore(formatting): rephrase messages * fix(font-encoding): fix invalid characters on windows, fix ayamir#639 (ayamir#659) Co-authored-by: 冷酔閑吟 <[email protected]> * pref: unify code style for PowerShell commands * perf: better guidance to `Discussions` and `Wiki` (ayamir#680) * pref(ISSUE_TEMPLATE): fix typos and format with prettier * fixup! pref(ISSUE_TEMPLATE): fix typos and format with prettier * feat(scripts): abort for nvim v0.7 and its antecedent * feat(settings): allow customization of `transparent_background` (ayamir#687) * fix(bufferline): use defaults for `get_element_icon` (ayamir#685) * feat(auto-session): remember opened buffers (ayamir#688) * revert(keymap): remove redundant mappings. * fix(catppuccin): properly detect `g:colors_name` (ayamir#695) Ref: upstream breaking change [catppuccin/nvim@7a7a664] --------- Co-authored-by: ayamir <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: CharlesChiuGit <[email protected]> Co-authored-by: Xie Zejian <[email protected]> Co-authored-by: AngelontheRoad <[email protected]> Co-authored-by: Saafo <[email protected]> (cherry picked from commit 08c4561)
Version confirmation
Following prerequisites
Neovim version
NVIM v0.8.3 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compiled by runneradmin@fv-az171-224 Features: -acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM\sysinit.vim" fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"
Operating system/version
win10 22h2
Terminal name/version
PowerShell 7.3.3
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
How to reproduce the issue
I get this error every time I try to type a letter
Error executing vim.schedule lua callback: ...ppData\Local\nvim/lua/modules/configs/completion\cmp.lua:95: attempt to concatenate a nil value
stack traceback: ...ppData\Local\nvim/lua/modules/configs/completion\cmp.lua:95: in function 'format' ...ata/Local/nvim-data/site/lazy/nvim-cmp/lua/cmp/entry.lua:290: in function 'callback'
...cal/nvim-data/site/lazy/nvim-cmp/lua/cmp/utils/cache.lua:38: in function 'get_vim_item' ...ata/Local/nvim-data/site/lazy/nvim-cmp/lua/cmp/entry.lua:397: in function 'callback'
...cal/nvim-data/site/lazy/nvim-cmp/lua/cmp/utils/cache.lua:38: in function 'match' ...ta/Local/nvim-data/site/lazy/nvim-cmp/lua/cmp/source.lua:114: in function 'get_entries' ...ta/Local/nvim-data/site/lazy/nvim-cmp/lua/cmp/source.lua:352: in function 'cb' vim/_editor.lua:248: in function <vim/_editor.lua:247>
Expected behavior
what should i do to solve this problem?
Actual behavior
Additional information
This is what "checkhealth" outputs:
gitsigns: require("gitsigns.health").check()
lazy: require("lazy.health").check()
lazy.nvim
man: require("man.health").check()
mason: require("mason.health").check()
mason.nvim report
require("mason-registry.index")
is installed.github.com/mason-org/mason-registry version: 2023-04-08-roman-pond
is installed.UnZip 5.51 of 22 May 2004, by Info-ZIP. Maintained by C. Spieler. Send
go version go1.20.3 windows/amd64
cargo 1.68.2 (6feb7c9cf 2023-03-26)
luarocks 2.0.2
. Luarocks version must be >= 3.0.0.ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
3.3.26
9.5.0
v18.15.0
Python 3.8.6
`
java version "9.0.1"
GNU Wget 1.21.3 built on mingw32.
curl 7.83.1 (Windows) libcurl/7.83.1 Schannel
bsdtar 3.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp
7.3.3 Microsoft Windows 10.0.19045 Win32NT
Python 3.8.6
`
7-Zip 9.10 beta Copyright (c) 1999-2009 Igor Pavlov 2009-12-22
null-ls: require("null-ls.health").check()
nvim: health#nvim#check
Configuration
Performance
Remote Plugins
nvim-treesitter: require("nvim-treesitter.health").check()
Installation
tree-sitter
found 0.20.7 (b268e412ad4848380166af153300464e5a1cf83f) (parser generator, only needed for :TSInstallFromGrammar)node
found v18.15.0 (only needed for :TSInstallFromGrammar)git
executable found.cc
executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }Version: cc (Rev4, Built by MSYS2 project) 12.2.0
OS Info:
{
machine = "x86_64",
release = "10.0.19045",
sysname = "Windows_NT",
version = "Windows 10 Pro"
}
Parser/Features H L F I J
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang}
provider: health#provider#check
Clipboard (optional)
Python 3 provider (optional)
import neovim
. Using the first available executable for diagnostics.Python virtualenv
Ruby provider (optional)
neovim-ruby-host
not found.gem install neovim
to ensure the neovim RubyGem is installed.gem environment
to ensure the gem bin directory is in $PATH.let g:loaded_ruby_provider = 0
to your init.vimNode.js provider (optional)
Perl provider (optional)
vim.lsp: require("vim.lsp.health").check()
vim.treesitter: require("vim.treesitter.health").check()
which_key: health#which_key#check
WhichKey: checking conflicting keymaps
<Cmd>HopChar1<CR>
<Plug>(comment_toggle_linewise)
<Plug>(comment_toggle_blockwise)
<Cmd>HopChar1<CR>
<cmd>lua require("which-key").show(" ", {mode = "n", auto = true})<cr>
<cmd>lua require("which-key").show(" ", {mode = "v", auto = true})<cr>
The text was updated successfully, but these errors were encountered: