|
|
|
@ -32,16 +32,17 @@
|
|
|
|
|
|
|
|
|
|
(lspconfig.ansiblels.setup {})
|
|
|
|
|
(lspconfig.fennel_ls.setup {:settings {:fennel-ls {:extra-globals "hs spoon vim"}}})
|
|
|
|
|
(lspconfig.ruff.setup {})
|
|
|
|
|
(lspconfig.terraformls.setup {})
|
|
|
|
|
|
|
|
|
|
;;; pyright
|
|
|
|
|
;;; python
|
|
|
|
|
|
|
|
|
|
(lspconfig.pyright.setup {:autostart false})
|
|
|
|
|
(lspconfig.ruff.setup {:autostart false})
|
|
|
|
|
(nvim-create-autocmd :FileType
|
|
|
|
|
{:pattern :python
|
|
|
|
|
:callback #(if (= (vim.fn.executable :pyright) 1)
|
|
|
|
|
(vim.cmd :LspStart))})
|
|
|
|
|
:callback #(each [_ lsp (ipairs [:pyright :ruff])]
|
|
|
|
|
(if (= (vim.fn.executable lsp) 1)
|
|
|
|
|
(vim.cmd :LspStart lsp)))})
|
|
|
|
|
|
|
|
|
|
(let [{: setup} lspconfig.yamlls
|
|
|
|
|
schemas {"https://json.schemastore.org/github-workflow.json" :/.github/workflows/*}]
|
|
|
|
|