Skip to content

Commit

Permalink
Changed treesitter setting names
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Jun 30, 2024
1 parent 3fd8ec4 commit dbd727d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/text/custom_treesitter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ proc loadLanguageDynamically*(languageId: string, config: JsonNode): Future[Opti
else:
"so"

let dllPath = if config.hasKey(fileExtension):
config[fileExtension].getStr
let dllPath = if config.hasKey("path"):
config["path"].getStr
else:
fmt"./languages/{languageId}.{fileExtension}"

Expand Down
2 changes: 1 addition & 1 deletion src/text/text_document.nim
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ proc initTreesitter*(self: TextDocument): Future[void] {.async.} =
if self.languageId == "":
return

let config = self.configProvider.getValue("editor.text.treesitter." & self.languageId, newJObject())
let config = self.configProvider.getValue("treesitter." & self.languageId, newJObject())
var language = await loadLanguage(self.languageId, config)

if language.isNone:
Expand Down

0 comments on commit dbd727d

Please sign in to comment.