added custom nvchad files

This commit is contained in:
serxoz 2022-07-01 11:32:35 +02:00
parent 9588f741be
commit e5cf7869b4
7 changed files with 110 additions and 0 deletions

1
nvim/README.md Normal file
View File

@ -0,0 +1 @@
custom config files for nvchad

20
nvim/custom/chadrc.lua Normal file
View File

@ -0,0 +1,20 @@
local M = {}
local override = require "custom.override"
M.plugins = {
override = {
["nvim-treesitter/nvim-treesitter"] = override.treesitter,
},
user = require "custom.plugins",
}
M.ui = {
theme = "gruvchad",
}
M.mappings = require "custom.mappings"
return M

7
nvim/custom/init.lua Normal file
View File

@ -0,0 +1,7 @@
vim.opt.rnu = true
vim.opt.colorcolumn = "80"
vim.opt.scrolloff = 8
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true

51
nvim/custom/mappings.lua Normal file
View File

@ -0,0 +1,51 @@
local M = {}
M.general = {
n = {
["<leader>ss"] = {
function()
require("harpoon.ui").toggle_quick_menu()
end,
" harpoon show menu"
},
["<leader>sa"] = {
function()
require("harpoon.mark").add_file()
end,
" harpoon add file"
},
["<leader>su"] = {
function()
require("harpoon.ui").nav_file(1)
end,
" harpoon go to file 1"
},
["<leader>si"] = {
function()
require("harpoon.ui").nav_file(2)
end,
" harpoon go to file 2"
},
["<leader>so"] = {
function()
require("harpoon.ui").nav_file(3)
end,
" harpoon go to file 3"
},
["<leader>sp"] = {
function()
require("harpoon.ui").nav_file(4)
end,
" harpoon go to file 4"
},
}
}
M.telescope = {
n = {
["<leader>fg"] = { "<cmd> Telescope live_grep <CR>", " live grep" },
["<leader>fm"] = { "<cmd> Telescope marks <CR>", " marks" },
}
}
return M

20
nvim/custom/override.lua Normal file
View File

@ -0,0 +1,20 @@
local M = {}
M.treesitter = {
ensure_installed = {
"vim",
"html",
"css",
"javascript",
"json",
"toml",
"markdown",
"c",
"bash",
"lua",
"python",
"go",
},
}
return M

View File

@ -0,0 +1,2 @@
local M = {}
return M

View File

@ -0,0 +1,9 @@
return {
-- ['nvim-lua/plenary.nvim'] = {},
['ThePrimeagen/harpoon'] = {
ft = "harpoon",
config = function()
require "custom.plugins.harpoon"
end,
},
}