Skip to content

Commit

Permalink
Added Markdown LSP support.
Browse files Browse the repository at this point in the history
Revert command palette fuzzy match.
  • Loading branch information
SpartanJ committed Feb 18, 2025
1 parent e86d92d commit d179e4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions bin/assets/plugins/lspclient.json
Original file line number Diff line number Diff line change
Expand Up @@ -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$"]
}
]
}
4 changes: 2 additions & 2 deletions src/tools/ecode/commandpalette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ CommandPalette::fuzzyMatch( const std::vector<std::vector<std::string>>& cmdPale
std::vector<std::vector<std::string>> 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 ) {
Expand Down

0 comments on commit d179e4d

Please sign in to comment.