Fork me on GitHub
#conjure
<
2022-01-06
>
Abhinav02:01:42

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?

berkeleytrue04:01:12

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. https://github.com/neovim/nvim-lspconfig/

berkeleytrue04:01:42

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

rafaeldelboni12:01:42

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