Skip to content

Commit

Permalink
Minor improvements and carrot eval all keymap
Browse files Browse the repository at this point in the history
- comment clarity
- fixed typo in main justfile
- added carrot eval all keymap
  • Loading branch information
handdara committed Nov 27, 2024
1 parent f446f3f commit 0fec4cb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
10 changes: 10 additions & 0 deletions fst/him/nvim-nrw/lua/handdara/carrot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ vim.keymap.set('n', '<leader>ce', function ()
vim.cmd 'edit'
end
end, { desc = '[c]arrot: [e]val code block' })
vim.keymap.set('n', '<leader>cE', function ()
local prev_ft = vim.bo.filetype
if prev_ft == "telekasten" then
vim.bo.filetype = "markdown"
c.execute_all()
vim.bo.filetype = prev_ft
vim.cmd 'write'
vim.cmd 'edit'
end
end, { desc = '[c]arrot: [E]val all code block' })
4 changes: 2 additions & 2 deletions hix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
};

services.xserver = {
enable = true; # Enable the X11 windowing system.
enable = true; # Enable the X11 windowing system. displaylink driver set up for x11
displayManager.gdm.enable = true; # Enable the GNOME Display Manager
desktopManager.gnome.enable = true;
displayManager.gdm.wayland = opts.sys.useWayland; # displaylink driver set up for x11
displayManager.gdm.wayland = opts.sys.useWayland;
xkb = { # Configure keymap in X11
layout = "us";
variant = "";
Expand Down
2 changes: 1 addition & 1 deletion hix/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
timezone = "America/New_York";
locale = "en_US.UTF-8";
useDisplayLink = true;
useWayland = true;
useWayland = false;
};
user = rec {
username = "handdara";
Expand Down
2 changes: 1 addition & 1 deletion hix/system/hardware/displaylink/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{config, pkgs, lib, ... }:
{pkgs, lib, ... }:
{
# ALERT: This uses unfree software, here is a helpful log report:
# ***
Expand Down
5 changes: 2 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ test:
just {{dotfiles_dir}}/hix/ test-home-mngr

# rebuild nixos and home-manager using most up-to-date method and switch
switch:
switch: && switch-home
just {{dotfiles_dir}}/hix/ switch-nixos
just {{dotfiles_dir}}/hix/ switch-home-mngr

# rebuild only home-manager using most up-to-date method and switch
switch-home:
just {{dotfiles_dir}}/hix/ rebuild-home-mngr
just {{dotfiles_dir}}/hix/ switch-home-mngr

# unlink directories needed to switch home-manager
unlink-all:
Expand Down

0 comments on commit 0fec4cb

Please sign in to comment.