Skip to content

Commit

Permalink
fix(documentstore): hide virtual bufs and dont prompt for saving
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed Nov 2, 2024
1 parent 347dc2c commit 477af98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/rzls/documentstore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ local function get_or_create_buffer_for_filepath(filepath, filetype)
local buf = buffer_with_name(filepath)
if not buf then
vim.print(filepath)
buf = vim.api.nvim_create_buf(true, false)
buf = vim.api.nvim_create_buf(false, false)
vim.api.nvim_buf_set_name(buf, filepath)
vim.api.nvim_set_option_value("ft", filetype, { buf = buf })
vim.api.nvim_set_option_value("buftype", "nowrite", { buf = buf })
end

return buf
Expand Down

0 comments on commit 477af98

Please sign in to comment.