diff options
author | Famiu Haque <famiuhaque@proton.me> | 2024-11-03 16:36:26 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@proton.me> | 2024-11-05 02:36:51 +0600 |
commit | cbc9a03f58394bbb85bbe70c48856cc1efca4ab7 (patch) | |
tree | 74560c2f8f05818f10ce01d8febba3c5ee250eae /src/nvim/options.lua | |
parent | 079e5f4f9b67a5aa2c1b481ce78711bf8c76caea (diff) | |
download | rneovim-cbc9a03f58394bbb85bbe70c48856cc1efca4ab7.tar.gz rneovim-cbc9a03f58394bbb85bbe70c48856cc1efca4ab7.tar.bz2 rneovim-cbc9a03f58394bbb85bbe70c48856cc1efca4ab7.zip |
refactor(options): remove fileformat macros
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 71f04a4dde..e648d4350a 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -2684,7 +2684,9 @@ return { abbreviation = 'ff', cb = 'did_set_fileformat', defaults = { - if_true = macros('DFLT_FF', 'string'), + condition = 'USE_CRNL', + if_true = 'dos', + if_false = 'unix', doc = 'Windows: "dos", Unix: "unix"', }, desc = [=[ @@ -2717,7 +2719,9 @@ return { abbreviation = 'ffs', cb = 'did_set_fileformats', defaults = { - if_true = macros('DFLT_FFS_VIM', 'string'), + condition = 'USE_CRNL', + if_true = 'dos,unix', + if_false = 'unix,dos', doc = 'Windows: "dos,unix", Unix: "unix,dos"', }, deny_duplicates = true, |