datwaft / nvim.conf

datwaft's neovim configuration
114 stars 6 forks source link

fix: augroup! macro only executes the first statement #10

Closed datwaft closed 3 years ago

datwaft commented 3 years ago

augroup! macro only executes the first statement.

e.g.

; Set terminal options
(augroup! terminal-options
          ; Enter Terminal-mode (insert) automatically
          (autocmd! TermOpen *
                    "startinsert")
          ; Disables line number on terminal buffers
          (autocmd! TermOpen *
                    #(do
                       (set-local! nonumber)
                       (set-local! norelativenumber)))
          ; Disables spell on terminal buffers
          (autocmd! TermOpen *
                    #(set-local! nospell))
          ; Disables sign column on terminal buffers
          (autocmd! TermOpen *
                    #(set-local! signcolumn :no)))

Expected result

augroup! should execute all statements.

Result

augroup! only executes the first autocmd!.

datwaft commented 3 years ago

Fixed by ae844912e39c2fd29149ad34369baa4a8e9b32b1.