Add CodeMirror extension to display find match count in the editor. (#390)

This commit is contained in:
winit
2026-02-13 04:57:18 +05:30
committed by GitHub
parent 52732e12ec
commit 9e1a11de0b
3 changed files with 159 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ import type { TwigCompletionOption } from './twig/completion';
import { twig } from './twig/extension';
import { pathParametersPlugin } from './twig/pathParameters';
import { url } from './url/extension';
import { searchMatchCount } from './searchMatchCount';
export const syntaxHighlightStyle = HighlightStyle.define([
{
@@ -256,6 +257,7 @@ export const readonlyExtensions = [
export const multiLineExtensions = ({ hideGutter }: { hideGutter?: boolean }) => [
search({ top: true }),
searchMatchCount(),
hideGutter
? []
: [