From e90591f08fcefdf5344698ec6deb340f1e60b06b Mon Sep 17 00:00:00 2001 From: Akseli Date: Mon, 22 Jul 2024 02:07:37 +0300 Subject: README.md: Add Kate config Adds simple example config for Kate text editor: https://kate-editor.org/ This is the one I use and it seems to work well. I also wanted to mention the `src` folder separately. --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index 8bcd2db..4f9a6ec 100644 --- a/README.md +++ b/README.md @@ -231,3 +231,55 @@ Configure the plugin in micro's settings.json: "lsp.server": "c=clangd,go=gopls,odin=ols" } ``` +### Kate + +First, make sure you have the LSP plugin enabled. Then, you can find LSP settings for Kate in Settings -> Configure Kate -> LSP Client -> User Server Settings. + +You may have to set the folders for your Odin home path directly, like in the following example: +```json +{ + "servers": { + "odin": { + "command": [ + "ols" + ], + "filetypes": [ + "odin" + ], + "url": "https://github.com/DanielGavin/ols", + "root": "%{Project:NativePath}", + "highlightingModeRegex": "^Odin$", + "initializationOptions": { + "collections": [ + { + "name": "core", + "path": "/path/to/Odin/core" + }, + { + "name": "vendor", + "path": "/path/to/Odin/vendor" + }, + { + "name": "shared", + "path": "/path/to/Odin/shared" + }, + { + "name": "src", // If your project has src-collection in root folder, + "path": "src" // this will add it as a collection + }, + { + "name": "collection_a", + "path": "/path/to/collection_a" + } + ], + "odin_command": "path/to/Odin", + "verbose": true, + "enable_document_symbols": true, + "enable_hover": true, + } + } + } +} +``` +Kate can infer inlay hints on its own when enabled in LSP settings, so enabling it separately in the server config +can cause some weird behavior. -- cgit v1.2.3