LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Feature Request: Add Support for Taplo for TOML Files

Open I-AM-A-NOOB opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

Currently, the LSP packages does not include a Language Server for TOML files.

Describe the solution you'd like

Please publish a new package which based on the taplo library (https://github.com/tamasfe/taplo) to provide Language Server functionality for TOML files within Sublime Text.

Describe alternatives you've considered

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

Additional context

  • taplo: taplo is a TOML toolkit written in Rust that includes a parser, formatter, and analyzer. It provides comprehensive support for the TOML 1.0.0 specification and is actively maintained.

I-AM-A-NOOB avatar Aug 13 '24 02:08 I-AM-A-NOOB

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

https://github.com/jfcherng-sublime/ST-my-settings/blob/0146cc3e1bef21794d74962a073b4ab89c629a67/Packages/User/LSP.sublime-settings#L51-L55

jfcherng avatar Aug 13 '24 02:08 jfcherng

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

https://github.com/jfcherng-sublime/ST-my-settings/blob/0146cc3e1bef21794d74962a073b4ab89c629a67/Packages/User/LSP.sublime-settings#L51-L55

Before posting this, I installed taplo via scoop and Sublime Text throws NotADirectoryError after trying the same configuration as yours. So I turned to GitHub for help. So how did you install taplo?

I-AM-A-NOOB avatar Aug 13 '24 03:08 I-AM-A-NOOB

An alternative solution would be to update the document of sublime LSP on how taplo can be configured

jfcherng-sublime/ST-my-settings@0146cc3/Packages/User/LSP.sublime-settings#L51-L55

Before posting this, I installed taplo via scoop and Sublime Text throws NotADirectoryError after trying the same configuration as yours. So I turned to GitHub for help. So how did you install taplo?

I just download the exe file (e.g., Linux from https://github.com/tamasfe/taplo/releases/download/0.9.3/taplo-full-linux-x86_64.gz and Windows from https://github.com/tamasfe/taplo/releases/download/0.9.3/taplo-full-windows-x86_64.zip ) and make it foundable via PATH env.

Sublime Text throws NotADirectoryError

I can't figure out why a NotADirectoryError under any circumstance. A screenshot or full trackback message may help.

jfcherng avatar Aug 13 '24 03:08 jfcherng

image image I think it might caused by the unusual pattern which used by scoop to install apps. however executing taplo lsp stdio in the terminal can successfuly start the process.

I-AM-A-NOOB avatar Aug 13 '24 05:08 I-AM-A-NOOB

Provided by LSP-taplo helper package.

deathaxe avatar Jul 23 '25 17:07 deathaxe