Configuration files for my GNU/Linux installation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/nvchad/.config/nvim/lua/plugins/init.lua

156 lines
3.1 KiB

---@type NvPluginSpec[]
local plugins = {
9 months ago
-- Override plugin definition options
9 months ago
{
"neovim/nvim-lspconfig",
config = function()
-- require "plugins.configs.lspconfig"
require "configs.lspconfig"
9 months ago
end, -- Override to setup mason-lspconfig
},
9 months ago
-- override plugin configs
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
-- lua stuff
"lua-language-server",
"stylua",
-- web dev stuff
"css-lsp",
"html-lsp",
"typescript-language-server",
"deno",
"prettier",
-- c/cpp stuff
"clangd",
"clang-format",
-- Fun/joke langs
"hls",
},
},
9 months ago
},
5 months ago
-- {
-- "nvim-treesitter/nvim-treesitter",
5 months ago
-- opts = overrides.treesitter, },
9 months ago
{
"nvim-tree/nvim-tree.lua",
opts = {
git = {
enable = true,
},
renderer = {
highlight_git = true,
icons = {
show = {
git = true,
},
},
},
},
9 months ago
},
9 months ago
-- Install a plugin
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},
9 months ago
{
"stevearc/conform.nvim",
-- for users those who want auto-save conform + lazyloading!
-- event = "BufWritePre"
config = function()
require("custom.configs.conform")
end,
},
{
"github/copilot.vim",
lazy = false,
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,
},
9 months ago
9 months ago
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"JoosepAlviste/nvim-ts-context-commentstring",
},
opts = {
ensure_installed = {
"vim",
"lua",
"html",
"css",
"javascript",
"typescript",
"tsx",
"c",
"markdown",
"markdown_inline",
"prisma",
"haskell",
"python",
"zig",
},
indent = {
enable = true,
-- disable = {
-- "python"
-- },
},
},
5 months ago
-- config = function(_, opts)
-- dofile(vim.g.base46_cache .. "syntax")
-- require("nvim-treesitter.configs").setup(opts)
--
-- -- use markdown parser for mdx files
-- vim.treesitter.language.register("mdx", "markdown", "tsx")
-- end,
9 months ago
},
9 months ago
{
"numToStr/Comment.nvim",
dependencies = "JoosepAlviste/nvim-ts-context-commentstring",
config = function()
require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
})
end,
},
9 months ago
-- To make a plugin not be loaded
-- {
-- "NvChad/nvim-colorizer.lua",
-- enabled = 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