-- doom_config - Doom Nvim user configurations file -- -- This file contains the user-defined configurations for Doom nvim and consists -- in two Lua tables: -- 1. Doom, this one defines all the Doom nvim configurations that you can -- tweak to fit your needs or tastes. -- -- 2. Nvim, this one defines all the custom configurations that you want to -- use in Neovim, e.g. a colorscheme italic_comments global variable -- {{{ Doom local doom = { -- Autosave -- false : Disable autosave -- true : Enable autosave -- @default = false autosave = false, -- Format on save -- false : Disable format on save -- true : Enable format on save -- @default = false fmt_on_save = false, -- Disable Vim macros -- false : Enable Vim macros -- true : Disable Vim macros -- @default = true disable_macros = true, -- Autosave sessions -- false : Disable session autosave -- true : Enable session autosave -- @default = false autosave_sessions = false, -- Autoload sessions -- false : Disable session autoload -- true : Enable session autoload -- @default = false autoload_last_session = false, -- Enable Swap files -- false : no swap files -- true : enables swap files -- @default = false swap_files = false, -- Undo Directories -- the backup variable enables backup related settings (undofile, undodir) -- false : ignores undo Directories (this code block will be ignored) -- true : enable undo files/undo dirs. -- @default = false backup = false, -- WARNING: if you change this to false and you have an undo dir already, it will REMOVE the undodir (loss of data might take place) -- Enable Line wrapping -- false : disables line wrapping -- true : enables line wrapping -- @default = false line_wrap = false, -- Enable Show mode ( -- INSERT --, -- NORMAL --, -- VISUAL -- ) -- false : disables show mode -- true : enables show mode -- @default = false show_mode = false, -- Enable scroll off -- false : disables scroll off -- true : enables scroll off -- @default = true, @default scrolloff_amount = 4, scrolloff = true, scrolloff_amount = 4, -- Enable mouse -- false : disables mouse -- true : enables mouse -- @default = true mouse = true, -- Preserve last editing position -- false : Disable preservation of last editing position -- true : Enable preservation of last editing position -- @default = false preserve_edit_pos = false, -- horizontal split on creating a new file (fn) -- false : doesn't split the window when creating a new file -- true : horizontal split on creating a new file -- @default = true new_file_split = true, -- enable current line highlight -- false : disables current line highlight -- true : enables current line highlight -- @default = true line_highlight = true, -- Automatically split right -- false : splits right (vertically) -- true : splits left (vertically) -- @default = true split_right = true, -- Automatically split above -- false : splits above (horizontally) -- true : splits below (horizontally) -- @default = true split_below = true, -- Use clipboard outside of vim -- false : won't use third party clipboard -- true : enables third part clipboard -- @default = true clipboard = true, -- Enable auto comment (current line must be commented) -- false : disables auto comment -- true : enables auto comment -- @default = false auto_comment = false, -- Show indent lines -- @default = true show_indent = true, -- Expand tabs -- Specifies if spaces or tabs must be used -- false : spaces -- true : tabs -- @default = true expand_tabs = true, -- Set numbering -- false : Shows absolute number lines -- true : Shows relative number lines -- @default = true relative_num = true, -- Enable Highlight on yank -- false : disables highligh on yank -- true : enables highlight on yank -- @default = true highlight_yank = true, -- Enable guicolors -- Enables gui colors on GUI versions of Neovim -- @default = true enable_guicolors = true, -- Symbols-Outline on the left -- Places the Symbols-Outline buffer to the left when enabled -- @default = false symbols_outline_left = false, -- Show hidden files -- @default = true show_hidden = true, -- Checkupdates on start -- @default = false check_updates = false, -- Auto install plugins on launch, useful if you don't want to run -- PackerInstall every time you add a new plugin -- @default = true auto_install_plugins = true, -- Disable dashboard status line (does not work perfectly) -- false : disables dashboard status line -- true : enables dashboard status line -- @default = true dashboard_statline = true, -- Default indent size -- @default = 4 indent = 4, -- Set max cols -- Defines the column to show a vertical marker -- @default = 80 max_columns = 80, -- Completion box height -- @default = 10 complete_size = 10, -- Completion box transparency -- 0 = no transparency -- 100 = fully transparent -- @default = 25 complete_transparency = 25, -- Sidebar sizing -- Specifies the default width of Tree Explorer and Tagbar -- @default = 25 sidebar_width = 25, -- Set the Terminal width -- Applies only to float direction -- @default = 70 terminal_width = 70, -- Set the Terminal height -- Applies to all directions except window -- @default = 20 terminal_height = 20, -- Conceal level -- Set Neovim conceal level -- 0 : Disable indentline and show all -- 1 : Conceal some functions and show indentlines -- 2 : Concealed text is completely hidden unless it has a custom replacement -- character defined -- 3 : Concealed text is completely hidden conceallevel = 0, -- Logging level -- Set Doom logging level -- Available levels: -- · trace -- · debug -- · info -- · warn -- · error -- · fatal -- @default = 'info' logging = 'info', -- Set the Terminal direction -- Available directions: -- - vertical -- - horizontal -- - window -- - float -- @default = 'horizontal' terminal_direction = 'horizontal', -- NOTE: This will only be activated if 'backup' is true. -- We don'recommend you put this outside of neovim so we've restricted to the path: ~/.config/nvim -- WARNING: only put the folder name that you want. (eg: undo_dir = '/undodir') -- @default_directory = '~/.config/nvim/undodir' undo_dir = '/undodir', -- Default colorscheme -- @default = doom-one colorscheme = 'doom-one', -- Background color -- @default = dark colorscheme_bg = 'dark', -- Doom One colorscheme settings doom_one = { -- If the cursor color should be blue -- @default = false cursor_coloring = false, -- If TreeSitter highlighting should be enabled -- @default = true enable_treesitter = true, -- If the comments should be italic -- @default = false italic_comments = false, -- If the telescope plugin window should be colored -- @default = true telescope_highlights = true, -- If the built-in Neovim terminal should use the doom-one -- colorscheme palette -- @default = false terminal_colors = true, -- If the Neovim instance should be transparent -- @default = false transparent_background = false, }, -- Set gui fonts here -- @default = "FiraCode Nerd Font", @default font size = 15, -- WARNING: Font sizes must be in string format! guifont = 'FiraCode Nerd Font', guifont_size = '15', -- change Which Key background color -- can use hex, or normal color names (eg: Red, Gree, Blue) -- @default = #202328 whichkey_bg = '#202328', -- set your custom lsp diagnostic symbols below lsp_error = '', lsp_warning = '', lsp_hint = '', lsp_information = '', lsp_virtual_text = ' ', -- Set your dashboard custom colors below -- @default = doom emacs' default dashboard colors dashboard_custom_colors = { header_color = '#586268', center_color = '#51afef', shortcut_color = '#a9a1e1', footer_color = '#586268', }, -- Set your custom dashboard header below -- @default = doom emacs' default dashboard header dashboard_custom_header = {}, } -- }}} -- {{{ Nvim local nvim = { -- Set custom Neovim global variables -- @default = {} -- example: -- { ['sonokai_style'] = 'andromeda' } global_variables = {}, -- Set custom autocommands -- @default = {} -- example: -- augroup_name = { -- { 'BufNewFile,BufRead', 'doomrc', 'set ft=lua'} -- } autocmds = {}, -- Set custom key bindings -- @default = {} -- example: -- { -- {'n', 'ca', ':Lspsaga code_action'} -- } -- -- where -- 'n' is the map scope -- 'ca' is the map activator -- ':Lspsaga ...' is the command to be executed mappings = {}, -- Set custom commands -- @default = {} -- example: -- { -- 'echo "Hello, custom commands!"' -- } commands = {}, -- Set custom functions -- @default = {} -- example: -- { -- hello_custom_func = function() -- print("Hello, custom functions!") -- end -- } functions = {}, } -- }}} return { doom = doom, nvim = nvim, } -- vim: fdm=marker