From d179e4d0e445765ef45a83a2c9f23a37b6680e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Tue, 18 Feb 2025 00:12:49 -0300 Subject: [PATCH] Added Markdown LSP support. Revert command palette fuzzy match. --- bin/assets/plugins/lspclient.json | 7 +++++++ src/tools/ecode/commandpalette.cpp | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/assets/plugins/lspclient.json b/bin/assets/plugins/lspclient.json index 7864e827d..e86d95d4a 100644 --- a/bin/assets/plugins/lspclient.json +++ b/bin/assets/plugins/lspclient.json @@ -390,6 +390,13 @@ "url": "https://github.com/AdaCore/ada_language_server", "command": "ada_language_server", "file_patterns": ["%.adb$", "%.ads$", "%.ada$"] + }, + { + "language": "markdown", + "name": "md-lsp", + "url": "https://github.com/matkrin/md-lsp", + "command": "md-lsp", + "file_patterns": ["%.md$"] } ] } diff --git a/src/tools/ecode/commandpalette.cpp b/src/tools/ecode/commandpalette.cpp index acd576745..ae987d0e4 100644 --- a/src/tools/ecode/commandpalette.cpp +++ b/src/tools/ecode/commandpalette.cpp @@ -75,8 +75,8 @@ CommandPalette::fuzzyMatch( const std::vector>& cmdPale std::vector> ret; for ( size_t i = 0; i < cmdPalette.size(); i++ ) { - int matchName = String::fuzzyMatch( cmdPalette[i][0], match, true ); - int matchKeybind = String::fuzzyMatch( cmdPalette[i][2], match, true ); + int matchName = String::fuzzyMatch( cmdPalette[i][0], match ); + int matchKeybind = String::fuzzyMatch( cmdPalette[i][2], match ); matchesMap.insert( { std::max( matchName, matchKeybind ), i } ); } for ( auto& res : matchesMap ) {