mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
906 stars 38 forks source link

Remove debug line outputting amount set for resizing #1

Closed hsheikhali1 closed 2 years ago

hsheikhali1 commented 2 years ago

What changed

Removed print(vim.inspect(amount)) from the plugin. This was causing the plugin to print out the value a user sets for their resize amount.

How to test

  1. Pull this branch
  2. install the changes with packer
  3. Confirm that the plugin is no longer echoing out the value set for amount.
use({
  "hsheikhali1/smart-resize.nvim",
  branch = "remove-debug-lines",
  config = function()
    local amount = 4
    require('smart-resize').resize_up(amount)
    require('smart-resize').resize_down(amount)
    require('smart-resize').resize_left(amount)
    require('smart-resize').resize_right(amount)
  end
})

Expected outcome

It shouldn't echo out the line numbers specified.

hsheikhali1 commented 2 years ago

@mrjones2014 FYI - I've added instructions for you to just copy and paste to test.

Pretty simple MR.. just removed your print statement at the top.

mrjones2014 commented 2 years ago

Lol whoops lmao