nvim: nodejs required for coc (as modularize coc)

This commit is contained in:
Sridhar Ratnakumar 2022-04-28 15:27:01 -04:00
parent 1e06aa40b5
commit cba5ad42e3
2 changed files with 15 additions and 1 deletions

View file

@ -3,12 +3,14 @@ let
nvim = inputs.neovim-nightly-overlay.packages.${system}.neovim;
in
{
imports = [
./neovim/coc.nix
];
programs.neovim = {
enable = true;
package = nvim;
coc = {
enable = true;
settings = {
languageserver = {
haskell = {

12
home/neovim/coc.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, inputs, system, ... }:
{
programs.neovim = {
coc = {
enable = true;
};
extraPackages = [
pkgs.nodejs # coc requires nodejs
];
};
}