add vscode
This commit is contained in:
parent
3ce89f69ea
commit
6285f5e30f
4 changed files with 22 additions and 5 deletions
|
@ -16,6 +16,11 @@ in
|
|||
clang
|
||||
gdb
|
||||
pkg-config
|
||||
# lsp
|
||||
clang-tools
|
||||
cmake-language-server
|
||||
# lint
|
||||
cpplint
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./nvim
|
||||
./vscode
|
||||
];
|
||||
}
|
||||
|
|
|
@ -12,11 +12,6 @@ in
|
|||
# because yes
|
||||
users.users.sako.packages = with pkgs; [
|
||||
neovim
|
||||
# lsp
|
||||
clang-tools
|
||||
cmake-language-server
|
||||
# lint
|
||||
cpplint
|
||||
];
|
||||
home-manager.users.sako.xdg.configFile.nvim = {
|
||||
source = ../../../../config/nvim;
|
||||
|
|
16
modules/dev/editors/vscode/default.nix
Normal file
16
modules/dev/editors/vscode/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.dev.editors.vscode;
|
||||
in
|
||||
{
|
||||
options.modules.dev.editors.vscode = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
vscode.fhs
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue