This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-30
Channels
- # announcements (5)
- # babashka (9)
- # beginners (48)
- # calva (300)
- # clj-kondo (9)
- # clojure (44)
- # clojure-austin (2)
- # clojure-europe (14)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (2)
- # datascript (3)
- # datomic (8)
- # exercism (5)
- # fulcro (1)
- # luminus (4)
- # music (1)
- # off-topic (12)
- # pathom (2)
- # rdf (18)
- # react (8)
- # sci (78)
- # shadow-cljs (12)
- # spacemacs (4)
- # tools-build (5)
- # tools-deps (26)
- # vim (4)
- # xtdb (8)
I’ve just started using tools.build and Neovim is doing some weird things with indentation when I edit build.clj
(ns build)
(defn hello
[_]
(println "Hello, world!"))
The filetype shows as clojure
and indentation works fine on other Clojure files under src
in the same project. Does anyone have an idea of what could be going wrong here?Very weird, it’s something about the file itself. If I copy one of my existing (properly indenting) source files over to build.clj
in the project root the indentation works properly. So everything is working fine for me now, but I’m still curious how a file could get into such a state.
That indentation definitely looks very funky. :thinking_face:
Is it possible that there are tabs in the file? There is probably a better way to check than this, but what I usually do is use this plugin's ga
binding to inspect each "space" to see if it's a space or a tab.
https://github.com/chrisbra/unicode.vim