|
|
@ -82,10 +82,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
(local prettier (fmt "prettier --stdin-filepath ${INPUT}"))
|
|
|
|
(local prettier (fmt "prettier --stdin-filepath ${INPUT}"))
|
|
|
|
(local javascript [eslint prettier])
|
|
|
|
(local javascript [eslint prettier])
|
|
|
|
(local black (fmt "black --quiet -"))
|
|
|
|
|
|
|
|
(local flake8 (lint "flake8 --stdin-display-name ${INPUT} -" ["%f:%l:%c: %m"]))
|
|
|
|
|
|
|
|
(local isort (fmt "isort --quiet --profile black -"))
|
|
|
|
|
|
|
|
(local python [black isort])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(local yamlfmt (fmt "yamlfmt -in"))
|
|
|
|
(local yamlfmt (fmt "yamlfmt -in"))
|
|
|
|
|
|
|
|
|
|
|
@ -97,7 +93,6 @@
|
|
|
|
:completion true}
|
|
|
|
:completion true}
|
|
|
|
:settings {:languages {: fennel
|
|
|
|
:settings {:languages {: fennel
|
|
|
|
: javascript
|
|
|
|
: javascript
|
|
|
|
: python
|
|
|
|
|
|
|
|
:typescript javascript
|
|
|
|
:typescript javascript
|
|
|
|
:typescriptreact javascript
|
|
|
|
:typescriptreact javascript
|
|
|
|
:vue [prettier]
|
|
|
|
:vue [prettier]
|
|
|
@ -105,19 +100,17 @@
|
|
|
|
:filetypes [:fennel
|
|
|
|
:filetypes [:fennel
|
|
|
|
:javascript
|
|
|
|
:javascript
|
|
|
|
:typescript
|
|
|
|
:typescript
|
|
|
|
:python
|
|
|
|
|
|
|
|
:typescriptreact
|
|
|
|
:typescriptreact
|
|
|
|
:vue
|
|
|
|
:vue
|
|
|
|
:yaml]})
|
|
|
|
:yaml]})
|
|
|
|
|
|
|
|
|
|
|
|
(setup-lsp :ansiblels)
|
|
|
|
(setup-lsp :ansiblels)
|
|
|
|
(setup-lsp :elmls)
|
|
|
|
(setup-lsp :elmls)
|
|
|
|
(setup-lsp :fennel_ls {:settings {:fennel-ls {:extra-globals "hs spoon"}}})
|
|
|
|
(setup-lsp :fennel_ls {:settings {:fennel-ls {:extra-globals "hs spoon vim"}}})
|
|
|
|
(setup-lsp :pylsp {:on_attach (on-attach-do attach-navic disable-fmt)})
|
|
|
|
|
|
|
|
(setup-lsp :pyright
|
|
|
|
(setup-lsp :pyright
|
|
|
|
{:on_attach on-attach
|
|
|
|
{:on_attach on-attach
|
|
|
|
:settings {:python {:analysis {:autoImportCompletions true}}}})
|
|
|
|
:settings {:python {:analysis {:autoImportCompletions true}}}})
|
|
|
|
|
|
|
|
(setup-lsp :ruff_lsp)
|
|
|
|
(setup-lsp :rust_analyzer
|
|
|
|
(setup-lsp :rust_analyzer
|
|
|
|
{:on_attach on-attach
|
|
|
|
{:on_attach on-attach
|
|
|
|
:cmd [:rustup :run :stable :rust-analyzer]
|
|
|
|
:cmd [:rustup :run :stable :rust-analyzer]
|
|
|
|