feat: upgrade config to nvchad 2.5

This commit is contained in:
Adrien Waksberg 2024-04-08 11:26:41 +02:00
parent 4402ee4687
commit d1b646a70b
21 changed files with 964 additions and 231 deletions

39
lua/plugins/custom.lua Normal file
View file

@ -0,0 +1,39 @@
return {
{
"NvChad/nvterm",
enabled = false,
lazy = true,
},
{
"sindrets/diffview.nvim",
},
{
"akinsho/git-conflict.nvim",
config = function()
require "configs.git-conflict"
end,
},
{
"neovim/nvim-lspconfig",
dependencies = {
-- format & linting
{
"jose-elias-alvarez/null-ls.nvim",
config = function()
require "configs.null-ls"
end,
},
},
config = function()
require("nvchad.configs.lspconfig").defaults()
require "configs.lspconfig"
end, -- Override to setup mason-lspconfig
},
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},
}

66
lua/plugins/init.lua Normal file
View file

@ -0,0 +1,66 @@
return {
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
config = function()
require "configs.conform"
end,
},
-- These are some examples, uncomment them if you want to see them work!
-- {
-- "neovim/nvim-lspconfig",
-- config = function()
-- require("nvchad.configs.lspconfig").defaults()
-- require "configs.lspconfig"
-- end,
-- },
--
{
"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",
-- shell
"bash-language-server",
"shfmt",
"shellcheck",
-- ansible
"ansible-language-server",
-- docker
"dockerfile-language-server",
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim",
"lua",
"html",
"css",
"javascript",
"typescript",
"tsx",
"c",
"markdown",
"markdown_inline",
},
indent = {
enable = true,
},
},
},
}