d-language-server / dls

A Language Server implementation for D
http://dls.dub.pm
106 stars 14 forks source link

DLS dscanner.ini dosen't reflect. #54

Closed Gaia0514 closed 5 years ago

Gaia0514 commented 5 years ago

I use DLS on neovim. I want to disable undocumented declaration how to apply dscanner.ini to DLS ??

LaurentTreguier commented 5 years ago

Normally, DLS uses dscanner.ini if it is at the root of the project. In fact, DLS uses dscanner.ini exactly to disable undocumented declaration warnings: https://github.com/d-language-server/dls/blob/master/dscanner.ini. If you put dscanner.ini at the root of your workspace, DLS should read it and apply it.

Gaia0514 commented 5 years ago

what do you mean of "root of the project" or "root of your workspace"?? I think you mean root isn't root user. you mean root of DLS project? I put ~/.dub/packages/dls-0.25.13/dls/dscanner.ini but It doesn't work.

LaurentTreguier commented 5 years ago

What I mean is this: When you use DLS, you probably open a folder in Neovim (nvim my/project/folder/path). dscanner.ini should then be inside my/project/folder/path. If you use Neovim on separate D files (nvim some_source_file.d), you can't use any dscanner.ini file with DLS.

Gaia0514 commented 5 years ago

oh!! I see!! Thank you so much. dscanner.ini work!!

Gaia0514 commented 5 years ago

hmmmm.... I think it is so tired to put always dscanner.ini file to each directory. How about changing this system?

LaurentTreguier commented 5 years ago

D-Scanner has a global configuration file. I'll try to use this file too; then $HOME/.config/dscanner/dscanner.ini should apply to any project.

Gaia0514 commented 5 years ago

ok! Thank you.