fennel.vim
fennel.vim copied to clipboard
The dot and the colon shouldn't be part of iskeyword
Currently this plugin has:
setlocal iskeyword=!,$,%,#,*,+,-,.,/,:,<,=,>,?,_,a-z,A-Z,48-57,128-247,124,126,38,94
I don't think the .
or the :
should be in here, since they have special meaning on fennel, not being part of keyword symbols.
This ends up messsing with the word jumping mechanism:
(print some-table.some-field.some-sub-field)
;; ^ the cursor is here
;; upon pressing `w`:
(print some-table.some-field.some-sub-field)
;; the cursor is here ^
And also the completion mechanism:
(my-table.some_field)
(my-table:some_method)
(my-table+--------------------+ ;; I want my-table, some_field or some_method, not pairs of them!
|my-table.some_field |
|my-table:some_method|
+--------------------+