Fork me on GitHub
#vim
<
2019-08-18
>
mikepjb15:08:30

Can fireplace jump to java jdk source code in the same.way that cider can?

mikepjb15:08:56

Also does anyone know how to remap FireplaceDjump? Ideally it'd be called via gd rather than [C-D

dominicm16:08:10

nmap <Plug>Fireplace DJumpw

mikepjb18:08:49

This remapping does not seem to work on neovim unfortunately I tried au Syntax Clojure nnoremap gd <Plug>Fireplace Djumpw too but to no avail

mikepjb18:08:06

This works

augroup clojure
  au Syntax clojure nmap <buffer> gd <Plug>FireplaceDjump
augroup END

dominicm19:08:16

Sorry, mobile typo

dominicm19:08:28

I prefer the ftplugin file personally

mikepjb21:08:12

What is the ftplugin file? I don't see one in the fireplace project

dominicm06:08:43

Just generally using an ftplugin file for clojure-specific stuff. Rather than an autogroup.

dominicm16:08:47

It can If you have the jdk sources on the classpath

mikepjb16:08:11

Thanks @dominicm is there a standard/easy way of configuring the classpath?

mikepjb18:08:06
replied to a thread:nmap <Plug>Fireplace DJumpw

This works

augroup clojure
  au Syntax clojure nmap <buffer> gd <Plug>FireplaceDjump
augroup END

dharrigan19:08:36

I have this in my neovim .vimrc call deoplete#custom#option('keyword_patterns', {'clojure': '[\w!$%&+/:<=>?@^~-.#]_'})

dharrigan19:08:54

yet, when I launch neovim to edit a clojure file, I get huge error dump

dharrigan19:08:03

ultimately about re.error: bad character range ~-. at position 16

dharrigan19:08:35

anyone else see that?

dominicm19:08:10

I'm guessing that's not a valid python regex. Can't guess why, maybe the ^

dharrigan19:08:48

I think I fixed it

dharrigan19:08:58

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