Example configurations [QLG4]
- Kento Okura, with contributions from Jon Sterling
Users of other text editors are encouraged to contribute to this section.
Neovim configuration [LN6D]
Since Neovim version 0.11, you can configure language servers by simply adding the following snippet to your configuration:
vim.filetype.add({ extension = { tree = "forester" } })
vim.lsp.config["forester-lsp"] = {
cmd = { "forester", "lsp"},
filetypes = { "forester" },
}
vim.lsp.enable("forester-lsp")For a more complete configuration that includes keybinds to various features, you can use this template as a starting point.
If you are not yet using version 0.11, please refer to the documentation of nvim-lspconfig
Helix configuration [6Y7J]
- Kento Okura, with contributions from Jon Sterling
You must add the following to languages.toml in your Helix configuration directory, following the documentation.
[language-server.forester-lsp] command = "forester" args = ["lsp"] [[language]] name = "forester" scope = "source.forester" file-types = ["tree"] comment-tokens = "%" language-servers = [ "forester-lsp" ]