add gdefault in nvim config

This commit is contained in:
jacekpoz 2024-10-02 20:09:00 +02:00
parent 9d1787a6c0
commit 30c14ac2c9
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -42,6 +42,10 @@ in {
useSystemClipboard = false; useSystemClipboard = false;
luaConfigPost = concatStrings [ luaConfigPost = concatStrings [
# no need to add /g at the end of a search and replace
''
vim.opt.gdefault = true
''
# https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/programs/terminal/editors/neovim/lua/core.lua#L34-L42 # https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/programs/terminal/editors/neovim/lua/core.lua#L34-L42
'' ''
vim.opt.formatoptions:remove('c') vim.opt.formatoptions:remove('c')