From e1a0c21a6ec5d100582a67ce16306019588174b2 Mon Sep 17 00:00:00 2001 From: poslop Date: Fri, 6 Feb 2026 09:22:25 -0600 Subject: [PATCH] base --- .stylua.toml | 2 +- LICENSE | 24 -------------------- README.md | 13 ----------- init.lua | 38 +------------------------------ lua/autocmds.lua | 1 - lua/chadrc.lua | 24 -------------------- lua/configs/conform.lua | 15 ------------- lua/configs/lazy.lua | 47 --------------------------------------- lua/configs/lspconfig.lua | 6 ----- lua/mappings.lua | 10 --------- lua/options.lua | 6 ----- lua/plugins/conform.lua | 6 ----- lua/plugins/lsp.lua | 8 ------- lua/plugins/markdown.lua | 6 ++--- lua/plugins/mason.lua | 17 -------------- 15 files changed, 5 insertions(+), 218 deletions(-) delete mode 100644 LICENSE delete mode 100644 README.md delete mode 100644 lua/autocmds.lua delete mode 100644 lua/chadrc.lua delete mode 100644 lua/configs/conform.lua delete mode 100644 lua/configs/lazy.lua delete mode 100644 lua/configs/lspconfig.lua delete mode 100644 lua/mappings.lua delete mode 100644 lua/options.lua delete mode 100644 lua/plugins/conform.lua delete mode 100644 lua/plugins/lsp.lua delete mode 100644 lua/plugins/mason.lua diff --git a/.stylua.toml b/.stylua.toml index ca1541c..ecb6dca 100644 --- a/.stylua.toml +++ b/.stylua.toml @@ -1,6 +1,6 @@ column_width = 120 line_endings = "Unix" indent_type = "Spaces" -indent_width = 4 +indent_width = 2 quote_style = "AutoPreferDouble" call_parentheses = "None" diff --git a/LICENSE b/LICENSE deleted file mode 100644 index fdddb29..0000000 --- a/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to diff --git a/README.md b/README.md deleted file mode 100644 index f988418..0000000 --- a/README.md +++ /dev/null @@ -1,13 +0,0 @@ -## Install -``` -git clone https://git.archfox.org/poslop/nvbad ~/.config/nvim && nvim -``` -**This repo is supposed to be used as config by NvChad users!** - -- The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo. -- So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"` -- So you can delete the .git from this repo ( when you clone it locally ) or fork it :) - -# Credits - -1) Lazyvim starter https://github.com/LazyVim/starter as nvchad's starter was inspired by Lazyvim's . It made a lot of things easier! diff --git a/init.lua b/init.lua index e861b68..55b8979 100644 --- a/init.lua +++ b/init.lua @@ -1,37 +1 @@ -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.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 - -vim.opt.rtp:prepend(lazypath) - -local lazy_config = require "configs.lazy" - --- load plugins -require("lazy").setup({ - { - "NvChad/NvChad", - lazy = false, - branch = "v2.5", - import = "nvchad.plugins", - }, - - { import = "plugins" }, -}, lazy_config) - --- load theme -dofile(vim.g.base46_cache .. "defaults") -dofile(vim.g.base46_cache .. "statusline") - -require "options" -require "autocmds" - -vim.schedule(function() - require "mappings" -end) +require("config.lazy") diff --git a/lua/autocmds.lua b/lua/autocmds.lua deleted file mode 100644 index d2db0bb..0000000 --- a/lua/autocmds.lua +++ /dev/null @@ -1 +0,0 @@ -require "nvchad.autocmds" diff --git a/lua/chadrc.lua b/lua/chadrc.lua deleted file mode 100644 index 9eca87c..0000000 --- a/lua/chadrc.lua +++ /dev/null @@ -1,24 +0,0 @@ --- 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 = "onedark", - - -- hl_override = { - -- Comment = { italic = true }, - -- ["@comment"] = { italic = true }, - -- }, -} - --- M.nvdash = { load_on_startup = true } --- M.ui = { --- tabufline = { --- lazyload = false --- } --- } - -return M diff --git a/lua/configs/conform.lua b/lua/configs/conform.lua deleted file mode 100644 index 35ba6cf..0000000 --- a/lua/configs/conform.lua +++ /dev/null @@ -1,15 +0,0 @@ -local options = { - formatters_by_ft = { - lua = { "stylua" }, - -- css = { "prettier" }, - -- html = { "prettier" }, - }, - - -- format_on_save = { - -- -- These options will be passed to conform.format() - -- timeout_ms = 500, - -- lsp_fallback = true, - -- }, -} - -return options diff --git a/lua/configs/lazy.lua b/lua/configs/lazy.lua deleted file mode 100644 index cd170bd..0000000 --- a/lua/configs/lazy.lua +++ /dev/null @@ -1,47 +0,0 @@ -return { - defaults = { lazy = true }, - install = { colorscheme = { "nvchad" } }, - - ui = { - icons = { - ft = "", - lazy = "󰂠 ", - loaded = "", - not_loaded = "", - }, - }, - - performance = { - rtp = { - disabled_plugins = { - "2html_plugin", - "tohtml", - "getscript", - "getscriptPlugin", - "gzip", - "logipat", - "netrw", - "netrwPlugin", - "netrwSettings", - "netrwFileHandlers", - "matchit", - "tar", - "tarPlugin", - "rrhelper", - "spellfile_plugin", - "vimball", - "vimballPlugin", - "zip", - "zipPlugin", - "tutor", - "rplugin", - "syntax", - "synmenu", - "optwin", - "compiler", - "bugreport", - "ftplugin", - }, - }, - }, -} diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua deleted file mode 100644 index 40c6172..0000000 --- a/lua/configs/lspconfig.lua +++ /dev/null @@ -1,6 +0,0 @@ -require("nvchad.configs.lspconfig").defaults() - --- local servers = { "phpactor" } --- vim.lsp.enable(servers) - --- read :h vim.lsp.config for changing options of lsp servers diff --git a/lua/mappings.lua b/lua/mappings.lua deleted file mode 100644 index 783b78f..0000000 --- a/lua/mappings.lua +++ /dev/null @@ -1,10 +0,0 @@ -require "nvchad.mappings" - --- add yours here - -local map = vim.keymap.set - -map("n", ";", ":", { desc = "CMD enter command mode" }) -map("i", "jk", "") - --- map({ "n", "i", "v" }, "", " w ") diff --git a/lua/options.lua b/lua/options.lua deleted file mode 100644 index 738f20b..0000000 --- a/lua/options.lua +++ /dev/null @@ -1,6 +0,0 @@ -require "nvchad.options" - --- add yours here! - --- local o = vim.o --- o.cursorlineopt ='both' -- to enable cursorline! diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua deleted file mode 100644 index 5419cd3..0000000 --- a/lua/plugins/conform.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - { - "stevearc/conform.nvim", - opts = require "configs.conform", - } -} diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua deleted file mode 100644 index 2073196..0000000 --- a/lua/plugins/lsp.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - { - "neovim/nvim-lspconfig", - config = function() - require "configs.lspconfig" - end, - } -} diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua index ad22932..c0a37bf 100644 --- a/lua/plugins/markdown.lua +++ b/lua/plugins/markdown.lua @@ -1,5 +1,5 @@ return { - { - "iamcco/markdown-preview.nvim" - } + { + "iamcco/markdown-preview.nvim" + } } diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua deleted file mode 100644 index 167ac9f..0000000 --- a/lua/plugins/mason.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - { - "williamboman/mason-lspconfig.nvim", - event = { "BufReadPre", "BufNewFile" }, - dependencies = { - "mason-org/mason.nvim", - "neovim/nvim-lspconfig", - }, - opts = { - ensure_installed = { - "phpactor", - "lua_ls", - "nil_ls" - } - } - } -}