Update deps
This commit is contained in:
parent
cae1a7fad9
commit
b59dd7db39
6 changed files with 62 additions and 17 deletions
12
flake.lock
12
flake.lock
|
@ -311,11 +311,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689134369,
|
"lastModified": 1689359668,
|
||||||
"narHash": "sha256-0G9dutIvhS/WUr3Awcnqw71g8EVVvvkOhVDnDDbY4Fw=",
|
"narHash": "sha256-NY4CSTKB8WgcMeF+ng+7QV5fj3bGxGC/IUV1rBanJCA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "e42fb59768f0305085abde0dd27ab5e0cc15420c",
|
"rev": "bec87d536c9f441ffeb603fc821fa7e613585d00",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -410,11 +410,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1689321787,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-ifk7hrfWnJaLlcjCf8YaWDR+9kQ0uT3x9eCz31D9qB0=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
"rev": "c11464c6625d9a71d91a3718a3567394638efc3e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
14
home/config/nvim/plugins/wezterm.fnl
Normal file
14
home/config/nvim/plugins/wezterm.fnl
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
(let [wezterm (require :wezterm)
|
||||||
|
augroup (vim.api.nvim_create_augroup :NifocWezterm {:clear true})
|
||||||
|
aucmd vim.api.nvim_create_autocmd]
|
||||||
|
(wezterm.setup {:create_commands false})
|
||||||
|
(aucmd :BufEnter {:callback (fn [args]
|
||||||
|
(let [path (vim.api.nvim_buf_get_name args.buf)
|
||||||
|
name (vim.fs.basename path)
|
||||||
|
title (if (and name (> (length name) 0))
|
||||||
|
(.. "nvim " name)
|
||||||
|
"")]
|
||||||
|
(wezterm.set_tab_title title)))
|
||||||
|
:group augroup})
|
||||||
|
(aucmd :VimLeavePre {:callback #(wezterm.set_tab_title "") :group augroup}))
|
||||||
|
|
|
@ -11,9 +11,14 @@
|
||||||
; Icons
|
; Icons
|
||||||
:elixir "#A074C4"
|
:elixir "#A074C4"
|
||||||
:nix "#7EBAE4"
|
:nix "#7EBAE4"
|
||||||
|
:reddit "#FA4400"
|
||||||
:ssh "#F4C82D"}]
|
:ssh "#F4C82D"}]
|
||||||
;; Event: Tab format
|
;; Event: Tab format
|
||||||
|
|
||||||
|
(fn extract-tab-title [tab]
|
||||||
|
(let [title tab.tab_title]
|
||||||
|
(if (and title (> (length title) 0)) title tab.active_pane.title)))
|
||||||
|
|
||||||
(fn extract-tab-info [title]
|
(fn extract-tab-info [title]
|
||||||
(match title
|
(match title
|
||||||
(where t (t:find "^nvim%s"))
|
(where t (t:find "^nvim%s"))
|
||||||
|
@ -34,13 +39,20 @@
|
||||||
(where t (t:find :^instagram-)) {: title :icon " " :color "#FB2179"}
|
(where t (t:find :^instagram-)) {: title :icon " " :color "#FB2179"}
|
||||||
(where t (t:find "^gallery-dl%s"))
|
(where t (t:find "^gallery-dl%s"))
|
||||||
{:title (t:gsub "^gallery-dl%s(.*)" "%1") :icon " " :color "#009900"}
|
{:title (t:gsub "^gallery-dl%s(.*)" "%1") :icon " " :color "#009900"}
|
||||||
|
(where t (t:find "^bdfr%s"))
|
||||||
|
{:title (t:gsub "^bdfr%s(.*)" "%1") :icon " " :color colors.reddit}
|
||||||
|
(where t (t:find "^bdfr-raw%s")) {:title (t:gsub "^bdfr-raw%s(.*)" "%1")
|
||||||
|
:icon " "
|
||||||
|
:color colors.reddit}
|
||||||
(where t (t:find :^redis-)) {: title :icon " " :color "#DC372C"}
|
(where t (t:find :^redis-)) {: title :icon " " :color "#DC372C"}
|
||||||
(where t (t:find "^%[%w+%]%s")) {: title :icon " " :color colors.ssh}
|
(where t (t:find "^%[%w+%]%s")) {: title :icon " " :color colors.ssh}
|
||||||
|
(where t (t:find "^%w+-dl%s")) {: title :icon " " :color "#22BC00"}
|
||||||
_ {: title :icon " " :color "#F8F8F2"}))
|
_ {: title :icon " " :color "#F8F8F2"}))
|
||||||
|
|
||||||
(wezterm.on :format-tab-title
|
(wezterm.on :format-tab-title
|
||||||
(fn [tab tabs panes config hover max-width]
|
(fn [tab tabs panes config hover max-width]
|
||||||
(let [tab-info (extract-tab-info tab.active_pane.title)
|
(let [raw-title (extract-tab-title tab)
|
||||||
|
tab-info (extract-tab-info raw-title)
|
||||||
title (wezterm.truncate_right tab-info.title
|
title (wezterm.truncate_right tab-info.title
|
||||||
(- max-width 5))]
|
(- max-width 5))]
|
||||||
(if tab.is_active
|
(if tab.is_active
|
||||||
|
@ -85,7 +97,7 @@
|
||||||
:use_fancy_tab_bar true
|
:use_fancy_tab_bar true
|
||||||
:hide_tab_bar_if_only_one_tab false
|
:hide_tab_bar_if_only_one_tab false
|
||||||
:tab_bar_at_bottom false
|
:tab_bar_at_bottom false
|
||||||
:tab_max_width 32
|
:tab_max_width 42
|
||||||
:window_frame {:active_titlebar_bg colors.frame-background
|
:window_frame {:active_titlebar_bg colors.frame-background
|
||||||
:inactive_titlebar_bg colors.frame-background
|
:inactive_titlebar_bg colors.frame-background
|
||||||
:font (wezterm.font {:family "JetBrains Mono"
|
:font (wezterm.font {:family "JetBrains Mono"
|
||||||
|
@ -148,5 +160,6 @@
|
||||||
;; Launch Menu
|
;; Launch Menu
|
||||||
:launch_menu [{:label :Btop++ :args [_G.programs.btop]}]
|
:launch_menu [{:label :Btop++ :args [_G.programs.btop]}]
|
||||||
;; Other
|
;; Other
|
||||||
|
:front_end :WebGpu
|
||||||
:check_for_updates false})
|
:check_for_updates false})
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,12 @@ in
|
||||||
plenary-nvim
|
plenary-nvim
|
||||||
nvim-web-devicons
|
nvim-web-devicons
|
||||||
|
|
||||||
|
{
|
||||||
|
plugin = wezterm-nvim;
|
||||||
|
config = builtins.readFile ../../config/nvim/plugins/wezterm.fnl;
|
||||||
|
type = "fennel";
|
||||||
|
}
|
||||||
|
|
||||||
# Keybindings
|
# Keybindings
|
||||||
{
|
{
|
||||||
plugin = nvim-osc52;
|
plugin = nvim-osc52;
|
||||||
|
|
|
@ -39,6 +39,17 @@ in
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
wezterm-nvim = buildVimPluginFrom2Nix {
|
||||||
|
pname = "wezterm.nvim";
|
||||||
|
version = "2023-04-23";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "willothy";
|
||||||
|
repo = "wezterm.nvim";
|
||||||
|
rev = "9e209cb4afb2b785c116bbe2d9777cb82d700671";
|
||||||
|
sha256 = "1hv55frfgl8qaxdpl90lj82ydlkazgdm33ja4jsmkr83bschc98p";
|
||||||
|
fetchSubmodules = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
nvim-osc52 = buildVimPluginFrom2Nix {
|
nvim-osc52 = buildVimPluginFrom2Nix {
|
||||||
pname = "nvim-osc52";
|
pname = "nvim-osc52";
|
||||||
version = "2023-05-15";
|
version = "2023-05-15";
|
||||||
|
@ -85,12 +96,12 @@ in
|
||||||
};
|
};
|
||||||
leap-nvim = buildVimPluginFrom2Nix {
|
leap-nvim = buildVimPluginFrom2Nix {
|
||||||
pname = "leap.nvim";
|
pname = "leap.nvim";
|
||||||
version = "2023-07-13";
|
version = "2023-07-14";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ggandor";
|
owner = "ggandor";
|
||||||
repo = "leap.nvim";
|
repo = "leap.nvim";
|
||||||
rev = "bfb20783d951cf349ee8bab7e0f468351176dd75";
|
rev = "bae0433949ba54eb1df629f6e94b33af5922922f";
|
||||||
sha256 = "0igwm79nsl72i5ygh5q9q0jpd8xhdrjv5n0py2j4q9ar1r1ly391";
|
sha256 = "1csxnckbwcrliy1098hgzmpqkan36hxw33a0hwl2x5s6xqcbwc9a";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -140,12 +151,12 @@ in
|
||||||
};
|
};
|
||||||
telescope-nvim = buildVimPluginFrom2Nix {
|
telescope-nvim = buildVimPluginFrom2Nix {
|
||||||
pname = "telescope.nvim";
|
pname = "telescope.nvim";
|
||||||
version = "2023-07-07";
|
version = "2023-07-14";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nvim-telescope";
|
owner = "nvim-telescope";
|
||||||
repo = "telescope.nvim";
|
repo = "telescope.nvim";
|
||||||
rev = "276362a8020c6e94c7a76d49aa00d4923b0c02f3";
|
rev = "2ea8dcd17b4f9b7714354965a28ae4fef4139c71";
|
||||||
sha256 = "043rrifqhg5bsksqhfdc20f96i2s2xyd6qyga4918fr75sf8hmib";
|
sha256 = "0gvib929fhs7n0ib9jahvkkd3ir4bbsdfjdznd3bj66nfzqqfm1r";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -517,12 +528,12 @@ in
|
||||||
};
|
};
|
||||||
toggleterm-nvim = buildVimPluginFrom2Nix {
|
toggleterm-nvim = buildVimPluginFrom2Nix {
|
||||||
pname = "toggleterm.nvim";
|
pname = "toggleterm.nvim";
|
||||||
version = "2023-07-10";
|
version = "2023-07-14";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "akinsho";
|
owner = "akinsho";
|
||||||
repo = "toggleterm.nvim";
|
repo = "toggleterm.nvim";
|
||||||
rev = "83aa231fa414a5dcb72aed97437446a6ca5a81f2";
|
rev = "1f5b551a0bd165d0c90cc35fef08b07b9dfb06e1";
|
||||||
sha256 = "0dhbc9s9irzamlv7b8qdamixvh4nf1p7icszdbd8jwks9dfhm9mk";
|
sha256 = "09bksif3f4a1yrflgnkhaj0wx2cym8282xayddknijlgkjbjzi6i";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
- src: nvim-lua/popup.nvim
|
- src: nvim-lua/popup.nvim
|
||||||
- src: nvim-lua/plenary.nvim
|
- src: nvim-lua/plenary.nvim
|
||||||
- src: kyazdani42/nvim-web-devicons
|
- src: kyazdani42/nvim-web-devicons
|
||||||
|
- src: willothy/wezterm.nvim
|
||||||
# Keybindings
|
# Keybindings
|
||||||
- src: ojroques/nvim-osc52
|
- src: ojroques/nvim-osc52
|
||||||
- src: gbprod/yanky.nvim
|
- src: gbprod/yanky.nvim
|
||||||
|
|
Loading…
Reference in a new issue