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. 127
      nvchad/.config/nvim/lua/custom/plugins.lua

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

@ -3,76 +3,81 @@ local overrides = require("custom.configs.overrides")
---@type NvPluginSpec[] ---@type NvPluginSpec[]
local plugins = { local plugins = {
-- Override plugin definition options -- Override plugin definition options
{ {
"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,
}, },
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = overrides.treesitter, opts = overrides.treesitter,
}, },
{ {
"nvim-tree/nvim-tree.lua", "nvim-tree/nvim-tree.lua",
opts = overrides.nvimtree, opts = overrides.nvimtree,
}, },
-- Install a plugin -- Install a plugin
{ {
"max397574/better-escape.nvim", "max397574/better-escape.nvim",
event = "InsertEnter", event = "InsertEnter",
config = function() config = function()
require("better_escape").setup() require("better_escape").setup()
end, end,
}, },
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
-- 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 = {
config = function() "JoosepAlviste/nvim-ts-context-commentstring",
-- Mapping tab is already used by NvChad },
vim.g.copilot_no_tab_map = true; opts = overrides.treesitter,
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
},
-- To make a plugin not be loaded {
-- { "numToStr/Comment.nvim",
-- "NvChad/nvim-colorizer.lua", dependencies = "JoosepAlviste/nvim-ts-context-commentstring",
-- enabled = false config = function()
-- }, require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
})
end,
},
-- All NvChad plugins are lazy-loaded by default -- To make a plugin not be loaded
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false` -- {
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example -- "NvChad/nvim-colorizer.lua",
-- { -- enabled = false
-- "mg979/vim-visual-multi", -- },
-- lazy = false,
-- } -- All NvChad plugins are lazy-loaded by default
-- For a plugin to be loaded, you will need to set either `ft`, `cmd`, `keys`, `event`, or set `lazy = false`
-- If you want a plugin to load on startup, add `lazy = false` to a plugin spec, for example
-- {
-- "mg979/vim-visual-multi",
-- lazy = false,
-- }
} }
return plugins return plugins

Loading…
Cancel
Save