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 = " "
-- bootstrap lazy and all plugins
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"
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end
@ -20,9 +20,6 @@ require("lazy").setup({
lazy = false,
branch = "v2.5",
import = "nvchad.plugins",
config = function()
require "options"
end,
},
{ import = "plugins" },
@ -32,6 +29,7 @@ require("lazy").setup({
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")
require "options"
require "nvchad.autocmds"
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
local M = {}
M.base46 = {
theme = "nightowl"
-- hl_override = {
-- Comment = { italic = true },
-- ["@comment"] = { italic = true },
-- },
}
-- M.plugins = "plugins"
-- M.mappings = require "mappings"
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")
lspconfig.pylsp.setup{

View File

@ -1,11 +1,17 @@
require "nvchad.mappings"
-- add yours here
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
map('n', 'Y', 'Y')
--
-- Copilot mappings
map('i', '<C-]>', 'copilot#Accept("\\<CR>")', {
expr = true,

View File

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