You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and it works most of the time when editing files with neovim, but when I edit Julia files, then the shiftwidth is set to 8 and expandtab to false. I am not sure, why this happens. I am not even sure it because of julia-vim, but it's my best guess. I can manually change them, when I have a file open, or could also probably add an autocmd, but I would like to get to the bottom of this.
I am using Neovim v0.6.0, also tried v0.5.1.
I tried running Neovim with norc (nvim -u NORC), which gives shiftwidth=8 and noexpandtab, but does so by default for all the files, except for python files, where I get shiftwidth=4 and expandtab
I tried running Neovim with minimal config (the 4 lines written above), which produces the exact same results as running with full config, which means everything except Julia files has shiftwidth=4 and expandtab, and Julia has shiftwidth=8 and noexpandtab.
I tried running Neovim with minimal config and with --noplugin flag, but that didn't change anything. Maybe I have to do something more to disable plugins from loading?
I found in .../packer/start/julia-vim/ftplugin/julia.vim a line that contains
which resets the values of these options to a global value, but I don't know what this global value refers to. Is it the value in my config file or is it the default value for vim?
If I could provide any more information to help solve this, let me know.
The text was updated successfully, but these errors were encountered:
I have just pushed an update that removes shiftwidth and expandtab from the undo list. Indeed, we used to set them (like python does) but then they were left to user's preference, and still they remained in the undo.
I'm not sure of how exactly this could have produced the behavior you observed, but since that's the only place where those two options appeared I'm hoping that removing them could fix the issue.
I am new to vim/neovim so this might be my own mistake or misunderstanding.
I want to get indents with tabs expanded to spaces and have a width of 4 spaces.
In my
init.lua
I have setand it works most of the time when editing files with neovim, but when I edit Julia files, then the
shiftwidth
is set to 8 andexpandtab
to false. I am not sure, why this happens. I am not even sure it because ofjulia-vim
, but it's my best guess. I can manually change them, when I have a file open, or could also probably add an autocmd, but I would like to get to the bottom of this.I am using Neovim v0.6.0, also tried v0.5.1.
I tried running Neovim with norc (
nvim -u NORC
), which givesshiftwidth=8
andnoexpandtab
, but does so by default for all the files, except for python files, where I getshiftwidth=4
andexpandtab
I tried running Neovim with minimal config (the 4 lines written above), which produces the exact same results as running with full config, which means everything except Julia files has
shiftwidth=4
andexpandtab
, and Julia hasshiftwidth=8
andnoexpandtab
.I tried running Neovim with minimal config and with
--noplugin
flag, but that didn't change anything. Maybe I have to do something more to disable plugins from loading?I found in
.../packer/start/julia-vim/ftplugin/julia.vim
a line that containswhich resets the values of these options to a global value, but I don't know what this global value refers to. Is it the value in my config file or is it the default value for vim?
If I could provide any more information to help solve this, let me know.
The text was updated successfully, but these errors were encountered: