diff options
| author | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-18 00:52:28 +0200 |
|---|---|---|
| committer | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-20 22:58:39 +0200 |
| commit | 11d50dc8934a5b9e9be73d0445789e005843dfc2 (patch) | |
| tree | c87c84806ab5fcd48f191c765650b91e1e52ce6f /fnl/plugins/lsp.fnl | |
| parent | 0f3690bd084ba3b47b4c356089b03a6df763572c (diff) | |
Diffstat (limited to 'fnl/plugins/lsp.fnl')
| -rw-r--r-- | fnl/plugins/lsp.fnl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fnl/plugins/lsp.fnl b/fnl/plugins/lsp.fnl index 482916a..2ac3683 100644 --- a/fnl/plugins/lsp.fnl +++ b/fnl/plugins/lsp.fnl @@ -1,10 +1,12 @@ ;; LSP configuration. +(import-macros {: autocmd} :macros) + (λ config [] - (vim.api.nvim_create_autocmd :LspAttach - {:callback (λ [args] - (let [{: on-attach} (require :plugins.lsp.keymaps)] - (on-attach args.buf)))}) + (autocmd :LspAttach + {:callback (λ [args] + (let [{: on-attach} (require :plugins.lsp.keymaps)] + (on-attach args.buf)))}) (let [diagnostics (require :plugins.lsp.diagnostics) mason-lspconfig (require :plugins.lsp.mason-lspconfig)] (diagnostics.setup) @@ -13,7 +15,7 @@ (local icons (require :settings.icons)) [{1 :neovim/nvim-lspconfig - :event :BufNew + :event [:BufReadPre :BufNewFile] :dependencies [:mason.nvim :williamboman/mason-lspconfig.nvim :b0o/schemastore.nvim |