blob: 5cd25d4e3a1312e124a47e7e0a0aae1d83bdefb2 (
plain)
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
|
;; Configuration for lsp clients.
(λ on-attach []
(vim.api.nvim_create_autocmd :LspAttach
{:callback (λ [args]
(let [{: on-attach} (require :plugins.lsp.keymaps)
buffer (. args :buf)]
(on-attach buffer)))}))
(λ config []
(on-attach)
(let [diagnostics (require :plugins.lsp.diagnostics)
mason-lspconfig (require :plugins.lsp.mason-lspconfig)
ui (require :lspconfig.ui.windows)]
(set ui.default_options.border :single)
(diagnostics.setup)
(mason-lspconfig.setup)))
{1 :neovim/nvim-lspconfig
:event [:BufReadPost :BufNewFile]
:dependencies [:mason.nvim
:williamboman/mason-lspconfig.nvim
:b0o/schemastore.nvim
:saghen/blink.cmp]
: config}
|