From 192910db5d5eec1bc6b14ad682503b99c0487146 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 28 Sep 2024 00:17:39 +0200 Subject: [PATCH] fix: set fileformat later, maybe fixes gitsigns? --- lua/codemp/buffers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codemp/buffers.lua b/lua/codemp/buffers.lua index e979bd6..6559995 100644 --- a/lua/codemp/buffers.lua +++ b/lua/codemp/buffers.lua @@ -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)