Skip to content

EditorConfig conflict #314

@abelsiqueira

Description

@abelsiqueira

Disclaimer: Sorry if this is not accurate, I am not very familiar with vim/neovim internals.

On NeoVIM, the value of shiftwidth should be inferred from EditorConfig's indent_size, but it appears to be overwritten or unset by undo_ftplugin.
I am using NeoVIM 0.9.5, and the configuration file is https://github.com/neovim/neovim/blob/master/runtime/ftplugin/julia.vim.
By removing shiftwidth from line 27, the value of shiftwidth is properly inferred from editorconfig.

I think that #280 is related. shiftwidth was removed by 88f178c but reintroduced by #294.

The file from NeoVIM's repo says that this is the homepage for that file, but I noticed that they are not the same, so I was not sure where to report. Let me know if it's better to do there.
That being said, when I use this file instead, I get the following error:

Error message
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:24: Error executing lua: ...brew/Cellar/neovim/0.9.5/share/nvim/
runtime/filetype.lua:25: BufReadPost Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[19]..script /opt/homebrew/Cellar/ne
ovim/0.9.5/share/nvim/runtime/ftplugin/julia.vim, line 96: Vim(call):E117: Unknown function: julia_blocks#init_mappings
stack traceback:
        [C]: in function 'nvim_cmd'
        ...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:25: in function <...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        ...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:24: in function <...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        ...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:24: in function <...brew/Cellar/neovim/0.9.5/share/nvim/runtime/filetype.lua:10>

Thanks in advance for the help. If the solution is creating a PR removing shiftwidth, I can definitely help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions