# How can I import my JuliaFormatter.jl config to LanguageServer.jl?

**URL:** <https://discourse.julialang.org/t/how-can-i-import-my-juliaformatter-jl-config-to-languageserver-jl/114869>\
**Category:** Tooling\
**Tags:** question\
**Created:** [May 28, 2024, 7:27pm UTC](https://discourse.julialang.org/t/how-can-i-import-my-juliaformatter-jl-config-to-languageserver-jl/114869 "2024-05-28T19:27:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svretina](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/svretina/32/206157_2.png) [@svretina](https://discourse.julialang.org/u/svretina)\
**Post date:** [May 28, 2024, 7:27pm UTC](https://discourse.julialang.org/t/how-can-i-import-my-juliaformatter-jl-config-to-languageserver-jl/114869/1 "2024-05-28T19:27:05Z")

</div>

I am trying to make the formatting onsave work for doom emacs after upgrading it to the latest version. At this moment the language server is doing the formatting but I miss my old config that I used with `JuliaFormatter.jl`. I have a `.JuliaFormatter.toml` in my parent dir of my package but it seems that the `LanguageServer,jl` is not seeing this.

It looks like this is an intended behaviour according to [this](https://github.com/julia-vscode/LanguageServer.jl/issues/1115). I cannot find any information about a config file in the `LanguageServer.jl` docs for formatting.

How should I pass my formatting config options to `LanguageServer.jl`? Is there a way for `LanguageServer.jl` to read my `.JuliaFormatter.toml`?

---

<div class="post-metadata">

**Author:** ![svretina](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/svretina/32/206157_2.png) [@svretina](https://discourse.julialang.org/u/svretina)\
**Post date:** [May 29, 2024, 9:27am UTC](https://discourse.julialang.org/t/how-can-i-import-my-juliaformatter-jl-config-to-languageserver-jl/114869/2 "2024-05-29T09:27:24Z")

</div>

I had the `.JuliaFormatter.toml` in the parent directory of my package. Copying it into the `/src` folder alongside my code fixed my issue.

This seems to be maybe a bug of `LanguageServer.jl` because they state that they search up the directories to find a `.JuliaFormatter.toml`.
