Nvim-r: Difference between revisions
imported>Josephsdavid mNo edit summary |
m add 2 more links |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
This plugin turns | {{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}} | ||
This plugin turns [[Vim]]/[[Neovim]] into a fully fledged [[R]] IDE<ref>https://medium.freecodecamp.org/turning-vim-into-an-r-ide-cd9602e8c217?gi=a7ef030c5ed2</ref>. Once added as a Vim plugin, it will try to compile a backend executable called <code>nvimcom</code><ref>https://github.com/jalvesaq/Nvim-R</ref>. | |||
==If nvimcom Installation Fails== | ==If nvimcom Installation Fails== | ||
This Just Works ™ but you have to explictly install GCC | 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 cryptic compilation error log. | ||
==Installation via Home-Manager== | |||
An example installation of <tt>nvim-r</tt> using [[home-manager]] is shown below. | |||
An example installation of nvim-r using home-manager is shown below. | |||
nvim-R requires build dependencies: which, vim and zip | nvim-R requires build dependencies: <code>which</code>, <code>vim</code> and <code>zip</code> | ||
{{file|~/.config/nixpkgs/vim.nix|nix|3= | |||
with import <nixpkgs> { }; | |||
with import <nixpkgs> {}; | |||
let customPlugins = { | let customPlugins = { | ||
nvim-r = vimUtils.buildVimPlugin { | nvim-r = vimUtils.buildVimPlugin { | ||
| Line 22: | Line 22: | ||
sha256 = "13xbb05gnpgmyaww6029saplzjq7cq2dxzlxylcynxhhyibz5ibv"; | sha256 = "13xbb05gnpgmyaww6029saplzjq7cq2dxzlxylcynxhhyibz5ibv"; | ||
}; | }; | ||
buildInputs = [ which vim zip | buildInputs = [ which vim zip | ||
}; | }; | ||
}; | }; | ||
| Line 41: | Line 41: | ||
]; | ]; | ||
} | } | ||
}} | |||
{{file|~/.config/nixpkgs/home.nix|nix|3= | |||
home = { | |||
packages = with pkgs; [ | |||
(import ./vim.nix) | |||
# other packages | |||
]; | ]; | ||
}; | }; | ||
}} | |||
[[Category:Applications]] | |||
[[Category:Text Editor{{#translation:}}]] | |||