|
|
@ -8,15 +8,15 @@ local plugins = { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"neovim/nvim-lspconfig", |
|
|
|
"neovim/nvim-lspconfig", |
|
|
|
config = function() |
|
|
|
config = function() |
|
|
|
require "plugins.configs.lspconfig" |
|
|
|
require("plugins.configs.lspconfig") |
|
|
|
require "custom.configs.lspconfig" |
|
|
|
require("custom.configs.lspconfig") |
|
|
|
end, -- Override to setup mason-lspconfig |
|
|
|
end, -- Override to setup mason-lspconfig |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
-- override plugin configs |
|
|
|
-- override plugin configs |
|
|
|
{ |
|
|
|
{ |
|
|
|
"williamboman/mason.nvim", |
|
|
|
"williamboman/mason.nvim", |
|
|
|
opts = overrides.mason |
|
|
|
opts = overrides.mason, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
@ -43,21 +43,26 @@ local plugins = { |
|
|
|
-- for users those who want auto-save conform + lazyloading! |
|
|
|
-- for users those who want auto-save conform + lazyloading! |
|
|
|
-- event = "BufWritePre" |
|
|
|
-- event = "BufWritePre" |
|
|
|
config = function() |
|
|
|
config = function() |
|
|
|
require "custom.configs.conform" |
|
|
|
require("custom.configs.conform") |
|
|
|
end, |
|
|
|
end, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
"github/copilot.vim", |
|
|
|
"nvim-treesitter/nvim-treesitter", |
|
|
|
lazy = false, |
|
|
|
dependencies = { |
|
|
|
|
|
|
|
"JoosepAlviste/nvim-ts-context-commentstring", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
opts = overrides.treesitter, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"numToStr/Comment.nvim", |
|
|
|
|
|
|
|
dependencies = "JoosepAlviste/nvim-ts-context-commentstring", |
|
|
|
config = function() |
|
|
|
config = function() |
|
|
|
-- Mapping tab is already used by NvChad |
|
|
|
require("Comment").setup({ |
|
|
|
vim.g.copilot_no_tab_map = true; |
|
|
|
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(), |
|
|
|
vim.g.copilot_assume_mapped = true; |
|
|
|
}) |
|
|
|
vim.g.copilot_tab_fallback = ""; |
|
|
|
end, |
|
|
|
-- The mapping is set to other key, see custom/lua/mappings |
|
|
|
|
|
|
|
-- or run <leader>ch to see copilot mapping section |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
-- To make a plugin not be loaded |
|
|
|
-- To make a plugin not be loaded |
|
|
|