Closed ldmsh closed 1 year ago
nyoom-module-p!
only compiles the code under it if the module exists. In this case, typescriptreact
isn't a valid module (yet) so that code doesn't actually compile. For now I'd omit the nyoom-module-p!
and write it as follows:
;; fnl/modules/checkers/diagnostics/config.fnl
(table.insert null-ls-sources
null-ls.builtins.formatting.prettier))
;; fnl/modules/tools/mason/config.fnl
(nyoom-module-p! format
(do
(table.insert mason-tools :typescript-language-server))
(table.insert mason-tools :prettier))
Thanks again Shaun, works exactly as expected, really appreciate it.
This isn't really an issue with the planned
web
module, just wondering if there's a better approach to this in the meantime.After adding
typescript-language-server
tofnl/modules/tools/lsp/config.fnl
:Trying to get
+onsave
formatting to work by naively copyingnull-ls.builtIns
used for other languages:Have done the same for mason's config:
Installed
prettier
via:Mason
ui, and also added vianpm install -g prettier
though keep seeing:Format request failed, no matching language servers
.tsserver
LSP is working as expected, it's a great experience in nyoom, wow. Just the formatting which I can't seem to figure out.Thanks