minor refactoring

moved the lsp.signature to ui repo to be available for non-nvchad users too
This commit is contained in:
siduck
2024-06-27 09:28:14 +05:30
parent 61b336c030
commit 230b6c867e
8 changed files with 15 additions and 16 deletions
+1 -7
View File
@@ -1,9 +1,8 @@
local M = {}
local map = vim.keymap.set
local conf = require("nvconfig").ui.lsp
-- export on_attach & capabilities
M.on_attach = function(client, bufnr)
M.on_attach = function(_, bufnr)
local function opts(desc)
return { buffer = bufnr, desc = "LSP " .. desc }
end
@@ -27,11 +26,6 @@ M.on_attach = function(client, bufnr)
map({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, opts "Code action")
map("n", "gr", vim.lsp.buf.references, opts "Show references")
-- setup signature popup
if conf.signature and client.server_capabilities.signatureHelpProvider then
require("nvchad.lsp.signature").setup(client, bufnr)
end
end
-- disable semanticTokens