Skip to content

Commit

Permalink
vim: enable sexp mappings for humans in info.rkt, zuo files
Browse files Browse the repository at this point in the history
Using sexp#filetype#do_filetype() does establish the _base_ sexp
mappings, which I have configured in
links/vim/after/plugin/config/sexp.vim, but
sexp_mappings_for_regular_people sets up autocommands based on
g:sexp_filetypes. So we should set that correctly, and then use the
appropriate filetypes in sexp#filetype#do_filetype().
  • Loading branch information
benknoble committed Oct 20, 2024
1 parent a490d6a commit 2b2d355
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion links/vim/after/ftplugin/racket-info.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" Language: info
" Maintainer: Ben Knoble <[email protected]>

call sexp#filetype#do_filetype('scheme')
call sexp#filetype#do_filetype('racket-info')

let b:interpreter = 'racket'

Expand Down
2 changes: 2 additions & 0 deletions links/vim/after/ftplugin/zuo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
" Language: zuo
" Maintainer: Ben Knoble <[email protected]>

call sexp#filetype#do_filetype('zuo')

let b:interpreter = 'racket'

nmap <buffer> <Localleader>qe ysiebaquote <Esc>:silent! call repeat#set("\<Localleader>qe", -1)<CR>
Expand Down
1 change: 1 addition & 0 deletions links/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ if has('autocmd')
autocmd!
autocmd FileType * setlocal formatoptions=tcrqlnj
augroup end
let g:sexp_filetypes = 'clojure,racket,racket-info,zuo,scheme,lisp,timl'
endif
" }}}

Expand Down

0 comments on commit 2b2d355

Please sign in to comment.