Skip to content

Commit b8ea2cd

Browse files
Do not resize expand_macro buffer
This makes the `expand_macro` command a better fit for chaining it with layout commands.
1 parent e9c5aab commit b8ea2cd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: lua/rustaceanvim/commands/expand_macro.lua

-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ local function handler(_, result)
6060
vim.bo[latest_buf_id].filetype = 'rust'
6161
-- write the expansion content to the buffer
6262
vim.api.nvim_buf_set_lines(latest_buf_id, 0, 0, false, parse_lines(result))
63-
64-
-- make the new buffer smaller
65-
ui.resize(true, '-25')
6663
end
6764

6865
--- Sends the request to rust-analyzer to expand the macro under the cursor

0 commit comments

Comments
 (0)