nixos-config/home/editors/default.nix

34 lines
577 B
Nix

{ config, pkgs, ... }:
{
imports = [
./neovim.nix
./vscode.nix
./omnisharp.nix
];
home.packages = with pkgs; [
fzf
ripgrep
];
home.sessionVariables = with pkgs; {
EDITOR = "nvim";
FZF_DEFAULT_COMMAND = "${ripgrep}/bin/rg --files --hidden";
};
home.file.".editorconfig".text = ''
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
'';
}