From 4f72fcc3b77392aa781f1d8b214521708eb0252b Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 4 Sep 2022 20:43:45 +0200 Subject: [PATCH] nix(home-manager): mv helix config to its own file --- home.nix | 34 +--------------------------------- nix/programs/helix.nix | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 nix/programs/helix.nix diff --git a/home.nix b/home.nix index f770b7e..2075267 100644 --- a/home.nix +++ b/home.nix @@ -5,40 +5,8 @@ programs.home-manager.enable = true; programs.home-manager.path = "$HOME/utils/dotfiles"; - programs.helix.enable = true; - # https://docs.helix-editor.com/from-vim.html - # https://github.com/helix-editor/helix/wiki/Migrating-from-Vim - programs.helix.settings = { - theme = "dracula"; - editor = { - line-number = "relative"; - cursor-shape = { - insert = "bar"; - normal = "block"; - }; - whitespace = { - render = "all"; - # or control each character - #render = { - # space = "all"; - # tab = "all"; - # newline = "none"; - #}; - - characters = { - space = "·"; - nbsp = "⍽"; - tab = "→"; - newline = "¬"; - # Tabs will look like "→···" (depending on tab width) - tabpad = "·"; - }; - }; - lsp.display-messages = true; - }; - }; - imports = [ + ./nix/programs/helix.nix ./nix/programs/newsboat.nix ]; diff --git a/nix/programs/helix.nix b/nix/programs/helix.nix new file mode 100644 index 0000000..c97263b --- /dev/null +++ b/nix/programs/helix.nix @@ -0,0 +1,38 @@ +{ + config, + pkgs, + ... +}: { + programs.helix = { + enable = true; + settings = { + theme = "dracula"; + editor = { + line-number = "relative"; + cursor-shape = { + insert = "bar"; + normal = "block"; + }; + whitespace = { + render = "all"; + # or control each character + #render = { + # space = "all"; + # tab = "all"; + # newline = "none"; + #}; + + characters = { + space = "·"; + nbsp = "⍽"; + tab = "→"; + newline = "¬"; + # Tabs will look like "→···" (depending on tab width) + tabpad = "·"; + }; + }; + lsp.display-messages = true; + }; + }; + }; +}