Something went wrong. Try again.
clojure plugin for neovim
Something went wrong. Try again.
602 B · 20 lines
at main
123456789101112131415161718192021;; Based on https://github.com/clojure-vim/clojure.vim and licenced under the same terms
(when (not vim.b.undo_ftplugin) (set vim.b.did_ftplugin true)
(local cpo-save (vim.deepcopy vim.opt.cpo))
(vim.cmd "set cpo&vim")
(set vim.b.undo_ftplugin "setlocal iskeyword< define< formatoptions< comments< commentstring< lispwords<")
(vim.opt_local.iskeyword:append ["?" "-" "*" "!" "+" "/" "=" "<" ">" "." ":" "$" "%" "&" "|" "#"])
(vim.opt_local.formatoptions:remove "t")
(set vim.opt_local.comments "n:;") (set vim.opt_local.commentstring ";\\ %s")
(set vim.opt.cpo cpo-save))