#1109653 Undefined variable: g:python_indent

Package:
neovim
Source:
neovim
Description:
heavily refactored vim fork
Submitter:
Bastian Venthur
Date:
2025-09-06 20:15:13 UTC
Severity:
normal
#1109653#5
Date:
2025-07-21 08:13:13 UTC
From:
To:
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

#1109653#10
Date:
2025-09-06 20:13:55 UTC
From:
To:
That's a file in your home directory, not something shipped by neovim.

Cheers,