Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 928 Bytes

README.md

File metadata and controls

46 lines (36 loc) · 928 Bytes

fastbuild-lsp

A language server for FASTBuild

Features

  • Syntax checking
  • Diagnostics
  • Semantic tokens
  • Hover
  • Autocompletion
  • Go to definition
  • Find references
  • Dynamic type checking
  • Rename
  • Code actions/suggestions

Installation

This is highly experimental project

cargo install --git https://github.com/pinbraerts/fastbuild-lsp

Usage

local lspconfig = require('lspconfig')
local configs = require('lspconfig.configs')
if not configs.fastbuild_lsp then
  configs.fastbuild_lsp = {
    default_config = {
      cmd = { 'fastbuild-lsp' },
      filetypes = { 'fastbuild' },
      root_dir = lspconfig.util.find_git_ancestor,
      settings = {},
    },
  }
end
lspconfig.fastbuild_lsp.setup { }