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