added custom nvchad files
This commit is contained in:
parent
9588f741be
commit
e5cf7869b4
1
nvim/README.md
Normal file
1
nvim/README.md
Normal file
@ -0,0 +1 @@
|
||||
custom config files for nvchad
|
20
nvim/custom/chadrc.lua
Normal file
20
nvim/custom/chadrc.lua
Normal 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
7
nvim/custom/init.lua
Normal 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
51
nvim/custom/mappings.lua
Normal 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
20
nvim/custom/override.lua
Normal 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
|
2
nvim/custom/plugins/harpoon.lua
Normal file
2
nvim/custom/plugins/harpoon.lua
Normal file
@ -0,0 +1,2 @@
|
||||
local M = {}
|
||||
return M
|
9
nvim/custom/plugins/init.lua
Normal file
9
nvim/custom/plugins/init.lua
Normal file
@ -0,0 +1,9 @@
|
||||
return {
|
||||
-- ['nvim-lua/plenary.nvim'] = {},
|
||||
['ThePrimeagen/harpoon'] = {
|
||||
ft = "harpoon",
|
||||
config = function()
|
||||
require "custom.plugins.harpoon"
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user