A language server for FASTBuild
- Syntax checking
- Diagnostics
- Semantic tokens
- Hover
- Autocompletion
- Go to definition
- Find references
- Dynamic type checking
- Rename
- Code actions/suggestions
This is highly experimental project
cargo install --git https://github.com/pinbraerts/fastbuild-lsp
Using nvim-lspconfig
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 { }