39 lines
812 B
Nix
39 lines
812 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (config.vars) neovimIde;
|
|
inherit (pkgs) vimPlugins;
|
|
in
|
|
lib.mkIf neovimIde {
|
|
programs = {
|
|
neovim = {
|
|
coc.settings = {
|
|
Lua = {
|
|
misc.parameters = [
|
|
"--metapath"
|
|
"~/.cache/sumneko_lua/meta"
|
|
"--logpath"
|
|
"~/.cache/sumneko_lua/log"
|
|
];
|
|
workspace.library = [
|
|
"$\{3rd\}/luv/library"
|
|
];
|
|
};
|
|
sumneko-lua = {
|
|
serverDir = "${pkgs.lua-language-server}/share/lua-language-server";
|
|
enableNvimLuaDev = true;
|
|
};
|
|
};
|
|
|
|
plugins = [
|
|
vimPlugins.coc-sumneko-lua
|
|
vimPlugins.neodev-nvim
|
|
|
|
vimPlugins.coc-vimlsp
|
|
];
|
|
};
|
|
};
|
|
}
|