WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

humorless/auto-conjure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-conjure

A Neovim plugin which enables Conjure to automatically switch when editing cljs files

Setup

Config init.vim with following content and then :PlugInstall

" install with vim-plug
call plug#begin(stdpath('data') . '/plugged')
...
Plug 'humorless/auto-conjure'
...
call plug#end()

" register the necessary VimScript Function
function! AutoConjureSelect()
  let shadow_build_id = luaeval("require('auto-conjure').shadow_build_id()")
  let cmd='ConjureShadowSelect ' . shadow_build_id
  execute cmd
endfunction
command! AutoConjureSelect call AutoConjureSelect()
autocmd BufReadPost *.cljs :AutoConjureSelect

Development

Execute the expression inside .nvim.fnl to make the package.path variable correct.

Trouble shooting

When you are not sure if this plugin is successfully installed, try this command in your Cljs project:

:lua print(require('auto-conjure').shadow_build_id())

About

A Neovim plugin which enables Conjure to automatically switch when editing cljs files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published