-- IMPORTANT NOTE : This is default config, so dont change anything here. -- use custom/chadrc.lua instead local M = {} M.options = { -- custom = {} -- general nvim/vim options , check :h optionname to know more about an option clipboard = "unnamedplus", cmdheight = 1, ruler = false, hidden = true, ignorecase = true, smartcase = true, mapleader = " ", mouse = "a", number = true, numberwidth = 2, relativenumber = false, expandtab = true, shiftwidth = 2, smartindent = true, tabstop = 8, timeoutlen = 400, updatetime = 250, undofile = true, fillchars = { eob = " " }, -- NvChad options nvChad = { copy_cut = true, -- copy cut text ( x key ), visual and normal mode copy_del = true, -- copy deleted text ( dd key ), visual and normal mode insert_nav = true, -- navigation in insertmode window_nav = true, -- updater update_url = "https://github.com/NvChad/NvChad", update_branch = "main", }, } ---- UI ----- M.ui = { hl_override = "", -- path of your file that contains highlights italic_comments = false, theme = "onedark", -- default theme -- Change terminal bg to nvim theme's bg color so it'll match well -- For Ex : if you have onedark set in nvchad, set onedark's bg color on your terminal transparency = false, } ---- PLUGIN OPTIONS ---- M.plugins = { -- enable/disable plugins (false for disable) status = { blankline = true, -- indentline stuff bufferline = true, -- manage and preview opened buffers colorizer = false, -- color RGB, HEX, CSS, NAME color codes comment = true, -- easily (un)comment code, language aware dashboard = false, better_escape = true, -- map to with no lag feline = true, -- statusline gitsigns = true, lspsignature = true, -- lsp enhancements telescope_media = false, vim_matchup = true, -- improved matchit cmp = true, nvimtree = true, autopairs = true, }, options = { autopairs = { loadAfter = "nvim-cmp" }, lspconfig = { setup_lspconf = "", -- path of file containing setups of different lsps }, nvimtree = { enable_git = 0, -- packerCompile required after changing lazy_load lazy_load = true, ui = { allow_resize = true, side = "left", width = 25, hide_root_folder = true, }, }, luasnip = { snippet_path = {}, }, statusline = { -- hide, show on specific filetypes hidden = { "help", "dashboard", "NvimTree", "terminal", }, shown = {}, -- truncate statusline on small screens shortline = true, style = "default", -- default, round , slant , block , arrow }, esc_insertmode_timeout = 300, }, default_plugin_config_replace = {}, } -- Don't use a single keymap twice --- MAPPINGS ---- -- non plugin M.mappings = { -- custom = {}, -- custom user mappings misc = { cheatsheet = "ch", close_buffer = "x", copy_whole_file = "", -- copy all contents of current buffer line_number_toggle = "n", -- toggle line number update_nvchad = "uu", new_buffer = "", new_tab = "b", save_file = "", -- save file using :w }, -- navigation in insert mode, only if enabled in options insert_nav = { backward = "", end_of_line = "", forward = "", next_line = "", prev_line = "", beginning_of_line = "", }, -- better window movement window_nav = { moveLeft = "", moveRight = "", moveUp = "", moveDown = "", }, -- terminal related mappings terminal = { -- multiple mappings can be given for esc_termmode, esc_hide_termmode -- get out of terminal mode esc_termmode = { "jk" }, -- get out of terminal mode and hide it esc_hide_termmode = { "JK" }, -- show & recover hidden terminal buffers in a telescope picker pick_term = "W", -- spawn terminals new_horizontal = "h", new_vertical = "v", new_window = "w", }, } -- plugins related mappings M.mappings.plugins = { bufferline = { next_buffer = "", prev_buffer = "", }, comment = { toggle = "/", }, dashboard = { bookmarks = "bm", new_file = "fn", -- basically create a new buffer open = "db", -- open dashboard session_load = "l", session_save = "s", }, -- map to with no lag better_escape = { -- will still work esc_insertmode = { "jk" }, -- multiple mappings allowed }, lspconfig = { declaration = "gD", definition = "gd", hover = "K", implementation = "gi", signature_help = "gk", add_workspace_folder = "wa", remove_workspace_folder = "wr", list_workspace_folders = "wl", type_definition = "D", rename = "rn", code_action = "ca", references = "gr", float_diagnostics = "ge", goto_prev = "[d", goto_next = "]d", set_loclist = "q", formatting = "fm", }, nvimtree = { toggle = "", focus = "e", }, telescope = { buffers = "fb", find_files = "ff", find_hiddenfiles = "fa", git_commits = "cm", git_status = "gt", help_tags = "fh", live_grep = "fw", oldfiles = "fo", themes = "th", -- NvChad theme picker telescope_media = { media_files = "fp", }, }, } return M