E5113: Error while calling lua chunk: ...omink/.config/nvim/lua/pckr.nvim/lua/pckr/loader/cmd.lua:6: Expected lua strin
g
stack traceback:
[C]: in function 'nvim_create_user_command'
...omink/.config/nvim/lua/pckr.nvim/lua/pckr/loader/cmd.lua:6: in function 'cond'
...e/moomink/.config/nvim/lua/pckr.nvim/lua/pckr/loader.lua:219: in function 'load_plugins'
...e/moomink/.config/nvim/lua/pckr.nvim/lua/pckr/loader.lua:230: in function 'setup'
/home/moomink/.config/nvim/lua/pckr.nvim/lua/pckr.lua:60: in function 'add'
/home/moomink/.config/nvim/lua/plugins.lua:26: in main chunk
[C]: in function 'require'
/home/moomink/.config/nvim/init.lua:1: in main chunk
Expected behaviour
The following writing style worked fine.
I am not familiar with lua, but this is probably correct.
nvim --version
:NVIM v0.9.1
git --version
:git version 2.41.0
zsh 5.9 (x86_64-pc-linux-gnu)
Steps to reproduce
Write this cmd based on Example.
Actual behaviour
Return this error.
Expected behaviour
The following writing style worked fine. I am not familiar with lua, but this is probably correct.
pckr files
Plugin specification file(s)
init.lua ``` require("plugins") require("options") require("keymap") require("lsp") require("patch/nixos") ``` plugins.lua ``` local fn = vim.fn -- Initilaize Installl local ensure_packer = function() local install_path = fn.stdpath('config') .. '/lua/pckr.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({ 'git', 'clone', '--depth', '1', '--filter=blob:none','https://github.com/lewis6991/pckr.nvim', install_path }) vim.opt.runtimepath:append(install_path) end vim.opt.runtimepath:append(install_path) end local packer_bootstrap = ensure_packer() local cmd = require('pckr.loader.cmd') local keys = require('pckr.loader.keys') require('pckr').setup{ log = { level = "info" } } require('pckr').add{ 'bronson/vim-trailing-whitespace'; { 'Yggdroot/indentLine', config = function() vim.cmd[[ let g:indentLine_color_term = 0xFF "let g:indentLine_bgcolor_term = 0xEE let g:indentLine_first_char = '░' let g:indentLine_showFirstIndentLevel = 1 let g:indentLine_char_list = ['❙','¦','|'] let g:indentLine_leadingSpaceChar = '░' let g:indentLine_leadingSpaceEnabled = 0 ]] end }; 'ConradIrwin/vim-bracketed-paste'; { 'simeji/winresizer', cond = keys('n','