Nvim-r: Difference between revisions
imported>OctavioElMagnifico No edit summary |
imported>Josephsdavid Added installation instructions as nvim-r has some build-time dependencies |
||
Line 4: | Line 4: | ||
This Just Works ™ but you have to explictly install GCC on [https://nixos.org/nixos/manual/index.html#sec-package-management system packages] so the plugin script can find it and compile the code it needs. If GCC is not explicitly installed, then it will print an "updating nvimcom" message and then a criptyc compilation error log. | This Just Works ™ but you have to explictly install GCC on [https://nixos.org/nixos/manual/index.html#sec-package-management system packages] so the plugin script can find it and compile the code it needs. If GCC is not explicitly installed, then it will print an "updating nvimcom" message and then a criptyc compilation error log. | ||
==Installation via Home-Manager== | |||
An example installation of nvim-r using home-manager is shown below. | |||
nvim-R requires build dependencies: which, vim and zip | |||
'''~/.config/nixpkgs/vim.nix''' | |||
<pre> | |||
with import <nixpkgs> {}; | |||
let customPlugins = { | |||
nvim-r = vimUtils.buildVimPlugin { | |||
name = "nvim-r"; | |||
src = fetchgit { | |||
url= "https://github.com/jalvesaq/nvim-r"; | |||
rev = "c53b5a402a26df5952718f483c7461af5bb459eb"; | |||
sha256 = "13xbb05gnpgmyaww6029saplzjq7cq2dxzlxylcynxhhyibz5ibv"; | |||
}; | |||
buildInputs = [ which vim zip]; | |||
}; | |||
}; | |||
... | |||
... | |||
in vim_configurable.customize { | |||
name = "vim"; | |||
vimrcConfig.customRC = ' ' | |||
vimrc things go here | |||
''; | |||
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins; | |||
vimrcConfig.vam.pluginDictionaries = [ | |||
{ names = [ | |||
"nvim-r" | |||
"other normal vim plugins" | |||
]; } | |||
]; | |||
} | |||
</pre> | |||
'''~/.config/nixpkgs/home.nix''' | |||
<pre> | |||
home= { | |||
packages =with pkgs; [ | |||
(import ./vim.nix) | |||
other packages | |||
]; | |||
}; | |||
</pre> |