Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread Tilo Schwarz
Thank you all for your replies, now I have to digest it ...

(I think what most "normal" users would expect: After plugin installation,
vim "just finds" the new plugin after restart.)

Tilo


On Sun, Mar 19, 2017 at 1:10 PM ben...@gmail.com  wrote:

> AFAIK it currently does not.  And I agree, it would be a better user
> experience if that were the case.
>
> On Sun, Mar 19, 2017 at 4:06 PM, Bjørn Forsman 
> wrote:
> > On 19 March 2017 at 20:50, ben...@gmail.com  wrote:
> >> That results in just a `vim` executable that does not load any user
> >> .vimrc at startup, and none of the other binaries like
> >> gvim/xxd/vimdiff.  What I'm after (and what I suspect most new users
> >> expect to find) is something like you would get if you installed vim
> >> and some plugins in a traditional linux distribution.
> >
> > Does vim pick up plugins installed in profiles? If not, we should add
> > that (IMHO). "nix-env -i vim vim-plugin-X" should work.
> >
> > Best regards,
> > Bjørn Forsman
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-- 

Best regards / Viele Grüße,

Tilo Schwarz
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread ben...@gmail.com
AFAIK it currently does not.  And I agree, it would be a better user
experience if that were the case.

On Sun, Mar 19, 2017 at 4:06 PM, Bjørn Forsman  wrote:
> On 19 March 2017 at 20:50, ben...@gmail.com  wrote:
>> That results in just a `vim` executable that does not load any user
>> .vimrc at startup, and none of the other binaries like
>> gvim/xxd/vimdiff.  What I'm after (and what I suspect most new users
>> expect to find) is something like you would get if you installed vim
>> and some plugins in a traditional linux distribution.
>
> Does vim pick up plugins installed in profiles? If not, we should add
> that (IMHO). "nix-env -i vim vim-plugin-X" should work.
>
> Best regards,
> Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread Bjørn Forsman
On 19 March 2017 at 20:50, ben...@gmail.com  wrote:
> That results in just a `vim` executable that does not load any user
> .vimrc at startup, and none of the other binaries like
> gvim/xxd/vimdiff.  What I'm after (and what I suspect most new users
> expect to find) is something like you would get if you installed vim
> and some plugins in a traditional linux distribution.

Does vim pick up plugins installed in profiles? If not, we should add
that (IMHO). "nix-env -i vim vim-plugin-X" should work.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread Vladimír Čunát
On 03/19/2017 08:33 PM, ben...@gmail.com wrote:
> I keep wanting vim_configurable to produce a "normal" vim package
> (including executables for gvim, xxd, vimdiff, etc) that has no
> special behaviors other than having various plugins installed, but
> there does not seem to be an easy way to accomplish that.

Looking at the code, it should work to just omit the `customRC` attribute.



smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread ben...@gmail.com
Ha, you beat me to the post by like ten seconds!  I see you use the
same trick with sourcing ~/.vimrc in vim_configurable - now I am
wondering, does anybody out there use it the way it appears it's
intended to be used?

I keep wanting vim_configurable to produce a "normal" vim package
(including executables for gvim, xxd, vimdiff, etc) that has no
special behaviors other than having various plugins installed, but
there does not seem to be an easy way to accomplish that.

On Sun, Mar 19, 2017 at 3:25 PM, Vladimír Čunát  wrote:
> On 03/19/2017 08:15 PM, Tilo Schwarz wrote:
>> I try to get YouCompleteMe running. [...]
>>
>> What would be the "nixos-correct" way to proceed?
>
> I'm using a wrapper that includes my settings, plugins, etc.  The code
> is something like this:
>
> # defined as `vim` alias within a set in packageOverrides:
> vim = vim_configurable.customize {
>   name = "vim";
>   vimrcConfig.customRC = builtins.readFile ./vimrc.vim + ''
> " per-machine config may mostly remain empty
> source ~/.vimrc
>   '';
>   vimrcConfig.vam.knownPlugins = vimPlugins; #
> pkgs/misc/vim-plugins/default.nix
>   vimrcConfig.vam.pluginDictionaries = [ { names = [
> # see pkgs/misc/vim-plugins/vim-plugin-names
> "vim-nix" "vim-addon-nix"
> "Solarized"
> "vim-pandoc-syntax"
> "surround"
> "vim-gitgutter" "fugitive"
> "youcompleteme" # ...
>   ]; } ];
> };
>
> --Vladimir
>
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread Vladimír Čunát
On 03/19/2017 08:15 PM, Tilo Schwarz wrote:
> I try to get YouCompleteMe running. [...]
> 
> What would be the "nixos-correct" way to proceed?

I'm using a wrapper that includes my settings, plugins, etc.  The code
is something like this:

# defined as `vim` alias within a set in packageOverrides:
vim = vim_configurable.customize {
  name = "vim";
  vimrcConfig.customRC = builtins.readFile ./vimrc.vim + ''
" per-machine config may mostly remain empty
source ~/.vimrc
  '';
  vimrcConfig.vam.knownPlugins = vimPlugins; #
pkgs/misc/vim-plugins/default.nix
  vimrcConfig.vam.pluginDictionaries = [ { names = [
# see pkgs/misc/vim-plugins/vim-plugin-names
"vim-nix" "vim-addon-nix"
"Solarized"
"vim-pandoc-syntax"
"surround"
"vim-gitgutter" "fugitive"
"youcompleteme" # ...
  ]; } ];
};

--Vladimir




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread Tilo Schwarz
Hi,

I try to get YouCompleteMe running. I put

vimPlugins.YouCompleteMe and
ycmd

in my packages list and I can see the packages in /nix/store. But vim
doesn't seem to find it and I couldn't find a configuration option.

I see two options:
- Change vims runtime path to include the specific /nix/store/... location
- Symlink the /nix/store/... location into my .vim/plugin/
- ?

What would be the "nixos-correct" way to proceed?

Thank you,
Tilo

-- 

Best regards / Viele Grüße,

Tilo Schwarz
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev