viminal2/fnl/lsp/init.fnl

28 lines
1.5 KiB
Text
Raw Normal View History

2025-02-01 03:00:48 -08:00
{:setup (fn []
(local symbols {:Error "󰅙" :Info "󰋼" :Hint "󰌵" :Warn ""})
(each [name icon (pairs symbols)]
(let [hl (.. :DiagnosticSign name)]
(vim.fn.sign_define hl {:text icon :numhl hl :texthl hl})))
(let [lspconfig (require :lspconfig)]
(lspconfig.lua_ls.setup {:settings {:Lua {:runtime {:version :LuaJIT}
:diagnostics {:globals [:nixCats]}
:telemetry {:enable false}}}})
(lspconfig.nixd.setup {})
(lspconfig.marksman.setup {})
(lspconfig.tinymist.setup {:offset_encoding :utf-8})
(lspconfig.svelte.setup {})
(lspconfig.texlab.setup {})
(lspconfig.clangd.setup {})
(lspconfig.mesonlsp.setup {})
(lspconfig.nushell.setup {})
(lspconfig.harper_ls.setup {:settings {:harper-ls {:linters {:SentenceCapitalization false}}}})
(lspconfig.fennel_ls.setup {})
2025-03-01 21:13:29 -08:00
(lspconfig.elmls.setup {})
2025-03-01 21:32:04 -08:00
(lspconfig.purescriptls.setup {:command :purescript-language-server
:args [:stdio "--config {}"]
:filetypes [:purescript]
:rootPatterns [:bower.json
:psc-package.json
:spago.dhall]}))
2025-02-01 03:00:48 -08:00
{})}