summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/diagnostics.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-05 19:42:18 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-05 19:42:18 +0100
commit6a8b48320abb83fdf26269b35341195f9fa89952 (patch)
tree9c950ca3f1449f900e2f12295836555eb65f0384 /fnl/config/lsp/diagnostics.fnl
parent1e5ea6839ae5d120df35eeac0ae9df759a800b7a (diff)
Add mason-null-ls and fix diagnostics
Diffstat (limited to 'fnl/config/lsp/diagnostics.fnl')
-rw-r--r--fnl/config/lsp/diagnostics.fnl14
1 files changed, 8 insertions, 6 deletions
diff --git a/fnl/config/lsp/diagnostics.fnl b/fnl/config/lsp/diagnostics.fnl
index adf098d..094685f 100644
--- a/fnl/config/lsp/diagnostics.fnl
+++ b/fnl/config/lsp/diagnostics.fnl
@@ -24,9 +24,11 @@
:header ""
:prefix ""}})
-(defn setup [] (apply-signs) (vim.diagnostic.config config)
- (set vim.lsp.handlers.textDocument/hover
- (vim.lsp.with {:border :rounded :width 60}))
- (set vim.lsp.handlers.textDocument/signatureHelp
- (vim.lsp.with vim.lsp.handlers.signature_help
- {:border :rounded :width 60})))
+(do
+ (apply-signs)
+ (vim.diagnostic.config config)
+ (set vim.lsp.handlers.textDocument/hover
+ (vim.lsp.with {:border :rounded :width 60}))
+ (set vim.lsp.handlers.textDocument/signatureHelp
+ (vim.lsp.with vim.lsp.handlers.signature_help
+ {:border :rounded :width 60})))