mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
32 lines
637 B
Nix
32 lines
637 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.neovim = {
|
||
|
enable = true;
|
||
|
plugins = with pkgs.vimPlugins; [
|
||
|
vim-nix
|
||
|
{
|
||
|
plugin = vim-commentary;
|
||
|
runtime = {
|
||
|
"after/ftplugin/c.vim".text = ''
|
||
|
" plugin-specific config
|
||
|
setlocal commentstring=//\ %s
|
||
|
setlocal comments=://
|
||
|
'';
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
|
||
|
extraPython3Packages = (ps: with ps; [ jedi pynvim ]);
|
||
|
};
|
||
|
nmt.script = ''
|
||
|
ftplugin="home-files/.config/nvim/after/ftplugin/c.vim"
|
||
|
assertFileExists "$ftplugin"
|
||
|
'';
|
||
|
};
|
||
|
}
|
||
|
|