GithubHelp home page GithubHelp logo

Comments (6)

leonardssh avatar leonardssh commented on July 27, 2024

The extension is written in such a way that it is updated according to the events that happen while you are in NeoVim. Probably when ALE Live linting is enabled, it opens a new buffer, which triggers an event that updates the RPC. This is the only explanation I can give you at the moment.

Can you tell me the steps you take to achieve this? I have never used ALE Live linting, and I would like to know how it works.

from coc-discord-rpc.

vsedov avatar vsedov commented on July 27, 2024

yeah sure - i mean i love this plugin so i don't mind if it can't be fixed : )
And your probably right , what it does is , while you type you have another buffer , which constantly gets updated such that say you have a syntax error , it will notify you in the quick fix list . Almost immediately .
Once you install ale , and add these settings into your init.vim . Hopefully you might be able to replicate it ?

let g:ale_list_window_size =  4
let g:ale_sign_column_always = 1
let g:ale_open_list = 1
let g:ale_linters = {
  \   'python': ['black','pylint''], "Some python linter of your choice here 
\}
let g:ale_set_loclist = 0
let g:ale_set_quickfix = 1
let g:ale_keep_list_window_open = 1
let g:ale_list_vertical = 0
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 1
let g:ale_lint_on_insert_leave = 0
let g:ale_lint_on_enter = 0

out of curiosity is there a way that discord rpc can avoid certain types of buffers or file types ?

for example
the response from

:echo &filetype 

is qf - for the quick fix window and rpc could just ignore that file type ? , though im not sure if that would work if im honest >.<

Hope this helps a bit .

from coc-discord-rpc.

leonardssh avatar leonardssh commented on July 27, 2024

out of curiosity is there a way that discord rpc can avoid certain types of buffers or file types ?

Absolutely

If you say that :echo &filetype is qf, I can put an IF to return the current RPC state, and ignore the new buffer from ALE Live linting.

Can you add me on discord Leonard#6666, for help me with the tests?

from coc-discord-rpc.

vsedov avatar vsedov commented on July 27, 2024

Yep will do, cheers .

from coc-discord-rpc.

leonardssh avatar leonardssh commented on July 27, 2024

Can you tell me your discord id? I've 999+ friend requests 😂😂

from coc-discord-rpc.

vsedov avatar vsedov commented on July 27, 2024

Oh my , sorry about that : AloofPolo#9428

from coc-discord-rpc.

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.