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

the => are not aligned #157

Open
Dan33l opened this issue Sep 24, 2024 · 0 comments
Open

the => are not aligned #157

Dan33l opened this issue Sep 24, 2024 · 0 comments

Comments

@Dan33l
Copy link

Dan33l commented Sep 24, 2024

Expected Behavior

The => used in one resource are all aligned.

Steps to Reproduce

  1. Write into pp document
file { '/tmp/foo':
  ensure => directory,
  mode =
  1. With cursor at end of line 3, hit the key >.
  2. The two => are aligned.

Environment

  • Version 1.0.0 in directory ~/.vim/pack/plugins/start/
  • Platform Ubuntu 24.04, vim 9.1 (from deb package)
  • Installed plugins : vim-airline, vim-json, vim-puppet, vim-ruby, yaml-vim, coc
  • ~/.vimrc (but an empty file change nothing)
syntax on

" don't care for concealing with json files
let g:vim_json_syntax_conceal = 0

" To ensure that warning and error messages show in the status line
set statusline+=%{coc#status()}

set autoindent
set smartindent

" Update title of window or terminal
set title

" Enable line numbers
set number

" Max memory to use for pattern matching
set maxmempattern=40000

" Highlight non-ASCII characters
" https://stackoverflow.com/a/26209681
highlight NonASCII ctermbg=DarkRed guibg=DarkRed
call matchadd('NonASCII', '[^\u0000-\u007F]')

" Highlight Literal Tabs
highlight LiteralTab ctermbg=Yellow guibg=Yellow
call matchadd('LiteralTab', '\t')

" Highlight Trailing Whitespace
highlight TrailingWhitespace ctermbg=White guibg=White
call matchadd('TrailingWhitespace', '\s\+$')

autocmd BufNewFile,BufRead *.pp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.rb setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.erb setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.epp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd BufNewFile,BufRead *.json setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 conceallevel=0

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