Emacs setup
I’m trying to use the purescript-language-server
and I’m having trouble working out how to set language server settings:
Nvim, coc.nvim:
"languageserver" : {
"purescript" : {
"command" : "purescript-language-server" ,
"args" : [ "--stdio" ],
"filetypes" : [ "purescript" ],
"trace.server" : "off" ,
"rootPatterns" : [ "bower.json" , "psc-package.json" , "spago.dhall" ],
"settings" : {
"purescript" : {
"addSpagoSources" : true,
"addNpmPath" : true // Set to true if using a local purty install for formatting
// etc
}
}
}
}
Solution:
( lsp-register-custom-settings ' (( "purescript.addSpagoSources" t t )
( "purescript.addNpmPath" t t )))
My site is free of ads and trackers. Was this post helpful to you? Why not
Reference:
LSP Mode - LSP support for Emacs