Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fabianpage
Copy link

This is my first pr for this project so i'm not sure if i haven't missed something.

Copy link
Owner

@jordanisaacs jordanisaacs left a 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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.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"}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
${optionalString (cfg.preserve-zoom) "let g:tmux_navigator_preserve_zoom = 1"}
${optionalString (cfg.preserve-zoom) "let g:tmux_navigator_preserve_zoom = 1"}

Comment on lines +40 to +42
vim.startPlugins = [
"tmux-navigator"
];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
autosave-on-leave = mkOption {
autosaveOnLeave = mkOption {

description = "enable autosave when navigating to tmux";
};

disable-when-zoomed = mkOption {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
disable-when-zoomed = mkOption {
disableWhenZoomed = mkOption {

description = "disable navigator when the tmux pane is zoomed";
};

preserve-zoom = mkOption {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
preserve-zoom = mkOption {
preserveZoom = mkOption {

cfg = config.vim.tmux-navigator;
in {
options.vim = {
tmux-navigator = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tmux-navigator = {
tmuxNavigator = {

in {
options.vim = {
tmux-navigator = {
enable = mkOption {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use mkEnableOption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants