Add a sticky terminal panel to the bottom, remove old terminal from lspsaga

This commit is contained in:
Martin Larsson 2024-05-26 23:10:44 +02:00
parent 49ad4d1bad
commit d4126dc480
5 changed files with 59 additions and 9 deletions

View file

@ -12,6 +12,10 @@ function M.is_buf_filetype(bufnr, filetype)
return vim.api.nvim_buf_get_option(bufnr, "filetype") == filetype
end
function M.is_buf_buftype(bufnr, filetype)
return vim.api.nvim_buf_get_option(bufnr, "buftype") == filetype
end
function M.lock_buf_to_window(win_id, bufnr, filetype)
local augroup_id = vim.api.nvim_create_augroup("LockWindow" .. win_id, { clear = true })