Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Oct 19, 2020 · 0 comments

Comments

@usrfriendly
Copy link

usrfriendly commented Oct 19, 2020

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"

@usrfriendly usrfriendly changed the title vim-tidal in nvim doesn't seem to use Vim haskel tabbing behavior, nvim 0.4.0/0.5 in Linux Mint. vim-tidal in nvim doesn't seem to use Vim haskell tabbing behavior, nvim 0.4.0/0.5 in Linux Mint. Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant