-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathmason.fnl
36 lines (31 loc) · 1.37 KB
/
mason.fnl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(local uu (require :user.util))
(local utils (uu.autoload :astronvim.utils))
(local lspconfig (uu.autoload :lspconfig))
(local lspcfgs (uu.autoload :lspconfig.configs))
[(uu.tx
:williamboman/mason-lspconfig.nvim
{:opts (fn [_ opts]
(set opts.ensure_installed (utils.list_insert_unique opts.ensure_installed [:fennel_language_server]))
(set opts.handlers.lua_ls
(fn []
(lspconfig.lua_ls.setup
{:settings {:Lua {:diagnostics {:globals [:vim]}}}})))
(set opts.handlers.fennel_language_server
(fn []
(lspconfig.fennel_language_server.setup
{:filetypes [:fennel]
:root_dir (lspconfig.util.root_pattern :fnl :lua)
:single_file_support true
:settings {:fennel {:diagnostics {:globals [:vim :jit :comment]}
:workspace {:library (vim.api.nvim_list_runtime_paths)}}}})))
opts)})
(uu.tx
:jay-babu/mason-null-ls.nvim
{:opts (fn [_ opts]
(set opts.ensure_installed (utils.list_insert_unique opts.ensure_installed []))
opts)})
(uu.tx
:jay-babu/mason-nvim-dap.nvim
{:opts (fn [_ opts]
(set opts.ensure_installed (utils.list_insert_unique opts.ensure_installed []))
opts)})]