tidalcycles / vim-tidal

Vim plugin for TidalCycles
MIT License
222 stars 56 forks source link

vim-tidal in nvim doesn't seem to use Vim haskell tabbing behavior, nvim 0.4.0/0.5 in Linux Mint. #57

Open usrfriendly opened 3 years ago

usrfriendly commented 3 years ago

I have a tidal file I use as sort of a default. The editing behavior is different than it typically is. I'm using Linux Mint with nvim 0.4.0, but saw the same effect in 0.5 (run via appimage).

My understanding is tabs should be represented as two spaces, while they're being shown as full tabs, with equivalent width to 8 spaces.

An example of why this is an issue:

The code below, with the expected tab behavior (tab = 2 spaces)

do
  let inverse 1=0
      inverse 0=1  
  d1 $ s "909bd"

executes while

do
  let inverse 1=0
      inverse 0=1  
        d1 $ s "909bd"

fails out with this in the REPL:

<interactive>:14:1: error:                                                                                                                                                                                                                    
    Unexpected do block in function application:                                                                                                                                                                                              
        do let inverse 1 = 0                                                                                                                                                                                                                  
               inverse 0 = 1                                                                                                                                                                                                                  
    You could write it with parentheses                                                                                                                                                                                                       
    Or perhaps you meant to enable BlockArguments?

Here's my init.vim, it's currently just the stuff to get Plug, scnvim, and vim-tidal running:

call plug#begin('~/.config/nvim/plugins')
Plug 'tidalcycles/vim-tidal'
Plug 'davidgranstrom/scnvim', { 'do': {-> scnvim#install() } }
call plug#end()

" tidal-vim configs
let g:tidal_target = "terminal"