-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add vim-tmux-navigator #27
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I just left some style changes. Unless the name would look wrong (eg. nullLs) I prefer snake case standardized. Also if you could add to the changelog.
@@ -1,2 +1,3 @@ | |||
result | |||
.config | |||
.direnv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.direnv |
${optionalString (cfg.autosave-on-leave == "update") "let g:tmux_navigator_save_on_switch = 1"} | ||
${optionalString (cfg.autosave-on-leave == "wall") "let g:tmux_navigator_save_on_switch = 2"} | ||
${optionalString (cfg.disable-when-zoomed) "let g:tmux_navigator_disable_when_zoomed = 1"} | ||
${optionalString (cfg.preserve-zoom) "let g:tmux_navigator_preserve_zoom = 1"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${optionalString (cfg.preserve-zoom) "let g:tmux_navigator_preserve_zoom = 1"} | |
${optionalString (cfg.preserve-zoom) "let g:tmux_navigator_preserve_zoom = 1"} |
vim.startPlugins = [ | ||
"tmux-navigator" | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vim.startPlugins = [ | |
"tmux-navigator" | |
]; | |
vim.startPlugins = ["tmux-navigator"]; |
description = "enable tmux-navigator, this plugin will only work together with tmuxPlugins.vim-tmux-navigator"; | ||
}; | ||
|
||
autosave-on-leave = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autosave-on-leave = mkOption { | |
autosaveOnLeave = mkOption { |
description = "enable autosave when navigating to tmux"; | ||
}; | ||
|
||
disable-when-zoomed = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable-when-zoomed = mkOption { | |
disableWhenZoomed = mkOption { |
description = "disable navigator when the tmux pane is zoomed"; | ||
}; | ||
|
||
preserve-zoom = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preserve-zoom = mkOption { | |
preserveZoom = mkOption { |
cfg = config.vim.tmux-navigator; | ||
in { | ||
options.vim = { | ||
tmux-navigator = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tmux-navigator = { | |
tmuxNavigator = { |
in { | ||
options.vim = { | ||
tmux-navigator = { | ||
enable = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use mkEnableOption
This is my first pr for this project so i'm not sure if i haven't missed something.