fix: new api

This commit is contained in:
əlemi 2024-08-06 23:03:57 +02:00
parent 059dc68e3f
commit e901b448ea
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -19,7 +19,7 @@ local function attach(workspace, name, force)
utils.buffer.set_content(buffer, "")
else
buffer = vim.api.nvim_create_buf(true, true)
vim.api.nvim_buf_set_option(buffer, 'fileformat', 'unix')
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_set_current_buf(buffer)