Merge with upstream

This commit is contained in:
Daniele Viganò 2025-01-05 18:48:43 +01:00
parent 9bce0ad153
commit 84d2e3c61c
6 changed files with 27 additions and 19 deletions

View File

@ -1,10 +1,10 @@
vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/" vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.mapleader = " " vim.g.mapleader = " "
-- bootstrap lazy and all plugins -- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not vim.uv.fs_stat(lazypath) then
local repo = "https://github.com/folke/lazy.nvim.git" local repo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath } vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end end
@ -20,9 +20,6 @@ require("lazy").setup({
lazy = false, lazy = false,
branch = "v2.5", branch = "v2.5",
import = "nvchad.plugins", import = "nvchad.plugins",
config = function()
require "options"
end,
}, },
{ import = "plugins" }, { import = "plugins" },
@ -32,6 +29,7 @@ require("lazy").setup({
dofile(vim.g.base46_cache .. "defaults") dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline") dofile(vim.g.base46_cache .. "statusline")
require "options"
require "nvchad.autocmds" require "nvchad.autocmds"
vim.schedule(function() vim.schedule(function()

View File

@ -1,12 +1,17 @@
-- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua
-- Please read that file to know all available options :(
---@type ChadrcConfig ---@type ChadrcConfig
local M = {} local M = {}
M.base46 = { M.base46 = {
theme = "nightowl" theme = "nightowl"
-- hl_override = {
-- Comment = { italic = true },
-- ["@comment"] = { italic = true },
-- },
} }
-- M.plugins = "plugins"
-- M.mappings = require "mappings"
return M return M

View File

@ -12,4 +12,4 @@ local options = {
-- }, -- },
} }
require("conform").setup(options) return options

View File

@ -1,3 +1,5 @@
-- load defaults i.e lua_lsp
require("nvchad.configs.lspconfig").defaults()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
lspconfig.pylsp.setup{ lspconfig.pylsp.setup{

View File

@ -1,11 +1,17 @@
require "nvchad.mappings" require "nvchad.mappings"
-- add yours here
local map = vim.keymap.set local map = vim.keymap.set
-- map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
-- restore shift-y line copy -- restore shift-y line copy
map('n', 'Y', 'Y') map('n', 'Y', 'Y')
--
-- Copilot mappings -- Copilot mappings
map('i', '<C-]>', 'copilot#Accept("\\<CR>")', { map('i', '<C-]>', 'copilot#Accept("\\<CR>")', {
expr = true, expr = true,

View File

@ -6,9 +6,7 @@ return {
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save -- event = 'BufWritePre', -- uncomment for format on save
config = function() opts = require "configs.conform",
require "configs.conform"
end,
}, },
{ {
"williamboman/mason.nvim", "williamboman/mason.nvim",
@ -24,10 +22,9 @@ return {
}, },
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
config = function () config = function()
require "nvchad.configs.lspconfig"
require "configs.lspconfig" require "configs.lspconfig"
end end,
}, },
{ {
"stevearc/vim-arduino", "stevearc/vim-arduino",