laptop
Elias Almqvist 9 months ago
parent 5f6704d7d4
commit 40592e984c
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 2
      nvchad/.config/nvim/lua/custom/init.lua
  2. 31
      nvchad/.config/nvim/lua/custom/plugins.lua

@ -5,3 +5,5 @@
-- pattern = "*", -- pattern = "*",
-- command = "tabdo wincmd =", -- command = "tabdo wincmd =",
-- }) -- })
vim.opt.mouse = ""

@ -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

Loading…
Cancel
Save