summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl18
-rw-r--r--fnl/plugins/lsp/lspconfig.fnl2
-rw-r--r--fnl/plugins/lsp/mason-lspconfig.fnl5
-rw-r--r--fnl/plugins/lsp/servers.fnl2
4 files changed, 13 insertions, 14 deletions
diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl
index 72e03cd..f312581 100644
--- a/fnl/plugins/lsp/keymaps.fnl
+++ b/fnl/plugins/lsp/keymaps.fnl
@@ -4,15 +4,15 @@
[[:n :gD "<cmd>lua vim.lsp.buf.declaration()<CR>" {:desc :Declaration}]
[:n
:gd
- "<cmd>Telescope lsp_definitions theme=dropdown<cr>"
+ "<cmd>Telescope lsp_definitions theme=get_dropdown<cr>"
{:desc :Definition}]
[:n
:gI
- "<cmd>Telescope lsp_implementations theme=dropdown<cr>"
+ "<cmd>Telescope lsp_implementations theme=get_dropdown<cr>"
{:desc :Implementation}]
[:n
:gr
- "<cmd>Telescope lsp_references theme=dropdown<cr>"
+ "<cmd>Telescope lsp_references theme=get_dropdown<cr>"
{:desc :References}]
[:n
:gl
@@ -20,24 +20,24 @@
{:desc :Diagnostics}]
[:n
:gj
- "<cmd>Telescope diagnostics theme=dropdown<cr>"
+ "<cmd>Telescope diagnostics theme=get_dropdown<cr>"
{:desc "Telescope Diagnostics"}]
[:n
:gw
- "<cmd>Telescope lsp_dynamic_workspace_symbols theme=dropdown<cr>"
+ "<cmd>Telescope lsp_dynamic_workspace_symbols theme=get_dropdown<cr>"
{:desc "Workspace Symbols"}]
[:n
:gE
- "<cmd>Telescope lsp_type_definitions theme=dropdown<cr>"
- {:desc "Workspace Symbols"}]
+ "<cmd>Telescope lsp_type_definitions theme=get_dropdown<cr>"
+ {:desc "Type Definitions"}]
[:n :gm "<cmd>lua vim.lsp.buf.signature_help()<CR>" {:desc :Signature}]
[:n
:gM
- "<cmd>Telescope lsp_document_symbols theme=dropdown<cr>"
+ "<cmd>Telescope lsp_document_symbols theme=get_dropdown<cr>"
{:desc "Document Symbols"}]
[:n :gh "<cmd>lua vim.lsp.buf.code_action()<cr>" {:desc "Code Action"}]
[:n :gb "<cmd>lua vim.lsp.codelens.run()<cr>" {:desc "Code Lens"}]
- [:n :K "<cmd>lua vim.lsp.hover()<cr>" {:desc "Hover documentation"}]
+ [:n :K "<cmd>lua vim.lsp.buf.hover()<cr>" {:desc "Hover documentation"}]
[:n :<leader>li :<cmd>LspInfo<cr> {:desc "Lsp Info"}]])
(λ on-attach [buffer]
diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl
index 5cd25d4..192954c 100644
--- a/fnl/plugins/lsp/lspconfig.fnl
+++ b/fnl/plugins/lsp/lspconfig.fnl
@@ -17,7 +17,7 @@
(mason-lspconfig.setup)))
{1 :neovim/nvim-lspconfig
- :event [:BufReadPost :BufNewFile]
+ :event :BufNew
:dependencies [:mason.nvim
:williamboman/mason-lspconfig.nvim
:b0o/schemastore.nvim
diff --git a/fnl/plugins/lsp/mason-lspconfig.fnl b/fnl/plugins/lsp/mason-lspconfig.fnl
index 429e948..48ea0b5 100644
--- a/fnl/plugins/lsp/mason-lspconfig.fnl
+++ b/fnl/plugins/lsp/mason-lspconfig.fnl
@@ -2,9 +2,8 @@
;; setup hooks for client configurations.
(local textDocument-handlers
- {:textDocument/hover (vim.lsp.with vim.lsp.handlers.hover {:border :single})
- :textDocument/signatureHelp (vim.lsp.with vim.lsp.handlers.signature_help
- {:border :single})})
+ {:textDocument/hover (vim.lsp.with vim.lsp.handlers.hover)
+ :textDocument/signatureHelp (vim.lsp.with vim.lsp.handlers.signature_help)})
(λ capabilities []
(let [blink-cmp (require :blink.cmp)]
diff --git a/fnl/plugins/lsp/servers.fnl b/fnl/plugins/lsp/servers.fnl
index fea4e89..7d213a8 100644
--- a/fnl/plugins/lsp/servers.fnl
+++ b/fnl/plugins/lsp/servers.fnl
@@ -16,7 +16,6 @@
[(vim.fn.line "$"
0)]))]}}}
:ocamllsp {}
- :pyright {}
:rust_analyzer {:settings {:rust-analyzer {:lens {:enable true}
:checkOnSave {:command :clippy}}}}
:lua_ls {:settings {:Lua {:completion {:callSnippet :Replace}
@@ -25,6 +24,7 @@
:path (vim.split package.path ";")}}}}
:taplo {}
:texlab {}
+ :ty {}
:vale_ls {:filetypes [:markdown :text :org]}
:sqls {}
:yamlls {:settings {:yaml {:schemastore {:enable false :url ""}