feat: Add Nim language server support via nimlangserver#1150
Open
zerone0x wants to merge 1 commit intooraios:mainfrom
Open
feat: Add Nim language server support via nimlangserver#1150zerone0x wants to merge 1 commit intooraios:mainfrom
zerone0x wants to merge 1 commit intooraios:mainfrom
Conversation
Adds support for Nim programming language using nimlangserver (https://github.com/nim-lang/langserver). - Add NimLanguageServer class in src/solidlsp/language_servers/nim_language_server.py - Register Language.NIM enum value with .nim and .nims file matchers - Add NIM to the language server factory - Create test repository with calculator and utils modules - Add basic integration tests for symbol finding and cross-file references - Update README.md, docs, CHANGELOG.md Resolves oraios#645 Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Contributor
Author
Sure, thanks for reminding. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the Nim programming language using nimlangserver, resolving #645.
Changes
src/solidlsp/language_servers/nim_language_server.pyNimLanguageServerclass usingnimlangserverexecutablenimlangserveravailability with a helpful error message on failureLanguage.NIM = "nim"to the enum inls_config.pywith.nimand.nimsfile matchers and factory integrationtest/resources/repos/nim/test_repo/src/calculator.nim: Arithmetic procedures (add, subtract, multiply, divide, factorial, power)src/utils.nim: String utilities (trim, startsWith, endsWith, split, join)main.nim: Entry point referencing both modulestest_repo.nimble: Project filetest/solidlsp/nim/test_nim_basic.pycalculator.addandutils.trimnimlangserveris not installedInstallation
Nim can be installed from https://nim-lang.org/install.html
Testing
Tests are skipped automatically when
nimlangserveris not installed: