Skip to content

Commit

Permalink
feat: setup smear-cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Nov 27, 2024
1 parent a9b9648 commit 7aba16a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,10 @@
url = "github:cocopon/pgmnt.vim";
flake = false;
};
smear-cursor-nvim = {
url = "github:sphamba/smear-cursor.nvim";
flake = false;
};
};

outputs =
Expand Down
7 changes: 7 additions & 0 deletions fnl/smear-cursor.fnl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(if (not vim.g.neovide)
((. (require :smear_cursor) :setup) {; cursor_color → Cursor color
; normal_bg → Normal background
:smear_between_buffers true
:smear_between_neighbor_lines false
:use_floating_windows true
:legacy_computing_symbols_support false}))
6 changes: 6 additions & 0 deletions lua/autogen/smear-cursor.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions main/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ let
numb
tint
winsep
smear-cursor
;
inherit (callPackage ./test.nix { }) neotest;
inherit (callPackage ./tool.nix { })
Expand Down
5 changes: 5 additions & 0 deletions main/style.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@ rec {
];
postConfig = read ../lua/autogen/bufferline.lua;
};
smear-cursor = {
package = smear-cursor-nvim;
postConfig = read ../lua/autogen/smear-cursor.lua;
hooks.events = [ "CursorMoved" ];
};
}

0 comments on commit 7aba16a

Please sign in to comment.