Enable exrc if nvim is version 0.9.0 or higher

This commit is contained in:
Alexander Rosenberg 2023-04-14 14:42:38 -07:00
parent 101360066e
commit d37c20404d
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -60,6 +60,8 @@
;(set vim.opt.autochdir true)
; Enable substitute 'g' flag by default
(set vim.opt.gdefault true)
(let [ver (vim.version)]
(set vim.opt.exrc (or (> ver.major 0) (>= ver.minor 9))))
;; Remove trailing whitespace
(fn remove-trailing-whitespace []