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 dot and the colon shouldn't be part of iskeyword #9

Open
yohannd1 opened this issue Jun 30, 2021 · 0 comments · May be fixed by #10
Open

The dot and the colon shouldn't be part of iskeyword #9

yohannd1 opened this issue Jun 30, 2021 · 0 comments · May be fixed by #10

Comments

@yohannd1
Copy link

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|
         +--------------------+
@yohannd1 yohannd1 linked a pull request Jun 30, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant