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