diff --git a/README.md b/README.md index 311f560..1bbd571 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Redirects neovim's [cmdline](https://neovim.io/doc/user/cmdline.html) output to a modifiable buffer. +![redir](./assets/redir_screenshot.png "redir screenshot") + ## Features - multiple layouts: vertical/horizontal split, floating window, tab window diff --git a/assets/redir_screenshot.png b/assets/redir_screenshot.png new file mode 100755 index 0000000..befc7d5 Binary files /dev/null and b/assets/redir_screenshot.png differ diff --git a/lua/redir/view.lua b/lua/redir/view.lua index 4bffec8..f8488d2 100644 --- a/lua/redir/view.lua +++ b/lua/redir/view.lua @@ -248,6 +248,7 @@ function View.generate_cmd_output(ctx) api.nvim_buf_set_lines(View.bufnr, is_empty and 0 or -1, -1, false, lines) api.nvim_win_set_cursor(View.win_id, { api.nvim_buf_line_count(View.bufnr), 0 }) vim.opt_local.modified = false + vim.opt_local.wrap = true end api.nvim_create_user_command("Redir", function(ctx)