diff --git a/README.md b/README.md index 67147c6..efc4824 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,25 @@ make test # or: lua src/main.lua --test ``` -### Mason Installation (Neovim) +### Neovim + Mason (Recommended) -For Neovim users, install via [mason.nvim](https://github.com/mason-org/mason.nvim) using a custom registry. See the [`tia-lsp.nvim` README](https://gitea.l-tech.rs/lazar/tia-lsp.nvim) for full setup instructions. +The recommended way is via [mason.nvim](https://github.com/mason-org/mason.nvim) using the +[`tia-mason-registry`](https://gitea.l-tech.rs/lazar/tia-mason-registry). See the +[`tia-lsp.nvim` README](https://gitea.l-tech.rs/lazar/tia-lsp.nvim) for full step-by-step instructions. -Quick summary: -1. Add the `tia-mason-registry` as a lazy.nvim plugin -2. Register it with mason: `registries = { "file:~/.local/share/nvim/lazy/tia-mason-registry", "github:mason-org/mason-registry" }` -3. `:MasonInstall tia-lsp` +### Manual Setup + +```bash +# 1. Clone this repository +git clone --depth 1 https://gitea.l-tech.rs/lazar/tia-lsp.git ~/tia-lsp + +# 2. Compile the tree-sitter parser +cc -fPIC -I ~/tia-lsp/src/tree_sitter -c ~/tia-lsp/src/parser.c -o ~/tia-lsp/parser.o +cc -shared ~/tia-lsp/parser.o -o ~/tia-lsp/parser.so + +# 3. Start the server (or configure your editor to run this) +lua ~/tia-lsp/src/main.lua +``` ## External UDT Support