2021-08-12 12:58:03 +01:00
|
|
|
local M = {
|
|
|
|
ui = {
|
2021-08-13 16:59:17 +01:00
|
|
|
theme = "onedark",
|
2021-08-14 20:14:55 +01:00
|
|
|
fav_themes = {"onedark", "gruvchad"}, -- for theme toggle
|
|
|
|
theme_toggler = false,
|
2021-08-14 08:30:01 +01:00
|
|
|
hidden_statusline = {
|
|
|
|
-- these are filetypes, not pattern matched
|
2021-08-13 16:59:17 +01:00
|
|
|
"NvimTree",
|
|
|
|
"toggleterm"
|
|
|
|
}
|
2021-08-12 12:58:03 +01:00
|
|
|
},
|
|
|
|
options = {
|
|
|
|
permanent_undo = true,
|
|
|
|
ruler = false,
|
|
|
|
hidden = true,
|
|
|
|
ignorecase = true,
|
|
|
|
mouse = "a",
|
|
|
|
cmdheight = 1,
|
|
|
|
updatetime = 250,
|
|
|
|
timeoutlen = 400,
|
|
|
|
clipboard = "unnamedplus",
|
|
|
|
number = true,
|
|
|
|
numberwidth = 2,
|
|
|
|
expandtab = true,
|
|
|
|
shiftwidth = 2,
|
|
|
|
smartindent = true,
|
|
|
|
mapleader = " ",
|
2021-08-14 09:14:28 +01:00
|
|
|
autosave = false,
|
2021-08-14 20:14:55 +01:00
|
|
|
enable_insertNav = true -- navigation in insertmode
|
2021-08-12 12:58:03 +01:00
|
|
|
},
|
2021-08-14 20:14:55 +01:00
|
|
|
-- enable and disable plugins (true for disable)
|
2021-08-12 12:58:03 +01:00
|
|
|
plugin_status = {
|
2021-08-14 08:30:01 +01:00
|
|
|
-- UI
|
2021-08-16 01:46:14 +01:00
|
|
|
nvim_bufferline = true,
|
|
|
|
galaxyline = true,
|
|
|
|
nvim_colorizer = true,
|
|
|
|
dashboard_nvim = true,
|
|
|
|
blankline = true,
|
|
|
|
truezen_nvim = true,
|
|
|
|
better_esc = true,
|
2021-08-14 08:30:01 +01:00
|
|
|
-- lsp stuff
|
2021-08-16 01:46:14 +01:00
|
|
|
lspkind = true,
|
|
|
|
lspsignature = true,
|
2021-08-14 08:30:01 +01:00
|
|
|
-- git stuff
|
2021-08-16 01:46:14 +01:00
|
|
|
gitsigns = true,
|
|
|
|
vim_fugitive = true,
|
2021-08-14 08:30:01 +01:00
|
|
|
-- misc
|
2021-08-16 01:46:14 +01:00
|
|
|
neoformat = true,
|
|
|
|
vim_matchup = true,
|
|
|
|
autosave_nvim = true,
|
|
|
|
nvim_comment = true,
|
|
|
|
neoscroll_nvim = true,
|
|
|
|
telescope_media = true
|
2021-08-12 12:58:03 +01:00
|
|
|
},
|
|
|
|
-- make sure you dont use same keys twice
|
|
|
|
mappings = {
|
|
|
|
truezen = {
|
|
|
|
ataraxisMode = "<leader>zz",
|
|
|
|
minimalisticmode = "<leader>zm",
|
|
|
|
focusmode = "<leader>zf"
|
|
|
|
},
|
|
|
|
comment_nvim = {
|
|
|
|
comment_toggle = "<leader>/"
|
|
|
|
},
|
|
|
|
nvimtree = {
|
|
|
|
treetoggle = "<C-n>"
|
|
|
|
},
|
|
|
|
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"
|
|
|
|
},
|
2021-08-14 08:30:01 +01:00
|
|
|
telescope_media = {
|
|
|
|
media_files = "<leader>fp"
|
|
|
|
},
|
2021-08-12 12:58:03 +01:00
|
|
|
bufferline = {
|
|
|
|
new_buffer = "<S-t>",
|
|
|
|
newtab = "<C-t>b",
|
|
|
|
close = "<S-x>",
|
|
|
|
cycleNext = "<TAB>",
|
|
|
|
cyclePrev = "<S-Tab>"
|
|
|
|
},
|
|
|
|
fugitive = {
|
|
|
|
Git = "<leader>gs",
|
|
|
|
diffget_2 = "<leader>gh",
|
|
|
|
diffget_3 = "<leader>gl",
|
|
|
|
git_blame = "<leader>gb"
|
|
|
|
},
|
2021-08-13 16:59:17 +01:00
|
|
|
toggleterm = {
|
|
|
|
toggle_window = "<leader>w",
|
2021-08-14 14:58:24 +01:00
|
|
|
toggle_vert = "<leader>v",
|
|
|
|
toggle_hori = "<leader>h",
|
|
|
|
hide_term = "JK"
|
2021-08-13 16:59:17 +01:00
|
|
|
},
|
2021-08-14 09:14:28 +01: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>"
|
2021-08-14 08:56:54 +01:00
|
|
|
},
|
2021-08-12 12:58:03 +01:00
|
|
|
misc = {
|
2021-08-13 16:59:17 +01:00
|
|
|
esc_Termmode = "jk",
|
2021-08-12 12:58:03 +01:00
|
|
|
copywhole_file = "<C-a>",
|
2021-08-14 20:14:55 +01:00
|
|
|
toggle_linenr = "<leader>n",
|
|
|
|
theme_toggle = "<leader>x"
|
2021-08-12 12:58:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return M
|