tweak: updated helix editor
This commit is contained in:
parent
f466cc9fc7
commit
55e35c6494
2 changed files with 67 additions and 44 deletions
|
|
@ -37,6 +37,12 @@
|
||||||
url = "github:vic/import-tree";
|
url = "github:vic/import-tree";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# helix editor plugins - https://codeberg.org/maxschipper/helix-plugins-nix
|
||||||
|
helix-plugins = {
|
||||||
|
url = "git+ssh://git@codeberg.org/maxschipper/helix-plugins.nix";
|
||||||
|
inputs.nixpkgs.follow = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
# sound driver optimisations - https://github.com/musnix/musnix
|
# sound driver optimisations - https://github.com/musnix/musnix
|
||||||
musnix = {
|
musnix = {
|
||||||
url = "github:musnix/musnix";
|
url = "github:musnix/musnix";
|
||||||
|
|
|
||||||
|
|
@ -24,67 +24,84 @@
|
||||||
SYSTEMD_EDITOR = "hx";
|
SYSTEMD_EDITOR = "hx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# helix plugins overlay from flake
|
||||||
|
nixpkgs.overlays = [ inputs.helix-plugins.overlays.default ];
|
||||||
|
|
||||||
|
# system level packages for helix editor
|
||||||
environment.systemPackages = with pkgs; [ helix ];
|
environment.systemPackages = with pkgs; [ helix ];
|
||||||
|
|
||||||
# home manager options
|
# home manager options
|
||||||
home-manager.users.${user-parts.user.username} = {
|
home-manager.users.${user-parts.user.username} =
|
||||||
|
|
||||||
# alternate user friendly text editor
|
#{ config, ... }:
|
||||||
programs.micro = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# primary text editor
|
{
|
||||||
programs.helix = {
|
|
||||||
|
|
||||||
# enables helix
|
# module import for helix plugins home manager module
|
||||||
enable = true;
|
imports = [ inputs.helix-plugins.homeManagerModules.default ];
|
||||||
|
|
||||||
settings = {
|
# alternate user friendly text editor
|
||||||
|
programs.micro = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# primary text editor
|
||||||
|
programs.helix = {
|
||||||
|
|
||||||
|
# enables helix
|
||||||
|
enable = true;
|
||||||
|
|
||||||
# cursor settings
|
# cursor settings
|
||||||
editor.cursor-shape = {
|
settings.editor.cursor-shape = {
|
||||||
normal = "underline";
|
normal = "underline";
|
||||||
insert = "bar";
|
insert = "bar";
|
||||||
select = "block";
|
select = "block";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
# helix plugins
|
||||||
|
plugins = with pkgs.helixPlugins; [
|
||||||
# lsp settings
|
smooth-scroll # allows smoother scrolling
|
||||||
languages = {
|
steel-pty # open terminals within helix
|
||||||
|
show-keys # shows keypresses within helix
|
||||||
language = [
|
scooter # interactive find and replace
|
||||||
{
|
notify # notification popups for helix
|
||||||
name = "nix";
|
|
||||||
auto-format = true;
|
|
||||||
formatter.command = lib.getExe pkgs.nixfmt;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "haskell";
|
|
||||||
auto-format = true;
|
|
||||||
formatter.command = lib.getExe pkgs.stylish-haskell;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "rust";
|
|
||||||
auto-format = true;
|
|
||||||
formatter.command = lib.getExe pkgs.rustfmt;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "python";
|
|
||||||
auto-format = true;
|
|
||||||
formatter.command = lib.getExe pkgs.black;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "markdown";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "fish";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# lsp settings
|
||||||
|
languages = {
|
||||||
|
|
||||||
|
language = [
|
||||||
|
{
|
||||||
|
name = "nix";
|
||||||
|
auto-format = true;
|
||||||
|
formatter.command = lib.getExe pkgs.nixfmt;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "haskell";
|
||||||
|
auto-format = true;
|
||||||
|
formatter.command = lib.getExe pkgs.stylish-haskell;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "rust";
|
||||||
|
auto-format = true;
|
||||||
|
formatter.command = lib.getExe pkgs.rustfmt;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "python";
|
||||||
|
auto-format = true;
|
||||||
|
formatter.command = lib.getExe pkgs.black;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "markdown";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "fish";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue