diff --git a/nvchad-config/README.md b/nvchad-config/README.md deleted file mode 100644 index 7966b22..0000000 --- a/nvchad-config/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Custom nvchad config - -## Prequisites - -* [neovim](https://neovim.io/) -* [nvchad](https://nvchad.com/) - -## Install - -Copy contents of this dir to `~/.config/nvim/lua/`. - diff --git a/nvchad-config/chadrc.lua b/nvchad-config/chadrc.lua deleted file mode 100644 index babdf19..0000000 --- a/nvchad-config/chadrc.lua +++ /dev/null @@ -1,19 +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 = {} - -local highlights = require "configs.highlights" - -M.base46 = { - theme = "doomchad", - theme_toggle = { "one_light", "doomchad" }, - transparency = true, - - hl_add = highlights.add, - hl_override = highlights.override, -} - -return M diff --git a/nvchad-config/configs/conform.lua b/nvchad-config/configs/conform.lua deleted file mode 100644 index 087540f..0000000 --- a/nvchad-config/configs/conform.lua +++ /dev/null @@ -1,13 +0,0 @@ -local options = { - formatters_by_ft = { - lua = { "stylua" }, - - javascript = { "prettier" }, - css = { "prettier" }, - html = { "prettier" }, - - sh = { "shfmt" }, - }, -} - -return options diff --git a/nvchad-config/configs/highlights.lua b/nvchad-config/configs/highlights.lua deleted file mode 100644 index ebf2dfb..0000000 --- a/nvchad-config/configs/highlights.lua +++ /dev/null @@ -1,19 +0,0 @@ --- To find any highlight groups: " Telescope highlights" --- Each highlight group can take a table with variables fg, bg, bold, italic, etc --- base30 variable names can also be used as colors - -local M = {} - ----@type Base46HLGroupsList -M.override = { - Comment = { - italic = true, - }, -} - ----@type HLTable -M.add = { - NvimTreeOpenedFolderName = { fg = "green", bold = true }, -} - -return M diff --git a/nvchad-config/configs/lazy.lua b/nvchad-config/configs/lazy.lua deleted file mode 100644 index cd170bd..0000000 --- a/nvchad-config/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/nvchad-config/configs/lspconfig.lua b/nvchad-config/configs/lspconfig.lua deleted file mode 100644 index 8544c9e..0000000 --- a/nvchad-config/configs/lspconfig.lua +++ /dev/null @@ -1,40 +0,0 @@ --- load defaults i.e lua_lsp -require("nvchad.configs.lspconfig").defaults() - -local lspconfig = require "lspconfig" - -local servers = { - -- front-end - "html", - "cssls", - "ts_ls", - -- back-end - "gopls", - -- static files - "jsonls", - "yamlls", - -- docker - "dockerls", - "docker_compose_language_service", -} -local nvlsp = require "nvchad.configs.lspconfig" - --- lsps with default config -for _, lsp in ipairs(servers) do - lspconfig[lsp].setup { - on_attach = nvlsp.on_attach, - on_init = nvlsp.on_init, - capabilities = nvlsp.capabilities, - } -end - -lspconfig.intelephense.setup{ - filetypes = { 'php', 'ctp' } -} - --- configuring single server, example: typescript --- lspconfig.ts_ls.setup { --- on_attach = nvlsp.on_attach, --- on_init = nvlsp.on_init, --- capabilities = nvlsp.capabilities, --- } diff --git a/nvchad-config/configs/mason.lua b/nvchad-config/configs/mason.lua deleted file mode 100644 index 515366b..0000000 --- a/nvchad-config/configs/mason.lua +++ /dev/null @@ -1,30 +0,0 @@ -local config = { - ensure_installed = { - -- lua stuff - "lua-language-server", - "stylua", - -- web dev stuff - "css-lsp", - "html-lsp", - "typescript-language-server", - "deno", - "prettier", - "json-lsp", - "yaml-language-server", - -- c/cpp stuff - "clangd", - "clang-format", - -- golang stuff - "gopls", - "goimports", - -- php stuff - "intelephense", - -- docker - "docker-compose-language-service", - "dockerfile-language-server", - -- shell stuff - "shfmt", - }, -} - -return config diff --git a/nvchad-config/configs/nvtree.lua b/nvchad-config/configs/nvtree.lua deleted file mode 100644 index 6a9a9c9..0000000 --- a/nvchad-config/configs/nvtree.lua +++ /dev/null @@ -1,17 +0,0 @@ -local config = { - git = { - enable = true, - }, - - renderer = { - highlight_git = true, - icons = { - show = { - git = true, - }, - }, - }, -} - -return config - diff --git a/nvchad-config/configs/treesitter.lua b/nvchad-config/configs/treesitter.lua deleted file mode 100644 index 3c8a6f8..0000000 --- a/nvchad-config/configs/treesitter.lua +++ /dev/null @@ -1,21 +0,0 @@ -local conf = { - ensure_installed = { - "vim", - "vimdoc", - "lua", - "html", - "css", - "javascript", - "typescript", - "tsx", - "c", - "cmake", - "markdown", - "markdown_inline", - }, - indent = { - enable = true, - }, -} - -return conf diff --git a/nvchad-config/mappings.lua b/nvchad-config/mappings.lua deleted file mode 100644 index 406e333..0000000 --- a/nvchad-config/mappings.lua +++ /dev/null @@ -1,19 +0,0 @@ -require "nvchad.mappings" - --- add yours here - -local map = vim.keymap.set - --- Normal -map("n", ";", ":", { desc = "CMD enter command mode" }) -map("n", "", function() require("nvterm.terminal").toggle "vertical" end, { desc = "open terminal" }) - --- Input -map("i", "jk", "") - --- Visual -map("v", ">", ">gv", { desc = "indent" }) - --- Terminal -map("t", "", function() require("nvterm.terminal").toggle "vertical" end, { desc = "close terminal" }) - diff --git a/nvchad-config/options.lua b/nvchad-config/options.lua deleted file mode 100644 index 738f20b..0000000 --- a/nvchad-config/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/nvchad-config/plugins/init.lua b/nvchad-config/plugins/init.lua deleted file mode 100644 index 3458bdd..0000000 --- a/nvchad-config/plugins/init.lua +++ /dev/null @@ -1,41 +0,0 @@ -return { - { - "stevearc/conform.nvim", - opts = require "configs.conform", - }, - { - "neovim/nvim-lspconfig", - config = function() - require "configs.lspconfig" - end, - }, - { - "williamboman/mason.nvim", - opts = require "configs.mason", - }, - { - "nvim-treesitter/nvim-treesitter", - opts = require "configs.treesitter", - }, - { - "nvim-tree/nvim-tree.lua", - opts = require "configs.nvtree", - }, - { - "max397574/better-escape.nvim", - event = "InsertEnter", - config = function() - require("better_escape").setup() - end, - }, - { - "stevearc/conform.nvim", - opts = require "configs.conform" - }, - { - "NvChad/nvterm", - config = function () - require("nvterm").setup() - end, - }, -}