You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
383 lines
11 KiB
383 lines
11 KiB
---[[--------------------------------------------------]]---
|
|
-- doomrc - Doom Nvim configurations --
|
|
-- For more information, see `:h doom_nvim_options` --
|
|
---[[--------------------------------------------------]]---
|
|
|
|
Doom = {
|
|
---[[--------------------------------------------------]]---
|
|
-- Boolean Options --
|
|
---[[--------------------------------------------------]]---
|
|
|
|
-- 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,
|
|
|
|
-- 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 (<Leader>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,
|
|
|
|
---[[--------------------------------------------------]]---
|
|
-- Number Options --
|
|
---[[--------------------------------------------------]]---
|
|
|
|
-- 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,
|
|
|
|
---[[--------------------------------------------------]]---
|
|
-- String Options --
|
|
---[[--------------------------------------------------]]---
|
|
|
|
-- 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',
|
|
|
|
-- 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 = '#9788b9',
|
|
footer_color = '#586268',
|
|
},
|
|
|
|
-- Disabled plugins
|
|
-- @default = {'lazygit', 'minimap', 'restclient', 'doom-themes'}
|
|
-- example:
|
|
-- disabled_plugins = {'emmet-vim'}
|
|
disabled_plugins = { 'lazygit', 'minimap', 'restclient', 'doom-themes'},
|
|
|
|
-- Disabled plugins modules
|
|
-- @default = {'git', 'lsp', 'web'}
|
|
-- example:
|
|
-- disabled_modules = {'web'}
|
|
disabled_modules = { 'git', 'lsp', 'web' },
|
|
|
|
-- Install custom plugins, using the same syntax as packer
|
|
-- @default = {}
|
|
-- examples:
|
|
-- plugins without options:
|
|
-- custom_plugins = {'andweeb/presence.nvim'}
|
|
-- plugins with options:
|
|
-- custom_plugins = {
|
|
-- {
|
|
-- 'andweeb/presence.nvim',
|
|
-- disable = true,
|
|
-- }
|
|
-- }
|
|
custom_plugins = {},
|
|
|
|
-- Set the parsers for TreeSitter
|
|
-- @default = {}
|
|
-- example:
|
|
-- ts_parsers = {'python', 'javascript'}
|
|
ts_parsers = {},
|
|
|
|
-- Set your custom dashboard header below
|
|
-- @default = doom emacs' default dashboard header
|
|
dashboard_custom_header = {
|
|
'================= =============== =============== ======== ========',
|
|
'\\\\ . . . . . . .\\\\ //. . . . . . .\\\\ //. . . . . . .\\\\ \\\\. . .\\\\// . . //',
|
|
'||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\\/ . . .||',
|
|
'|| . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . ||',
|
|
'||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .||',
|
|
'|| . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\\ . . . . ||',
|
|
"||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\\_ . .|. .||",
|
|
'|| . _|| || || || || ||_ . || || . _|| || || || |\\ `-_/| . ||',
|
|
"||_-' || .|/ || || \\|. || `-_|| ||_-' || .|/ || || | \\ / |-_.||",
|
|
"|| ||_-' || || `-_|| || || ||_-' || || | \\ / | `||",
|
|
"|| `' || || `' || || `' || || | \\ / | ||",
|
|
"|| .===' `===. .==='.`===. .===' /==. | \\/ | ||",
|
|
"|| .==' \\_|-_ `===. .===' _|_ `===. .===' _-|/ `== \\/ | ||",
|
|
"|| .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \\/ | ||",
|
|
"|| .==' _-' `-__\\._-' `-_./__-' `' |. /| | ||",
|
|
"||.==' _-' `' | /==.||",
|
|
"==' _-' N E O V I M \\/ `==",
|
|
"\\ _-' `-_ /",
|
|
" `'' ``' ",
|
|
' ',
|
|
},
|
|
}
|
|
|
|
Neovim = {
|
|
-- 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<CR>'}
|
|
-- }
|
|
--
|
|
-- 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 = {}
|
|
}
|
|
|