minor refactoring
moved the lsp.signature to ui repo to be available for non-nvchad users too
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
dofile(vim.g.base46_cache .. "git")
|
||||
|
||||
local options = {
|
||||
signs = {
|
||||
add = { text = "│" },
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
dofile(vim.g.base46_cache .. "mason")
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua-language-server", 'stylua' }, -- not an option from mason.nvim
|
||||
ensure_installed = { "lua-language-server", "stylua" }, -- not an option from mason.nvim
|
||||
|
||||
PATH = "skip",
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
dofile(vim.g.base46_cache .. "nvimtree")
|
||||
|
||||
local options = {
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
dofile(vim.g.base46_cache .. "telescope")
|
||||
|
||||
local options = {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
dofile(vim.g.base46_cache .. "syntax")
|
||||
dofile(vim.g.base46_cache .. "treesitter")
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc" },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user