Fork me on GitHub

I'm trying to setup neovim. I'm using ale for linting. I can't figure out how to get formatting to work. I know there is a vim-cljfmt but it seems to require fireplace. In vscode pressing tab formats the file, can I do this in nvim?


Yes, it is possible. It's more involved than vscode. I have it set up with nvim-lspconfig. You'll need to also have clojure-lsp installed on your workstation.


lspconfig sets up the configurations needed for many lsp's out there. Then you just enable the ones you want.


As @U35G2V78U I also use clojure-lsp with nvim-lspconfig to format my files