Skip to content

Commit

Permalink
Merge pull request #14 from dpi0/bugfix/deprecated-buf-set-option
Browse files Browse the repository at this point in the history
Replace deprecated nvim_buf_set_option
  • Loading branch information
itmecho authored Sep 27, 2024
2 parents 54c861a + 8a9c0ad commit 85c8254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neoterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function neoterm.open(opts)
if buf_created then
vim.cmd([[term]])
state.chan = vim.b.terminal_job_id
vim.api.nvim_buf_set_option(state.bufh, "buflisted", false)
vim.api.nvim_set_option_value("buflisted", false, { buf = state.bufh })
end
end

Expand Down

0 comments on commit 85c8254

Please sign in to comment.