diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 3653819a9b..1fbc9d5d67 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -39,6 +39,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [cobol_ls](#cobol_ls) - [codeqlls](#codeqlls) - [coffeesense](#coffeesense) +- [contextive](#contextive) - [coq_lsp](#coq_lsp) - [crystalline](#crystalline) - [csharp_ls](#csharp_ls) @@ -1838,6 +1839,37 @@ require'lspconfig'.coffeesense.setup{} ``` +## contextive + +https://github.com/dev-cycles/contextive + +Language Server for Contextive. + +Contextive allows you to define terms in a central file and provides auto-completion suggestions and hover panels for these terms wherever they're used. + +To install the language server, you need to download the appropriate [GitHub release asset](https://github.com/dev-cycles/contextive/releases/) for your operating system and architecture. + +After the download unzip the Contextive.LanguageServer binary and copy the file into a folder that is included in your system's PATH. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.contextive.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "Contextive.LanguageServer" } + ``` + - `root_dir` : + ```lua + see source file + ``` + + ## coq_lsp https://github.com/ejgallego/coq-lsp/ diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 3653819a9b..1fbc9d5d67 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -39,6 +39,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [cobol_ls](#cobol_ls) - [codeqlls](#codeqlls) - [coffeesense](#coffeesense) +- [contextive](#contextive) - [coq_lsp](#coq_lsp) - [crystalline](#crystalline) - [csharp_ls](#csharp_ls) @@ -1838,6 +1839,37 @@ require'lspconfig'.coffeesense.setup{} ``` +## contextive + +https://github.com/dev-cycles/contextive + +Language Server for Contextive. + +Contextive allows you to define terms in a central file and provides auto-completion suggestions and hover panels for these terms wherever they're used. + +To install the language server, you need to download the appropriate [GitHub release asset](https://github.com/dev-cycles/contextive/releases/) for your operating system and architecture. + +After the download unzip the Contextive.LanguageServer binary and copy the file into a folder that is included in your system's PATH. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.contextive.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "Contextive.LanguageServer" } + ``` + - `root_dir` : + ```lua + see source file + ``` + + ## coq_lsp https://github.com/ejgallego/coq-lsp/ diff --git a/lua/lspconfig/server_configurations/contextive.lua b/lua/lspconfig/server_configurations/contextive.lua new file mode 100644 index 0000000000..b05309d8f5 --- /dev/null +++ b/lua/lspconfig/server_configurations/contextive.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'Contextive.LanguageServer' }, + root_dir = util.root_pattern('.contextive', '.git'), + }, + docs = { + description = [[ +https://github.com/dev-cycles/contextive + +Language Server for Contextive. + +Contextive allows you to define terms in a central file and provides auto-completion suggestions and hover panels for these terms wherever they're used. + +To install the language server, you need to download the appropriate [GitHub release asset](https://github.com/dev-cycles/contextive/releases/) for your operating system and architecture. + +After the download unzip the Contextive.LanguageServer binary and copy the file into a folder that is included in your system's PATH. +]], + }, +}