Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Async Clojure Completion for various (n)vim completion engines

NotificationsYou must be signed in to change notification settings

clojure-vim/async-clj-omni

Repository files navigation

Provides async clojure completion for:

Trying to use Fireplace's omnicompletion with auto-complete is painfullyslow at times, making typing blocked. Using this module will be faster asit does not block, it runs in it's own thread.

Installation

CIDER

For this plugin to work, your nREPL must have CIDER available. You can install it forlein andboot.

Deoplete

Follow the install instructions fordeoplete.nvim. Then just include withyour favourite plugin manager, mine isvim-plug

Plug'clojure-vim/async-clj-omni'

You also need to include the following line in your init.vim:

calldeoplete#custom#option('keyword_patterns', {'clojure':'[\w!$%&*+/:<=>?@\^_~\-\.#]*'})

Nvim Completion Manager 2

  1. Follow the install instructions forncm2.
  2. Add this plugin using your favourite plugin manager,
    Plug'clojure-vim/async-clj-omni'

asyncomplete.vim

Registration:

au User asyncomplete_setup call asyncomplete#register_source({    \ 'name': 'async_clj_omni',    \ 'whitelist': ['clojure'],    \ 'completor': function('async_clj_omni#sources#complete'),    \ })

coc.nvim

  1. Follow the install instructions forcoc.nvim.
  2. Add this plugin using your favourite plugin manager,
    Plug'clojure-vim/async-clj-omni'

nvim-cmp

  1. Follow the install instructions fornvim-cmp.
  2. Add{ name = 'async_clj_omni' }, a complete example:
    cmp.setup({sources= {    {name='async_clj_omni'},  }})

Developing

Deoplete

A few snippets and tidbits for development:

:calldeoplete#custom#set('async_clj','debug_enabled',1):calldeoplete#enable_logging("DEBUG","/tmp/deopletelog")

Then you can this command to watch debug statements:

$ tail -f /tmp/deopletelog

Debug statements can be made in the source via:

self.debug(msg)

Nvim Completion Manager

NVIM_PYTHON_LOG_FILE=logfile NVIM_PYTHON_LOG_LEVEL=DEBUG nvim

FAQ

  1. Why do you includenrepl-python-client via submodule.

    I made the decision that it was more complex to have users try and manage aversion ofnrepl-python-client, than it was for them to "just" have itincluded. In an ideal world, I'd be able to use virtualenv with thePython/Neovim, but this isn't currently a realistic expectation for allusers to be able to use.

About

Async Clojure Completion for various (n)vim completion engines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp