clojure.vim
clojure.vim copied to clipboard
Clojure syntax highlighting and indentation for Vim and Neovim.
I have a custom syntax regex for highlighting symbols that are in function position in a list. I've added it to clojureTop before the built-in functions list so they can...
> [!Tip] > As of the latest change, indentation is 2–3x faster with the potential to surpass 10x with Vim9script and Lua. This PR contains a rewrite of the entire...
Some plugins use `set lisp?` to determine if the file is Lisp or not. It would be cool if you had `lisp` option set just so that outside plugins may...
With the new indentation test mechanism (#26) it should be possible to run the indentation tests in Neovim too.
> **Note** > Currently waiting on #31 to be completed and merged. Create a Vim 9 script variant of the new indentation algorithm to get significant performance improves during indentation....
There are several Vim plugins for other Clojure-like Lisps that were forked from Clojure.vim or Vim-clojure-static that could benefit from the upcoming indentation improvements. - [ ] [vito/bass.vim](https://github.com/vito/bass.vim) - [...
> Regarding Neovim, until Vim9 script support is added, the "New (legacy)" code will be used. If anyone would like to volunteer to write a Lua implementation of this code...
When typing, indentation is correct, but when indenting using something like `gg=G`, the indentation becomes incorrect. The following example is in Fennel, but the idea is the same. Correct indentation:...
Unit tests could help especially with the indent fn. There are probably a few cases broken currently: https://github.com/guns/vim-clojure-static/pull/83 Not sure how these are usually done with Vimscript. We could probably...