Skip to content

Commit

Permalink
refactor(nvim): enable image.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed May 25, 2024
1 parent 879b3f4 commit 3badc1a
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 5 deletions.
5 changes: 0 additions & 5 deletions TODO.md

This file was deleted.

3 changes: 3 additions & 0 deletions home/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
set -g pane-border-style "fg=$bg_color bg=$bg_color"
set -g pane-active-border-style "fg=$bg_color bg=$bg_color"
set -sg escape-time 10
set -g visual-activity off
set -gq allow-passthrough on
'';

# Plugin disable cause in version 3.3a tmux server crashed
Expand Down
13 changes: 13 additions & 0 deletions notes/index.norg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@document.meta
title: Taking All notes
description:
authors: r17
categories:
created: 2024-05-26T02:36:39+0700
updated: 2024-05-26T03:39:29+0700
version: 1.1.1
@end

* {:todo:}[Todo]
* Journal
** {:journal/2024/05/26:}[2024/05/26]
30 changes: 30 additions & 0 deletions notes/journal/2024/05/26.norg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@document.meta
title: Merge nvim.nix with nixpkgs
description:
authors: r17x
categories:
created: 2024-05-26T00:35:26+0700
updated: 2024-05-26T01:27:14+0700
version: 1.1.1
@end

* It's about flake-parts

*flake-parts* is /Core of a distributed framework for writing Nix Flakes/ {https://flake.parts/} - I think for make flake.nix more maintainable.

@code nix
outputs = inputs: inputs.parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"x86_64-linux"
];

imports = [
];
};
@end

** Refactoring is art and wasting time

after adopt the *flake-parts* in my dotfiles *r17x/nixpkgs*, *nvim.nix* it's time to refactor it and merge it with *nixpkgs*.

24 changes: 24 additions & 0 deletions notes/todo.norg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@document.meta
title: Todo
description: make things get fucking done
authors: r17
categories:
created: 2024-05-26T02:31:16+0700
updated: 2024-05-26T03:45:15+0700
version: 1.1.1
@end

* Tasks
** Blog - Rin.rocks
- ( ) Fully OCaml/ReasonML with {https://melange.re}[melange.re]

** Dotfiles
- ( ) move {https://github.com/r17x/rin.rocks}[rin.rocks] to {https://github.com/r17x/nixpkgs}[nixpkgs]
- (x) use *flake-parts* in {https://github.com/r17x/nixpkgs}[nixpkgs]
- (x) move {https://github.com/r17x/nvim.nix}[nvim.nix] to {https://github.com/r17x/nixpkgs}[nixpkgs]
- (x) use {https://github.com/3rd/image.nvim}[image.nvim] in `nvim.nix` with {https://nix-community.github.io/nixvim/plugins/image/index.html}[plugins.image] - see implementation in {/ ../nvim.nix/config/ui.nix:13}[config/ui.nix] and updated configuration of {/ ../home/tmux.nix:25}[home/tmux.nix]

** Neovim
- ( ) Find why image cannot render correctly in `iTerm`
- (+) Revisit `cmp` in current nixvim

5 changes: 5 additions & 0 deletions nvim.nix/config/ui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"fhi" = [ "<cmd>Telescope highlights<cr>" "Find Highlight Groups" ];
};

plugins.image.enable = true;
plugins.image.integrations.neorg.enabled = true;
plugins.image.editorOnlyRenderWhenFocused = true;
plugins.image.tmuxShowOnlyInActiveWindow = true;

plugins.presence-nvim.enable = true;
plugins.presence-nvim.enableLineNumber = true;
plugins.presence-nvim.autoUpdate = true;
Expand Down

0 comments on commit 3badc1a

Please sign in to comment.