mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/efmls-configs: Avoid spaces in language names (#563)
This commit is contained in:
parent
33cffcb0fd
commit
e704db3064
2 changed files with 7 additions and 5 deletions
|
@ -18,7 +18,9 @@ for kind in ["linters", "formatters"]:
|
||||||
with open(tool_path + "/" + kind + "/" + file) as f:
|
with open(tool_path + "/" + kind + "/" + file) as f:
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
if line.startswith("-- languages:"):
|
if line.startswith("-- languages:"):
|
||||||
languages = line.split(":")[1].strip().split(",")
|
languages = [
|
||||||
|
l.strip() for l in line.split(":")[1].strip().split(",")
|
||||||
|
]
|
||||||
break
|
break
|
||||||
tools[kind][tool_name] = languages
|
tools[kind][tool_name] = languages
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
],
|
],
|
||||||
"beautysh": [
|
"beautysh": [
|
||||||
"sh",
|
"sh",
|
||||||
" bash",
|
"bash",
|
||||||
" zsh",
|
"zsh",
|
||||||
" csh",
|
"csh",
|
||||||
" ksh"
|
"ksh"
|
||||||
],
|
],
|
||||||
"black": [
|
"black": [
|
||||||
"python"
|
"python"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue