Merge with upstream
This commit is contained in:
parent
9bce0ad153
commit
84d2e3c61c
8
init.lua
8
init.lua
@ -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()
|
||||
|
@ -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"
|
||||
theme = "nightowl"
|
||||
|
||||
-- hl_override = {
|
||||
-- Comment = { italic = true },
|
||||
-- ["@comment"] = { italic = true },
|
||||
-- },
|
||||
}
|
||||
|
||||
-- M.plugins = "plugins"
|
||||
-- M.mappings = require "mappings"
|
||||
|
||||
|
||||
return M
|
||||
|
@ -12,4 +12,4 @@ local options = {
|
||||
-- },
|
||||
}
|
||||
|
||||
require("conform").setup(options)
|
||||
return options
|
||||
|
@ -1,3 +1,5 @@
|
||||
-- load defaults i.e lua_lsp
|
||||
require("nvchad.configs.lspconfig").defaults()
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
lspconfig.pylsp.setup{
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
@ -24,10 +22,9 @@ return {
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function ()
|
||||
require "nvchad.configs.lspconfig"
|
||||
config = function()
|
||||
require "configs.lspconfig"
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/vim-arduino",
|
||||
|
Loading…
Reference in New Issue
Block a user