mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 20:17:12 +08:00
nvim: nodejs required for coc (as modularize coc)
This commit is contained in:
parent
1e06aa40b5
commit
cba5ad42e3
2 changed files with 15 additions and 1 deletions
|
|
@ -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
12
home/neovim/coc.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, inputs, system, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
coc = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
extraPackages = [
|
||||
pkgs.nodejs # coc requires nodejs
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue