Neovim plugin for the Fe programming language with:
- Syntax highlighting via Tree-sitter
- Indentation support
- LSP integration for go-to-definition and more
feCLI (includes the language server) If you haven't already, install it to yourPATH:
cargo install --git https://github.com/argotorg/fe.git fe-
Neovim 0.9.0 or later
-
GCC or Clang For compiling the tree-sitter parser (done automatically on first run)
- Copy this directory to:
cp -r ./ ~/.local/share/nvim/site/pack/plugins/start/nvim-fe- Add to
init.lua:
require("nvim_fe").setup()Add to your packer config:
use({
"https://github.com/fe-lang/nvim-fe",
config = function()
require("nvim_fe").setup()
end,
}){
"https://github.com/fe-lang/nvim-fe",
config = function()
require("nvim_fe").setup()
end,
}-
Check that the parser was compiled:
:lua print(vim.fn.filereadable(vim.fn.stdpath("data") .. "/nvim-fe-runtime/parser/fe.so"))
Should print
1. If not, ensuregccorclangis installed and re-run:lua require("nvim_fe").setup(). -
Check queries:
:lua print(vim.inspect(vim.api.nvim_get_runtime_file("queries/fe/*.scm", true)))Ensure
fequeries are loaded.
-
Ensure
feis installed and available in yourPATH. -
Check the LSP client:
:LspInfo
Confirm the Fe LSP client is listed and attached.
Delete the runtime directories to force reinstallation:
rm -rf ~/.local/share/nvim/tree-sitter-fe
rm -rf ~/.local/share/nvim/nvim-fe-runtimeRestart Neovim and the plugin will reinitialize.