From 2976f7c3a2327878cb404c0a12cc08cfbfab92db Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 25 Jul 2026 20:31:38 -0600 Subject: chore: LF instead of CRLF for windows, deprecated keybinds --- lua/config/set.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/config/set.lua') diff --git a/lua/config/set.lua b/lua/config/set.lua index aaa7e42..71bf222 100644 --- a/lua/config/set.lua +++ b/lua/config/set.lua @@ -3,6 +3,12 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +-- Prefer Unix line endings, but also recognize DOS (CRLF) when reading +vim.opt.fileformats = { "unix", "dos" } + +-- Default to Unix (LF) when creating new files +vim.opt.fileformat = "unix" + vim.o.hlsearch = true vim.wo.number = true -- cgit v1.3.1