Skip to content

Latest commit

 

History

History
 
 

lsp

Civet Language Server

This Language Server works for .civet files.

Features

  • Syntax Highlighting
  • Go to definition
  • Find all references
  • Completions
  • Comment/Uncomment
  • Symbols outline
  • Diagnostics
  • Custom Transpiler Plugins

Plugins

Custom transpilers can be added in your host project root folder under ${projectRoot}/.civet/name-plugin.mjs.

Ex.

import Hera from "@danielx/hera"
const { compile: heraCompile } = Hera

export default {
  transpilers: [{
    extension: ".hera",
    target: ".cjs",
    compile: function (path, source) {
      const code = heraCompile(source, {
        filename: path,
      })

      return {
        code
      }
    }
  }],
}