mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
fix: new api
This commit is contained in:
parent
059dc68e3f
commit
e901b448ea
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ local function attach(workspace, name, force)
|
||||||
utils.buffer.set_content(buffer, "")
|
utils.buffer.set_content(buffer, "")
|
||||||
else
|
else
|
||||||
buffer = vim.api.nvim_create_buf(true, true)
|
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_option(buffer, 'filetype', 'codemp') -- TODO get from codemp?
|
||||||
vim.api.nvim_buf_set_name(buffer, "codemp::" .. name)
|
vim.api.nvim_buf_set_name(buffer, "codemp::" .. name)
|
||||||
vim.api.nvim_set_current_buf(buffer)
|
vim.api.nvim_set_current_buf(buffer)
|
||||||
|
|
Loading…
Reference in a new issue