fix: dont prefix codemp:: so filename matches

This commit is contained in:
əlemi 2024-09-06 19:13:08 +02:00
parent 9341095b68
commit 9873617742
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -22,7 +22,7 @@ local function attach(name, buffer, content, nowait)
buffer = vim.api.nvim_create_buf(true, true)
vim.api.nvim_set_option_value('fileformat', 'unix', { buf = buffer })
-- vim.api.nvim_buf_set_option(buffer, 'filetype', 'codemp') -- TODO get from codemp?
vim.api.nvim_buf_set_name(buffer, "codemp::" .. name)
vim.api.nvim_buf_set_name(buffer, name)
vim.api.nvim_set_current_buf(buffer)
end
local controller = session.workspace:attach_buffer(name):await()