Package: neovim
Version: 0.10.4-8
Severity: normal
X-Debbugs-Cc: [email protected]
Hi,
I get the following error message when using the configuration
let g:python_indent.closed_paren_align_last_line = v:false
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:35: Error
executing lua: /usr/share/nvim/runtime/filetype.lua:36: BufReadPost
Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1
_LoadFTPlugin[20]..script
/home/venthur/dotfiles/neovim/.config/nvim/after/ftplugin/python.vim, line 4:
Vim(let):E121: Undefined variable: g:python_indent
stack traceback:
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:36: in function
</usr/share/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:35: in function
</usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:35: in function
</usr/share/nvim/runtime/filetype.lua:10>
However, according to `help: ft-python-indent`, python_indent should be used
for various configuration. Also listed in that help section are config
variables for backwards compatibility pyident_XXX, these still work.
Seems like nvim's help disagrees with nvim.
Cheers,
Bastian
-- System Information:
Debian Release: 13.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.15-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages neovim depends on:
ii libc6 2.41-10
ii libluajit-5.1-2 2.1.0+openresty20250117-2
ii libmsgpack-c2 6.0.1-3+b1
ii libtree-sitter0.22 0.22.6-6+b1
ii libunibilium4 2.1.1-2+b1
ii libuv1t64 1.50.0-2
ii libvterm0 0.3.3-3+b1
ii lua-lpeg 1.1.0-2
ii lua-luv 1.48.0-2-3
ii neovim-runtime 0.10.4-8
Versions of packages neovim recommends:
ii python3-pynvim 0.5.2-2
ii wl-clipboard 2.2.1-2
ii xclip 0.13-4
ii xsel 1.2.1-1
ii xxd 2:9.1.1230-2
Versions of packages neovim suggests:
pn ctags <none>
pn vim-scripts <none>
-- no debconf information