dotfiles/.config/nvim/fnl/config/lsp/servers.fnl

34 lines
1.3 KiB
Plaintext
Raw Normal View History

(import-macros {: setup : reqcall} :macros)
(import-macros {: merge} :core_macros)
(local setup_ls (require :config.lsp.setup_ls))
(local mason_utils (require :config.lsp.mason))
;; init servers with manual configuration
2022-09-11 06:34:58 +00:00
(local schemastore (require :schemastore))
2022-09-20 05:08:07 +00:00
(setup_ls :jsonls {:settings {:json {:validate {:enable true}
:schemas (schemastore.json.schemas)}}})
2022-09-20 05:08:07 +00:00
(setup_ls :yamlls {:settings {:yaml {:schemaStore {:enable true}}}})
2022-09-11 06:34:58 +00:00
2022-09-20 05:08:07 +00:00
(setup_ls :taplo {:settings {:toml {:schemas (schemastore.json.schemas)}}})
2022-09-20 05:08:07 +00:00
(setup_ls :jdtls {:init_options {:extendedClientCapabilities {:progressReportProvider false}}})
2022-09-24 22:40:36 +00:00
(local globals [])
2022-09-24 23:13:44 +00:00
(local workspace {})
(when vim.env.MPV_LUA (table.insert globals :mp))
2022-09-24 22:40:36 +00:00
(when vim.env.AEGISUB_LUA (table.insert globals :aegisub))
2022-09-24 23:13:44 +00:00
(when vim.env.NVIM_LUA
(setup :lua-dev {})
(set workspace.library (vim.api.nvim_get_runtime_file "" true)))
2022-09-24 22:40:36 +00:00
2022-09-24 23:13:44 +00:00
(setup_ls :sumneko_lua {:settings {:Lua {:diagnostics {:globals globals}
:runtime {:version "LuaJIT"}
:workspace workspace
:telemetry {:enable false}}}})
(mason_utils.setup_installed_servers :pyright :clangd :lemminx :tsserver :vimls)