mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +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()
|
||||
end
|
||||
|
||||
vim.api.nvim_set_option_value('fileformat', 'unix', { buf = buffer })
|
||||
vim.api.nvim_buf_set_name(buffer, name)
|
||||
|
||||
CODEMP.workspace:attach(name):and_then(function (controller)
|
||||
|
@ -188,6 +187,7 @@ local function attach(name, opts)
|
|||
|
||||
local filetype = vim.filetype.match({ 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)
|
||||
require('codemp.window').update()
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue