Code Monkey home page Code Monkey logo

Comments (5)

hokorobi avatar hokorobi commented on July 24, 2024 1

Thank you, it is fixed.

from ddu-filter-converter_hl_dir.

Shougo avatar Shougo commented on July 24, 2024

Hi. I have tested the config and it works for me in Windows.

OK. It is reproduced only Vim. Not neovim.

from ddu-filter-converter_hl_dir.

Shougo avatar Shougo commented on July 24, 2024

You need to create the minimal vimrc.

from ddu-filter-converter_hl_dir.

Shougo avatar Shougo commented on July 24, 2024
diff --git a/denops/@ddu-filters/converter_hl_dir.ts b/denops/@ddu-filters/converter_hl_dir.ts
index 561d273..3257342 100644
--- a/denops/@ddu-filters/converter_hl_dir.ts
+++ b/denops/@ddu-filters/converter_hl_dir.ts
@@ -33,7 +33,8 @@ export class Filter extends BaseFilter<Params> {
       const { word, display = word, highlights = [] } = item;
 
       // Already highlighted
-      if (highlights.some((item) => item.name === HIGHLIGHT_NAME)) {
+      const highlightName = `${HIGHLIGHT_NAME}_0`;
+      if (highlights.some((item) => item.name === highlightName)) {
         return item;
       }
 
@@ -48,7 +49,7 @@ export class Filter extends BaseFilter<Params> {
         return {
           col: pv.col + width,
           list: pv.list.concat([{
-            name: HIGHLIGHT_NAME,
+            name: `${HIGHLIGHT_NAME}_${i}`,
             col: pv.col,
             width,
             hl_group: hlGroup[i % hlGroup.length],

It fixes the problem.

from ddu-filter-converter_hl_dir.

kyoh86 avatar kyoh86 commented on July 24, 2024

@Shougo Thanks so much!

from ddu-filter-converter_hl_dir.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.