On Thursday, 23 April 2015 at 18:50:54 UTC, Idan Arye wrote:
GitHub repo: https://github.com/idanarye/vim-dutyl
vim.org page:
http://www.vim.org/scripts/script.php?script_id=5003
Now Dutyl can use dfmt to indent and/or format D code.
Formatting and indentation is done using Vim's regular
operators(gq and =).
Hey, glad to have found Dutyl, it sounds promising.
However, it doesn't seem to be doing anything..
I made sure I installed DCD (via `brew install dcd`, so dcd is in
PATH) and to run
:let g:dutyl_stdImportPaths=['/Library/D/dmd/src']
(MacOS system)
and
:DUDCDstartServer
from within vim.
There's a bunch of other stuff in that directory aside from the
header files:
---
/Library/D/dmd/src>ls *
VERSION
dmd:
access.d dmangle.d intrange.h
scanmach.d
aggregate.ddmodule.d irstate.d
scanmscoff.d
aggregate.hdmsc.d irstate.h scanomf.d
aliasthis.ddoc.d json.d scope.h
aliasthis.hdscope.d json.h
sideeffect.d
apply.ddstruct.d lexer.d
statement.d
argtypes.d dsymbol.d lib.d
statement.h
arrayop.d dsymbol.h libelf.d
statementsem.d
arraytypes.d dtemplate.dlibmach.d
staticassert.d
arraytypes.h dversion.d libmscoff.d
staticassert.h
attrib.d e2ir.c libomf.d target.d
attrib.h eh.c link.d target.h
backendentity.d mars.d
template.h
backendlicense.txt enum.h mars.h tk
boostlicense.txt errors.d module.h tk.c
builtin.d errors.h mtype.dtocsym.d
canthrow.d escape.d mtype.htoctype.d
checkwhitespace.d expression.d nogc.d
tocvdebug.c
clone.dexpression.h nspace.d todt.d
complex.d func.d nspace.h
toelfdebug.d
complex_t.hglobals.d objc.d toir.d
cond.d globals.h objc.h toir.h
cond.h glue.d objc_glue.ctokens.d
constfold.dgluelayer.dobjc_glue_stubs.c tokens.h
cppmangle.dhdrgen.d objc_stubs.d toobj.c
ctfe.h hdrgen.h opover.d traits.d
ctfeexpr.d iasm.c optimize.d typinf.d
dcast.didentifier.d osmodel.makutf.d
dclass.d identifier.h parse.dutils.d
declaration.d idgen.dposix.mak vcbuild
declaration.h impcnvtab.dproject.ddoc version.h
delegatize.d imphint.d readme.txt visitor.d
denum.dimport.h root visitor.h
dimport.d init.d s2ir.c win32.mak
dinifile.d init.h safe.d win64.mak
dinterpret.d inline.d sapply.d
dmacro.d intrange.d scanelf.d
druntime:
CONTRIBUTING.md changelog.ddimport project.ddoc
win64.mak
LICENSE circle.yml mak src
README.md circleci.sh osmodel.mak test
benchmark def posix.mak win32.mak
phobos:
CONTRIBUTING.md changelog.ddetc posix.mak
unittest.d
LICENSE_1_0.txt circle.yml index.d project.ddoc
win32.mak
README.md circleci.sh osmodel.mak std
win64.mak
---
However, it doesn't seem to show any autocompletions.. Anything
else I am missing?