Open FelipeLema opened 2 years ago
This is by design in response to people having issues determining different types of schemes I think. You can set :let g:conjure#filetype_suffixes#scheme = v:null
to disable the scheme filtering which defaults to ["scm"]
.
See :h g:conjure#filetype_suffixes#scheme` for more information. I hope this helps!
I tried your recommendation without luck
E5108: Error executing lua [string ":lua"]:1: Conjure client '' doesn't support function: connect
stack traceback:
[C]: in function 'connect-command'
[string ":lua"]:1: in main chunk
any other suggestions? can I manually tell Conjure like let b:conjure_client = 'scheme'
?
I think this is just a config thing 🤔 I'll take another look, sorry for the issue!
Oh no I realised I gave the wrong advice! Maybe it's too late now, but I think it should be :let g:conjure#filetype_suffixes#scheme = v:false
, not v:null
. The null
is overridden with the default but the false is not because null
becomes nil
in Lua which is just gone, it doesn't actually exist, it unsets the key.
Added this note to :help conjure
too.
still doesn't work. even adding a filetype=scheme.guile
entry in the file to ensure the correct filetype (see :help modeline
) does not help
I have the following, somewhat easy to reproduce situation
somefile.scm
with nvim (file has a proper#!/usr/bin/guile -s
as first line, has executable permisssions,ft
isscheme.guile
):ConjureConncect
somefile.scm
tosomefile
somefile
ft
isscheme.guile
:ConjureConnect
It seems that detection does not work with
filetype
(ft
) but rather the filename extension. I'd suggest to use justfiletype
as primary source-of-truth or at least not error out when file has no file extension