Git Product home page Git Product logo

Comments (4)

hrsh7th avatar hrsh7th commented on June 19, 2024

Probably, it means should handle the / as a trigger character.

(I couldn't get the str/index-of item from vim-iced...)

Could you try it?

function! s:datermine(context) abort
  let l:offset = compe#pattern#get_offset(a:context, '[[:alnum:]!$&*\-_=+:<>./?]\+$')
  if l:offset > 0
    return {
    \   'keyword_pattern_offset': l:offset,
    \   'trigger_character_offset': index(['/'], a:context.before_char) >= 0 ? a:context.col : -1
    \ }
  end
  return {}
endfunction

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

If you want to debug more easily, I will add the debug API for custom source.

from nvim-compe.

kkharji avatar kkharji commented on June 19, 2024

Could you try it?

Awesome will do that and report back.

debug API

Definitely, I plan to develop another source that would integrate some sort of english dictionary with definitions. So debug helpers willllll be extremely valued.

from nvim-compe.

kkharji avatar kkharji commented on June 19, 2024

Awesome it worked very well thanks. I didn't expected to be something wrong with the determine function.

@hrsh7th I just noticed that you didn't get str/ completion, sorry I forgot to mention that you must first require it (ns project.core (:require [clojure.string :as str])) in order to get it working.

from nvim-compe.

Related Issues (20)

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.