2021-08-18 01:40:13 -04:00
|
|
|
-- IMPORTANT NOTE : This is default config, so dont change anything here. (check chadrc.lua instead)
|
|
|
|
|
2021-08-17 14:32:48 -04:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
M.ui = {
|
2021-08-17 15:03:37 -04:00
|
|
|
theme = "onedark",
|
2021-08-19 05:06:49 -04:00
|
|
|
|
|
|
|
-- theme toggle
|
|
|
|
theme_toggler = false,
|
2021-08-17 14:32:48 -04:00
|
|
|
fav_themes = {
|
|
|
|
"onedark",
|
|
|
|
"gruvchad",
|
|
|
|
},
|
2021-08-19 05:06:49 -04:00
|
|
|
|
|
|
|
-- Enable this only if your terminal has the colorscheme set which nvchad uses
|
|
|
|
-- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal
|
2021-08-19 05:09:27 -04:00
|
|
|
transparency = false,
|
2021-08-19 05:06:49 -04:00
|
|
|
|
2021-08-17 14:32:48 -04:00
|
|
|
hidden_statusline = {
|
|
|
|
-- these are filetypes, not pattern matched
|
|
|
|
"NvimTree",
|
2021-08-19 02:29:42 -04:00
|
|
|
"terminal",
|
2021-08-17 14:32:48 -04:00
|
|
|
},
|
2021-08-19 02:29:42 -04:00
|
|
|
statusline_style = "default", -- round , slant , block
|
2021-08-17 14:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
M.options = {
|
|
|
|
permanent_undo = true,
|
|
|
|
ruler = false,
|
|
|
|
hidden = true,
|
|
|
|
ignorecase = true,
|
|
|
|
mouse = "a",
|
|
|
|
cmdheight = 1,
|
|
|
|
updatetime = 250,
|
|
|
|
timeoutlen = 400,
|
|
|
|
clipboard = "unnamedplus",
|
|
|
|
number = true,
|
2021-08-18 08:13:56 -04:00
|
|
|
relativenumber = false,
|
2021-08-17 14:32:48 -04:00
|
|
|
numberwidth = 2,
|
|
|
|
expandtab = true,
|
|
|
|
shiftwidth = 2,
|
|
|
|
smartindent = true,
|
|
|
|
mapleader = " ",
|
|
|
|
autosave = false,
|
|
|
|
enable_insertNav = true, -- navigation in insertmode
|
2021-08-19 01:50:00 -04:00
|
|
|
-- used for updater
|
|
|
|
update_url = "https://github.com/NvChad/NvChad",
|
|
|
|
update_branch = "main",
|
2021-08-17 14:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
-- enable and disable plugins (false for disable)
|
|
|
|
M.plugin_status = {
|
|
|
|
-- UI
|
|
|
|
nvim_bufferline = true,
|
|
|
|
galaxyline = true,
|
|
|
|
nvim_colorizer = true,
|
|
|
|
dashboard_nvim = true,
|
|
|
|
blankline = true,
|
|
|
|
truezen_nvim = true,
|
|
|
|
better_esc = true,
|
|
|
|
-- lsp stuff
|
|
|
|
lspkind = true,
|
|
|
|
lspsignature = true,
|
|
|
|
-- git stuff
|
|
|
|
gitsigns = true,
|
|
|
|
vim_fugitive = true,
|
|
|
|
-- misc
|
|
|
|
neoformat = true,
|
|
|
|
vim_matchup = true,
|
|
|
|
autosave_nvim = true,
|
|
|
|
nvim_comment = true,
|
|
|
|
neoscroll_nvim = true,
|
|
|
|
telescope_media = true,
|
2021-08-18 10:01:02 -04:00
|
|
|
cheatsheet = true,
|
2021-08-17 14:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
-- make sure you dont use same keys twice
|
|
|
|
M.mappings = {
|
|
|
|
-- plugin specific
|
|
|
|
truezen = {
|
|
|
|
ataraxisMode = "<leader>zz",
|
|
|
|
minimalisticmode = "<leader>zm",
|
|
|
|
focusmode = "<leader>zf",
|
|
|
|
},
|
|
|
|
comment_nvim = {
|
|
|
|
comment_toggle = "<leader>/",
|
|
|
|
},
|
|
|
|
nvimtree = {
|
|
|
|
treetoggle = "<C-n>", -- file manager
|
|
|
|
},
|
|
|
|
neoformat = {
|
|
|
|
format = "<leader>fm",
|
|
|
|
},
|
|
|
|
dashboard = {
|
|
|
|
open = "<leader>db",
|
|
|
|
newfile = "<leader>fn",
|
|
|
|
bookmarks = "<leader>bm",
|
|
|
|
sessionload = "<leader>l",
|
|
|
|
sessionsave = "<leader>s",
|
|
|
|
},
|
|
|
|
telescope = {
|
|
|
|
live_grep = "<leader>fw",
|
|
|
|
git_status = "<leader>gt",
|
|
|
|
git_commits = "<leader>cm",
|
|
|
|
find_files = "<leader>ff",
|
|
|
|
buffers = "<leader>fb",
|
|
|
|
help_tags = "<leader>fh",
|
|
|
|
oldfiles = "<leader>fo",
|
|
|
|
themes = "<leader>th",
|
|
|
|
},
|
|
|
|
telescope_media = {
|
|
|
|
media_files = "<leader>fp",
|
|
|
|
},
|
|
|
|
chadsheet = {
|
|
|
|
default_keys = "<leader>dk",
|
|
|
|
user_keys = "<leader>uk",
|
|
|
|
},
|
|
|
|
bufferline = {
|
|
|
|
new_buffer = "<S-t>",
|
|
|
|
newtab = "<C-t>b",
|
2021-08-19 07:07:27 -04:00
|
|
|
close = "<S-x>", -- close a buffer with custom func in utils.lua
|
2021-08-17 14:32:48 -04:00
|
|
|
cycleNext = "<TAB>", -- next buffer
|
|
|
|
cyclePrev = "<S-Tab>", -- previous buffer
|
|
|
|
},
|
|
|
|
fugitive = {
|
|
|
|
Git = "<leader>gs",
|
|
|
|
diffget_2 = "<leader>gh",
|
|
|
|
diffget_3 = "<leader>gl",
|
|
|
|
git_blame = "<leader>gb",
|
|
|
|
},
|
2021-08-19 07:07:27 -04:00
|
|
|
terms = { -- below are NvChad mappings, not plugin mappings
|
|
|
|
esc_termmode = "jk",
|
|
|
|
esc_hide_termmode = "JK",
|
|
|
|
pick_term = "<leader>W", -- note: this is a telescope extension
|
|
|
|
new_wind = "<leader>w",
|
|
|
|
new_vert = "<leader>v",
|
|
|
|
new_hori = "<leader>h",
|
|
|
|
}, -- navigation in insert mode
|
2021-08-17 14:32:48 -04:00
|
|
|
insert_nav = {
|
|
|
|
forward = "<C-l>",
|
|
|
|
backward = "<C-h>",
|
|
|
|
top_of_line = "<C-a>",
|
|
|
|
end_of_line = "<C-e>",
|
|
|
|
prev_line = "<C-j>",
|
|
|
|
next_line = "<C-k>",
|
|
|
|
},
|
|
|
|
-- non plugin
|
|
|
|
misc = {
|
|
|
|
esc_Termmode = "jk", -- get out of terminal mode
|
|
|
|
close_buffer = "<S-x>", -- close current focused buffer
|
|
|
|
copywhole_file = "<C-a>",
|
|
|
|
toggle_linenr = "<leader>n", -- show or hide line number
|
|
|
|
theme_toggle = "<leader>x",
|
2021-08-18 01:15:27 -04:00
|
|
|
update_nvchad = "<leader>uu",
|
2021-08-17 14:32:48 -04:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
return M
|