Skip to content

Commit

Permalink
Remove deprecated nvim_buf_set_option
Browse files Browse the repository at this point in the history
  • Loading branch information
dpi0 committed Sep 26, 2024
1 parent 7d2d9b9 commit d0ae2f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neoterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ function neoterm.open(opts)
if buf_created then
vim.cmd([[term]])
state.chan = vim.b.terminal_job_id
vim.api.nvim_buf_set_name(state.bufh, "neoterm")
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 d0ae2f0

Please sign in to comment.