mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
fix: set fileformat later, maybe fixes gitsigns?
This commit is contained in:
parent
eb240ec6fc
commit
192910db5d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,6 @@ local function attach(name, opts)
|
||||||
buffer = vim.api.nvim_get_current_buf()
|
buffer = vim.api.nvim_get_current_buf()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.api.nvim_set_option_value('fileformat', 'unix', { buf = buffer })
|
|
||||||
vim.api.nvim_buf_set_name(buffer, name)
|
vim.api.nvim_buf_set_name(buffer, name)
|
||||||
|
|
||||||
CODEMP.workspace:attach(name):and_then(function (controller)
|
CODEMP.workspace:attach(name):and_then(function (controller)
|
||||||
|
@ -188,6 +187,7 @@ local function attach(name, opts)
|
||||||
|
|
||||||
local filetype = vim.filetype.match({ buf = buffer })
|
local filetype = vim.filetype.match({ buf = buffer })
|
||||||
vim.api.nvim_set_option_value("filetype", filetype, { buf = buffer })
|
vim.api.nvim_set_option_value("filetype", filetype, { buf = buffer })
|
||||||
|
vim.api.nvim_set_option_value('fileformat', 'unix', { buf = buffer })
|
||||||
print(" ++ attached to buffer " .. name)
|
print(" ++ attached to buffer " .. name)
|
||||||
require('codemp.window').update()
|
require('codemp.window').update()
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue