Hi NeoVIM users. How are you dealing with the formatting of the subfolders?
The issue:
How are you dealing with that? Not formatting via VIM?
Thanks in advance.
2 Likes
Note that the JuliaFormatter will prefer a lower-level tree’s .JuliaFormatter.toml, see the docs. It also stops searching for .JuliaFormatter.toml files when it sees a Project.toml. A more detailed discussion is here.
I am not sure why you didn’t put the Project.toml file in the root of your project though (maybe you’re doing a nested environment setup), but if you simply want your docs/make.jl formatted in some specific manner by JuliaFormatter, you can create a docs/.JuliaFormatter.toml, which can be an actual file or a symbolic link to the root file .JuliaFormatter.toml, depending on what you want.
Aside: I’m not sure what the GitHub issue link that you posted refers to. I use NeoVim too, and set up my Julia LSP as instructed here, and I actually can use .JuliaFormatter.toml files to control my formatting, but the issue says
but LS.jl never sees any of my toml files
which I think is wrong. It could be that the person who raised the issue forgot to put a Project.toml file in the project path, or forgot to initiate their project, or whatever, but it’s absurd that the language server does not see any toml file.