options and maps
This commit is contained in:
parent
c3b3363298
commit
84509df6a0
|
@ -1,5 +1,4 @@
|
||||||
plugin
|
plugin
|
||||||
spell
|
|
||||||
ftplugin
|
ftplugin
|
||||||
syntax
|
syntax
|
||||||
coc-settings.json
|
coc-settings.json
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
local g = vim.g
|
local g = vim.g
|
||||||
g.maplocalleader = ";"
|
g.maplocalleader = ";"
|
||||||
|
|
||||||
opt.foldmethod = "indent"
|
opt.foldmethod = "indent"
|
||||||
opt.foldnestmax = 10
|
opt.foldnestmax = 10
|
||||||
opt.foldlevel = 4
|
opt.foldlevel = 4
|
||||||
|
@ -11,5 +12,124 @@ opt.wrap = false
|
||||||
opt.breakindent = false
|
opt.breakindent = false
|
||||||
opt.spell = true
|
opt.spell = true
|
||||||
opt.list = true
|
opt.list = true
|
||||||
opt.timeout = true
|
opt.conceallevel = 2
|
||||||
opt.timeoutlen = 300 -- ms
|
opt.undofile = true
|
||||||
|
opt.undolevels = 10000
|
||||||
|
opt.writebackup = false
|
||||||
|
opt.history = 5000
|
||||||
|
opt.shada = { "'1000", "<50", "s10", "h" }
|
||||||
|
|
||||||
|
-- Tabs and Indents
|
||||||
|
-- ===
|
||||||
|
|
||||||
|
opt.textwidth = 80 -- Text width maximum chars before wrapping
|
||||||
|
opt.tabstop = 4 -- The number of spaces a tab is
|
||||||
|
opt.shiftwidth = 4 -- Number of spaces to use in auto(indent)
|
||||||
|
opt.smarttab = true -- Tab insert blanks according to 'shiftwidth'
|
||||||
|
opt.autoindent = true -- Use same indenting on new lines
|
||||||
|
opt.smartindent = true -- Smart autoindenting on new lines
|
||||||
|
opt.shiftround = true -- Round indent to multiple of 'shiftwidth'
|
||||||
|
|
||||||
|
-- Timing
|
||||||
|
-- ===
|
||||||
|
opt.ttimeout = true
|
||||||
|
opt.timeoutlen = 500 -- Time out on mappings
|
||||||
|
opt.ttimeoutlen = 10 -- Time out on key codes
|
||||||
|
opt.updatetime = 500 -- Idle time to write swap and trigger CursorHold
|
||||||
|
|
||||||
|
-- Searching
|
||||||
|
-- ===
|
||||||
|
opt.ignorecase = true -- Search ignoring case
|
||||||
|
opt.smartcase = true -- Keep case when searching with *
|
||||||
|
opt.infercase = true -- Adjust case in insert completion mode
|
||||||
|
opt.incsearch = true -- Incremental search
|
||||||
|
|
||||||
|
-- Formatting
|
||||||
|
-- ===
|
||||||
|
|
||||||
|
opt.wrap = false -- No wrap by default
|
||||||
|
opt.linebreak = true -- Break long lines at 'breakat'
|
||||||
|
opt.breakat = '\\ \\ ;:,!?' -- Long lines break chars
|
||||||
|
opt.startofline = false -- Cursor in same column for few commands
|
||||||
|
opt.splitbelow = true -- Splits open bottom right
|
||||||
|
opt.splitright = true
|
||||||
|
opt.breakindentopt = { shift = 2, min = 20 }
|
||||||
|
opt.formatoptions = "cqanlmBjp" -- see :h fo-table & :h formatoptions
|
||||||
|
|
||||||
|
-- Diff
|
||||||
|
-- ===
|
||||||
|
|
||||||
|
opt.diffopt:append({ 'iwhite', 'indent-heuristic', 'algorithm:patience' })
|
||||||
|
opt.wildmode = 'longest:full,full' -- Command-line completion mode
|
||||||
|
|
||||||
|
-- Editor UI
|
||||||
|
-- ===
|
||||||
|
|
||||||
|
opt.termguicolors = true
|
||||||
|
opt.shortmess = "xsTOInfFitloCaAs"
|
||||||
|
opt.showmode = true -- Show mode in cmd window
|
||||||
|
opt.scrolloff = 2 -- Keep at least n lines above/below
|
||||||
|
opt.sidescrolloff = 0 -- Keep at least n lines left/right
|
||||||
|
opt.numberwidth = 2 -- Minimum number of columns to use for the line number
|
||||||
|
opt.number = true -- Show line numbers
|
||||||
|
opt.ruler = false -- Default status ruler
|
||||||
|
opt.list = true -- Show hidden characters
|
||||||
|
|
||||||
|
if vim.g.started_by_firenvim == false then
|
||||||
|
opt.showtabline = 3 -- Always show the tabs line
|
||||||
|
opt.laststatus = 3 -- Always show laststatus
|
||||||
|
else
|
||||||
|
opt.showtabline = 1 -- Don't show tabline in firenvim, unless multitab
|
||||||
|
opt.laststatus = 3 -- Don't show laststatus in firenvim
|
||||||
|
end
|
||||||
|
opt.helpheight = 0 -- Disable help window resizing
|
||||||
|
opt.winwidth = 30 -- Minimum width for active window
|
||||||
|
opt.winminwidth = 1 -- Minimum width for inactive windows
|
||||||
|
opt.winheight = 1 -- Minimum height for active window
|
||||||
|
opt.winminheight = 1 -- Minimum height for inactive window
|
||||||
|
|
||||||
|
opt.showcmd = false -- show command in status line
|
||||||
|
opt.cmdheight = 0
|
||||||
|
opt.cmdwinheight = 5 -- Command-line lines
|
||||||
|
opt.equalalways = true -- Resize windows on split or close
|
||||||
|
opt.colorcolumn = '+0' -- Column highlight at textwidth's max character-limit
|
||||||
|
|
||||||
|
opt.cursorline = true
|
||||||
|
opt.cursorlineopt = { 'number', 'screenline' }
|
||||||
|
|
||||||
|
opt.pumheight = 10 -- Maximum number of items to show in the popup menu
|
||||||
|
opt.pumwidth = 10 -- Minimum width for the popup menu
|
||||||
|
opt.pumblend = 10 -- Popup blend
|
||||||
|
|
||||||
|
|
||||||
|
-- autocommands
|
||||||
|
-- ===
|
||||||
|
local function augroup(name)
|
||||||
|
return vim.api.nvim_create_augroup("plex_" .. name, {})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- highlight on yank
|
||||||
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
|
group = augroup "highlight_yank",
|
||||||
|
callback = function()
|
||||||
|
vim.highlight.on_yank()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Disable conceallevel for specific file-types.
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
group = augroup('fix_conceallevel'),
|
||||||
|
pattern = { 'latex', 'tex' },
|
||||||
|
callback = function()
|
||||||
|
vim.opt_local.conceallevel = 0
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Resize splits if window got resized
|
||||||
|
vim.api.nvim_create_autocmd('VimResized', {
|
||||||
|
group = augroup('resize_splits'),
|
||||||
|
callback = function()
|
||||||
|
vim.cmd('wincmd =')
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
|
@ -6,36 +6,36 @@ M.disabled = {
|
||||||
["<C-a>"] = "",
|
["<C-a>"] = "",
|
||||||
["<C-s>"] = "",
|
["<C-s>"] = "",
|
||||||
["<C-c>"] = "",
|
["<C-c>"] = "",
|
||||||
["<leader>n"] = "",
|
["<LEADER>n"] = "",
|
||||||
["<leader>rn"] = "",
|
["<LEADER>rn"] = "",
|
||||||
["<Up>"] = "",
|
["<UP>"] = "",
|
||||||
["<Down>"] = "",
|
["<DOWN>"] = "",
|
||||||
["<leader>x"] = "",
|
["<LEADER>x"] = "",
|
||||||
["<leader>/"] = "",
|
["<LEADER>/"] = "",
|
||||||
["<leader>ra"] = "",
|
["<LEADER>ra"] = "",
|
||||||
["[d"] = "",
|
["[d"] = "",
|
||||||
["]d"] = "",
|
["]d"] = "",
|
||||||
["[c"] = "",
|
["[c"] = "",
|
||||||
["]c"] = "",
|
["]c"] = "",
|
||||||
["<leader>h"] = "",
|
["<LEADER>h"] = "",
|
||||||
["<leader>ff"] = "",
|
["<LEADER>ff"] = "",
|
||||||
["<leader>fm"] = "",
|
["<LEADER>fm"] = "",
|
||||||
["<leader>fa"] = "",
|
["<LEADER>fa"] = "",
|
||||||
["<leader>fw"] = "",
|
["<LEADER>fw"] = "",
|
||||||
["<leader>fb"] = "",
|
["<LEADER>fb"] = "",
|
||||||
["<leader>fh"] = "",
|
["<LEADER>fh"] = "",
|
||||||
["<leader>fo"] = "",
|
["<LEADER>fo"] = "",
|
||||||
["<leader>fz"] = "",
|
["<LEADER>fz"] = "",
|
||||||
["<leader>cm"] = "",
|
["<LEADER>cm"] = "",
|
||||||
["<leader>gt"] = "",
|
["<LEADER>gt"] = "",
|
||||||
["<leader>pt"] = "",
|
["<LEADER>pt"] = "",
|
||||||
["<leader>th"] = "",
|
["<LEADER>th"] = "",
|
||||||
["<leader>ma"] = "",
|
["<LEADER>ma"] = "",
|
||||||
["<leader>v"] = "",
|
["<LEADER>v"] = "",
|
||||||
["<leader>rh"] = "",
|
["<LEADER>rh"] = "",
|
||||||
["<leader>ph"] = "",
|
["<LEADER>ph"] = "",
|
||||||
["<leader>gb"] = "",
|
["<LEADER>gb"] = "",
|
||||||
["<leader>td"] = "",
|
["<LEADER>td"] = "",
|
||||||
["#"] = "",
|
["#"] = "",
|
||||||
["?"] = "",
|
["?"] = "",
|
||||||
},
|
},
|
||||||
|
@ -45,7 +45,7 @@ M.disabled = {
|
||||||
v = {
|
v = {
|
||||||
["#"] = "",
|
["#"] = "",
|
||||||
["?"] = "",
|
["?"] = "",
|
||||||
["<leader>/"] = "",
|
["<LEADER>/"] = "",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ M.tabufline = {
|
||||||
|
|
||||||
n = {
|
n = {
|
||||||
-- cycle through buffers
|
-- cycle through buffers
|
||||||
["<tab>"] = {
|
["<TAB>"] = {
|
||||||
function()
|
function()
|
||||||
require("nvchad.tabufline").tabuflineNext()
|
require("nvchad.tabufline").tabuflineNext()
|
||||||
end,
|
end,
|
||||||
|
@ -83,7 +83,7 @@ M.comment = {
|
||||||
|
|
||||||
-- toggle comment in both modes
|
-- toggle comment in both modes
|
||||||
n = {
|
n = {
|
||||||
["<leader>v"] = {
|
["<LEADER>v"] = {
|
||||||
function()
|
function()
|
||||||
require("Comment.api").toggle.linewise.current()
|
require("Comment.api").toggle.linewise.current()
|
||||||
end,
|
end,
|
||||||
|
@ -92,8 +92,8 @@ M.comment = {
|
||||||
},
|
},
|
||||||
|
|
||||||
v = {
|
v = {
|
||||||
["<leader>v"] = {
|
["<LEADER>v"] = {
|
||||||
"<ESC><cmd>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<CR>",
|
"<ESC><CMD>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<CR>",
|
||||||
"Toggle comment",
|
"Toggle comment",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -102,44 +102,44 @@ M.comment = {
|
||||||
M.leap = {
|
M.leap = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
["<leader>s"] = {
|
["<LEADER>s"] = {
|
||||||
"<Plug>(leap-forward)",
|
"<PLUG>(leap-forward)",
|
||||||
"leap forward",
|
"leap forward",
|
||||||
},
|
},
|
||||||
["<leader>S"] = {
|
["<LEADER>S"] = {
|
||||||
"<Plug>(leap-backward)",
|
"<PLUG>(leap-backward)",
|
||||||
"leap backward",
|
"leap backward",
|
||||||
},
|
},
|
||||||
["<leader>gs"] = {
|
["<LEADER>gs"] = {
|
||||||
"<Plug>(leap-from-window)",
|
"<PLUG>(leap-from-window)",
|
||||||
"leap from window",
|
"leap from window",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
x = {
|
x = {
|
||||||
["<leader>s"] = {
|
["<LEADER>s"] = {
|
||||||
"<Plug>(leap-forward)",
|
"<PLUG>(leap-forward)",
|
||||||
"leap forward",
|
"leap forward",
|
||||||
},
|
},
|
||||||
["<leader>S"] = {
|
["<LEADER>S"] = {
|
||||||
"<Plug>(leap-backward)",
|
"<PLUG>(leap-backward)",
|
||||||
"leap forward",
|
"leap forward",
|
||||||
},
|
},
|
||||||
["<leader>gs"] = {
|
["<LEADER>gs"] = {
|
||||||
"<Plug>(leap-from-window)",
|
"<PLUG>(leap-from-window)",
|
||||||
"leap from window",
|
"leap from window",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
o = {
|
o = {
|
||||||
["<leader>s"] = {
|
["<LEADER>s"] = {
|
||||||
"<Plug>(leap-forward)",
|
"<PLUG>(leap-forward)",
|
||||||
"leap forward",
|
"leap forward",
|
||||||
},
|
},
|
||||||
["<leader>S"] = {
|
["<LEADER>S"] = {
|
||||||
"<Plug>(leap-backward)",
|
"<PLUG>(leap-backward)",
|
||||||
"leap forward",
|
"leap forward",
|
||||||
},
|
},
|
||||||
["<leader>gs"] = {
|
["<LEADER>gs"] = {
|
||||||
"<Plug>(leap-from-window)",
|
"<PLUG>(leap-from-window)",
|
||||||
"leap from window",
|
"leap from window",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -148,21 +148,21 @@ M.leap = {
|
||||||
M.lazygit = {
|
M.lazygit = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
["<leader>gg"] = { "<cmd> LazyGit <CR>", "Open LazyGit" },
|
["<LEADER>gg"] = { "<CMD> LazyGit <CR>", "Open LazyGit" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.lspconfig = {
|
M.lspconfig = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
["[d"] = {
|
["<LEADER>ck"] = {
|
||||||
function()
|
function()
|
||||||
vim.diagnostic.goto_prev { float = { border = "rounded" } }
|
vim.diagnostic.goto_prev { float = { border = "rounded" } }
|
||||||
end,
|
end,
|
||||||
"Goto prev",
|
"Goto prev",
|
||||||
},
|
},
|
||||||
|
|
||||||
["<leader>cj"] = {
|
["<LEADER>cj"] = {
|
||||||
function()
|
function()
|
||||||
vim.diagnostic.goto_next { float = { border = "rounded" } }
|
vim.diagnostic.goto_next { float = { border = "rounded" } }
|
||||||
end,
|
end,
|
||||||
|
@ -174,14 +174,14 @@ M.lspconfig = {
|
||||||
M.clipboard = {
|
M.clipboard = {
|
||||||
plugin = false,
|
plugin = false,
|
||||||
n = {
|
n = {
|
||||||
["<leader>y"] = { '"+y', "yank to system" },
|
["<LEADER>y"] = { '"+y', "yank to system" },
|
||||||
["<leader>Y"] = { '"+Y', "yank to system" },
|
["<LEADER>Y"] = { '"+Y', "yank to system" },
|
||||||
["<leader>yy"] = { '"+y', "yank to system" },
|
["<LEADER>yy"] = { '"+y', "yank to system" },
|
||||||
},
|
},
|
||||||
v = {
|
v = {
|
||||||
["<leader>y"] = { '"+y', "yank to system" },
|
["<LEADER>y"] = { '"+y', "yank to system" },
|
||||||
["<leader>Y"] = { '"+Y', "yank to system" },
|
["<LEADER>Y"] = { '"+Y', "yank to system" },
|
||||||
["<leader>yy"] = { '"+y', "yank to system" },
|
["<LEADER>yy"] = { '"+y', "yank to system" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,25 +189,25 @@ M.telescope = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
-- find
|
-- find
|
||||||
["<localleader>ff"] = { "<cmd> Telescope find_files <CR>", "Find files" },
|
["<LOCALLEADER>ff"] = { "<CMD> Telescope find_files <CR>", "Find files" },
|
||||||
["<localleader>fa"] = { "<cmd> Telescope find_files follow=true no_ignore=true hidden=true <CR>", "Find all" },
|
["<LOCALLEADER>fa"] = { "<CMD> Telescope find_files follow=true no_ignore=true hidden=true <CR>", "Find all" },
|
||||||
["<localleader>fw"] = { "<cmd> Telescope live_grep <CR>", "Live grep" },
|
["<LOCALLEADER>fw"] = { "<CMD> Telescope live_grep <CR>", "Live grep" },
|
||||||
["<localleader>fb"] = { "<cmd> Telescope buffers <CR>", "Find buffers" },
|
["<LOCALLEADER>fb"] = { "<CMD> Telescope buffers <CR>", "Find buffers" },
|
||||||
["<localleader>fh"] = { "<cmd> Telescope help_tags <CR>", "Help page" },
|
["<LOCALLEADER>fh"] = { "<CMD> Telescope help_tags <CR>", "Help page" },
|
||||||
["<localleader>fo"] = { "<cmd> Telescope oldfiles <CR>", "Find oldfiles" },
|
["<LOCALLEADER>fo"] = { "<CMD> Telescope oldfiles <CR>", "Find oldfiles" },
|
||||||
["<localleader>fz"] = { "<cmd> Telescope current_buffer_fuzzy_find <CR>", "Find in current buffer" },
|
["<LOCALLEADER>fz"] = { "<CMD> Telescope current_buffer_fuzzy_find <CR>", "Find in current buffer" },
|
||||||
|
|
||||||
-- git
|
-- git
|
||||||
["<localleader>cm"] = { "<cmd> Telescope git_commits <CR>", "Git commits" },
|
["<LOCALLEADER>cm"] = { "<CMD> Telescope git_commits <CR>", "Git commits" },
|
||||||
["<localleader>gt"] = { "<cmd> Telescope git_status <CR>", "Git status" },
|
["<LOCALLEADER>gt"] = { "<CMD> Telescope git_status <CR>", "Git status" },
|
||||||
|
|
||||||
-- pick a hidden term
|
-- pick a hidden term
|
||||||
["<localleader>pt"] = { "<cmd> Telescope terms <CR>", "Pick hidden term" },
|
["<LOCALLEADER>pt"] = { "<CMD> Telescope terms <CR>", "Pick hidden term" },
|
||||||
|
|
||||||
-- theme switcher
|
-- theme switcher
|
||||||
["<localleader>th"] = { "<cmd> Telescope themes <CR>", "Nvchad themes" },
|
["<LOCALLEADER>th"] = { "<CMD> Telescope themes <CR>", "Nvchad themes" },
|
||||||
|
|
||||||
["<localleader>ma"] = { "<cmd> Telescope marks <CR>", "telescope bookmarks" },
|
["<LOCALLEADER>ma"] = { "<CMD> Telescope marks <CR>", "telescope bookmarks" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,11 +239,11 @@ M.nvimtree = {
|
||||||
plugin = true,
|
plugin = true,
|
||||||
n = {
|
n = {
|
||||||
-- toggle
|
-- toggle
|
||||||
["<C-n>"] = { "<cmd> NvimTreeToggle <CR>", "Toggle nvimtree" },
|
["<C-n>"] = { "<CMD> NvimTreeToggle <CR>", "Toggle nvimtree" },
|
||||||
["<F5>"] = { "<cmd> NvimTreeToggle <CR>", "Toggle nvimtree" },
|
["<F5>"] = { "<CMD> NvimTreeToggle <CR>", "Toggle nvimtree" },
|
||||||
|
|
||||||
-- focus
|
-- focus
|
||||||
["<localleader>e"] = { "<cmd> NvimTreeFocus <CR>", "Focus nvimtree" },
|
["<LOCALLEADER>e"] = { "<CMD> NvimTreeFocus <CR>", "Focus nvimtree" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,13 +256,13 @@ M.movements = {
|
||||||
|
|
||||||
-- go to beginning and end
|
-- go to beginning and end
|
||||||
["<C-b>"] = { "<HOME>", "Beginning of line" },
|
["<C-b>"] = { "<HOME>", "Beginning of line" },
|
||||||
["<C-e>"] = { "<End>", "End of line" },
|
["<C-e>"] = { "<END>", "End of line" },
|
||||||
|
|
||||||
-- navigate within insert mode
|
-- navigate within insert mode
|
||||||
["<C-h>"] = { "<Left>", "Move left" },
|
["<C-h>"] = { "<LEFT>", "Move left" },
|
||||||
["<C-l>"] = { "<Right>", "Move right" },
|
["<C-l>"] = { "<RIGHT>", "Move right" },
|
||||||
["<C-j>"] = { "<Down>", "Move down" },
|
["<C-j>"] = { "<DOWN>", "Move down" },
|
||||||
["<C-k>"] = { "<Up>", "Move up" },
|
["<C-k>"] = { "<UP>", "Move up" },
|
||||||
},
|
},
|
||||||
n = {
|
n = {
|
||||||
--big move
|
--big move
|
||||||
|
@ -271,10 +271,14 @@ M.movements = {
|
||||||
|
|
||||||
-- go to beginning and end
|
-- go to beginning and end
|
||||||
["H"] = { "<HOME>", "Beginning of line" },
|
["H"] = { "<HOME>", "Beginning of line" },
|
||||||
["L"] = { "<End>", "End of line" },
|
["L"] = { "<END>", "End of line" },
|
||||||
|
|
||||||
-- go to mark with "#"
|
-- go to mark with "#"
|
||||||
["#"] = { "'", "go to mark" },
|
["#"] = { "'", "go to mark" },
|
||||||
|
|
||||||
|
-- spell
|
||||||
|
["zn"] = { "]s", "go to next spelling mark"},
|
||||||
|
["zN"] = { "[s", "go to last spelling mark"},
|
||||||
},
|
},
|
||||||
v = {
|
v = {
|
||||||
--big move
|
--big move
|
||||||
|
@ -283,7 +287,7 @@ M.movements = {
|
||||||
|
|
||||||
-- go to beginning and end
|
-- go to beginning and end
|
||||||
["H"] = { "<HOME>", "Beginning of line" },
|
["H"] = { "<HOME>", "Beginning of line" },
|
||||||
["L"] = { "<End>", "End of line" },
|
["L"] = { "<END>", "End of line" },
|
||||||
},
|
},
|
||||||
t = {
|
t = {
|
||||||
["<C-w>"] = {
|
["<C-w>"] = {
|
||||||
|
@ -308,13 +312,13 @@ M.edit = {
|
||||||
},
|
},
|
||||||
|
|
||||||
-- do something useful with the arrows
|
-- do something useful with the arrows
|
||||||
["<Up>"] = { "<cmd> move-2<CR>", "Move line up", opts = { expr = true } },
|
["<UP>"] = { "<CMD> move-2<CR>", "Move line up", opts = { expr = true } },
|
||||||
["<Down>"] = { "<cmd> move+<CR>", "Move line down", opts = { expr = true } },
|
["<DOWN>"] = { "<CMD> move+<CR>", "Move line down", opts = { expr = true } },
|
||||||
["<LEFT>"] = { "<cmd> << <CR>", "Less indentation", opts = { expr = true } },
|
["<LEFT>"] = { "<CMD> << <CR>", "Less indentation", opts = { expr = true } },
|
||||||
["<RIGHT>"] = { "<cmd> >> <CR>", "More indentation", opts = { expr = true } },
|
["<RIGHT>"] = { "<CMD> >> <CR>", "More indentation", opts = { expr = true } },
|
||||||
|
|
||||||
-- format with conform
|
-- format with conform
|
||||||
["<leader>ff"] = {
|
["<LEADER>ff"] = {
|
||||||
function()
|
function()
|
||||||
require("conform").format()
|
require("conform").format()
|
||||||
end,
|
end,
|
||||||
|
@ -322,7 +326,7 @@ M.edit = {
|
||||||
},
|
},
|
||||||
--
|
--
|
||||||
-- remove trailing whitespace
|
-- remove trailing whitespace
|
||||||
["<leader>fw"] = {
|
["<LEADER>fw"] = {
|
||||||
function()
|
function()
|
||||||
require("mini.trailspace").trim()
|
require("mini.trailspace").trim()
|
||||||
end,
|
end,
|
||||||
|
@ -334,8 +338,8 @@ M.edit = {
|
||||||
["<RIGHT>"] = { ">gv", "More indentation" },
|
["<RIGHT>"] = { ">gv", "More indentation" },
|
||||||
},
|
},
|
||||||
x = {
|
x = {
|
||||||
["<Up>"] = { "move'<-2<CR>gv=gv", "Move line up", opts = { expr = true } },
|
["<UP>"] = { "move'<-2<CR>gv=gv", "Move line up", opts = { expr = true } },
|
||||||
["<Down>"] = { "move'<-2<CR>gv=gv", "Move line down", opts = { expr = true } },
|
["<DOWN>"] = { "move'<-2<CR>gv=gv", "Move line down", opts = { expr = true } },
|
||||||
},
|
},
|
||||||
t = {
|
t = {
|
||||||
--big move
|
--big move
|
||||||
|
@ -348,7 +352,7 @@ M.ui = {
|
||||||
plugin = false,
|
plugin = false,
|
||||||
n = {
|
n = {
|
||||||
-- toggle wrap
|
-- toggle wrap
|
||||||
["<leader>tw"] = {
|
["<LEADER>tw"] = {
|
||||||
function()
|
function()
|
||||||
vim.opt_local.wrap = not vim.wo.wrap
|
vim.opt_local.wrap = not vim.wo.wrap
|
||||||
vim.opt_local.breakindent = not vim.wo.breakindent
|
vim.opt_local.breakindent = not vim.wo.breakindent
|
||||||
|
@ -363,19 +367,28 @@ M.ui = {
|
||||||
},
|
},
|
||||||
|
|
||||||
-- toggle some features
|
-- toggle some features
|
||||||
["<leader>tn"] = { "<cmd>setlocal nonumber!<CR>", "toggle line numbers" },
|
["<LEADER>tn"] = { "<CMD>setlocal nonumber!<CR>", "toggle line numbers" },
|
||||||
["<leader>trn"] = { "<cmd>setlocal nornu!<CR>", "toggle relative line numbers" },
|
["<LEADER>trn"] = { "<CMD>setlocal nornu!<CR>", "toggle relative line numbers" },
|
||||||
["<leader>ts"] = { "<cmd>setlocal spell!<CR>", "toggle spell check" },
|
["<LEADER>ts"] = { "<CMD>setlocal spell!<CR>", "toggle spell check" },
|
||||||
|
|
||||||
-- open windows
|
-- open windows
|
||||||
['<leader>"'] = { "<cmd>vsplit<CR>", "open a new window to the side" },
|
['<LEADER>"'] = { "<CMD>vsplit<CR>", "open a new window to the side" },
|
||||||
["<leader>%"] = { "<cmd>split<CR>", "open a new window on the totop" },
|
["<LEADER>%"] = { "<CMD>split<CR>", "open a new window on the totop" },
|
||||||
|
|
||||||
|
-- resize windows
|
||||||
|
["<C-Up>"] = { "<CMD>resize +1<CR>", "resize window" },
|
||||||
|
["<C-Down>"] = { "<CMD>resize -1<CR>", "resize window" },
|
||||||
|
["<C-Left>"] = { "<CMD>vertical resize +1<CR>", "resize window" },
|
||||||
|
["<C-Right>"] = { "<CMD>vertical resize -1<CR>", "resize window" },
|
||||||
|
|
||||||
-- tabs
|
-- tabs
|
||||||
["<leader>wtn"] = { "<cmd>tabnew<CR>", "open a new tab" },
|
["<LEADER>wtn"] = { "<CMD>tabnew<CR>", "open a new tab" },
|
||||||
["<leader>wtc"] = { "<cmd>tabclose<CR>", "close current tab" },
|
["<LEADER>wtc"] = { "<CMD>tabclose<CR>", "close current tab" },
|
||||||
["<leader>wtj"] = { "<cmd>tabnext<CR>", "open a new tab" },
|
["<LEADER>wtj"] = { "<CMD>tabnext<CR>", "open a new tab" },
|
||||||
["<leader>wtk"] = { "<cmd>tabprevious<CR>", "open a new tab" },
|
["<LEADER>wtk"] = { "<CMD>tabprevious<CR>", "open a new tab" },
|
||||||
|
|
||||||
|
-- folds
|
||||||
|
["<S-RETURN>"] = { "zMzv", "focus on this fold" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,237 @@
|
||||||
|
#ifferent
|
||||||
|
Linter
|
||||||
|
Neorg
|
||||||
|
DevOps
|
||||||
|
NewTec
|
||||||
|
Mergetools
|
||||||
|
Quellrepository
|
||||||
|
gemerged
|
||||||
|
mergen
|
||||||
|
a
|
||||||
|
ccl
|
||||||
|
NTSG
|
||||||
|
a
|
||||||
|
Jira
|
||||||
|
ReqEng
|
||||||
|
cscherr
|
||||||
|
MD5
|
||||||
|
Hashchecker
|
||||||
|
Testvectors
|
||||||
|
#ossibilites
|
||||||
|
possibilites/!
|
||||||
|
Hexdumper
|
||||||
|
hexdumped
|
||||||
|
Atlassian
|
||||||
|
Initialkosten
|
||||||
|
Hexeditor
|
||||||
|
hexeditor
|
||||||
|
Hexdumping
|
||||||
|
stdin
|
||||||
|
md
|
||||||
|
regex101
|
||||||
|
#nglish
|
||||||
|
Manspider
|
||||||
|
Manspiders
|
||||||
|
subrace
|
||||||
|
subraces
|
||||||
|
swiftstride
|
||||||
|
beasthide
|
||||||
|
Eldeen
|
||||||
|
Khorvaire
|
||||||
|
drider
|
||||||
|
spiderful
|
||||||
|
spiderfew
|
||||||
|
Spiderfolk
|
||||||
|
Shrelluka
|
||||||
|
find/!
|
||||||
|
find
|
||||||
|
Magnam
|
||||||
|
arachna
|
||||||
|
matrem
|
||||||
|
namegen
|
||||||
|
Zessas
|
||||||
|
Webbington
|
||||||
|
Razu
|
||||||
|
Rhellu
|
||||||
|
cantrip
|
||||||
|
d12
|
||||||
|
d4
|
||||||
|
th
|
||||||
|
unnoteworthy
|
||||||
|
Qroczhreer
|
||||||
|
Blokhof
|
||||||
|
Hauck
|
||||||
|
spiderous
|
||||||
|
zlib
|
||||||
|
experimentelle
|
||||||
|
SHA
|
||||||
|
Etablierungs
|
||||||
|
the
|
||||||
|
strikethrough
|
||||||
|
RustBook
|
||||||
|
IEC62443
|
||||||
|
DHBW
|
||||||
|
gelinked
|
||||||
|
openssl
|
||||||
|
Yocto
|
||||||
|
gls
|
||||||
|
ECC
|
||||||
|
Kryptosystem
|
||||||
|
github
|
||||||
|
sfackler
|
||||||
|
mathmatics
|
||||||
|
www
|
||||||
|
sagemath
|
||||||
|
PlexSheep
|
||||||
|
plexcryptool
|
||||||
|
ECDSA
|
||||||
|
EdDSA
|
||||||
|
Stringverarbeitung
|
||||||
|
#onblocking
|
||||||
|
OOP
|
||||||
|
Fifo
|
||||||
|
serde
|
||||||
|
Deserialisierung
|
||||||
|
serde
|
||||||
|
Skripte
|
||||||
|
mathmatics
|
||||||
|
bbc
|
||||||
|
Kryptographischen/!
|
||||||
|
PyO3
|
||||||
|
#yo3
|
||||||
|
JSON
|
||||||
|
json
|
||||||
|
#yo3
|
||||||
|
Verifikationsmechanismus
|
||||||
|
projektinterne
|
||||||
|
Theoriephase
|
||||||
|
weise/!
|
||||||
|
Weise
|
||||||
|
merksam
|
||||||
|
Syscall
|
||||||
|
Enum
|
||||||
|
deu
|
||||||
|
JS
|
||||||
|
JS
|
||||||
|
getElementById
|
||||||
|
MDN
|
||||||
|
WebDocs
|
||||||
|
src
|
||||||
|
txt
|
||||||
|
ERRNO
|
||||||
|
vvvv
|
||||||
|
Rustonomicon
|
||||||
|
Rustdoc
|
||||||
|
paragraph
|
||||||
|
rustc
|
||||||
|
Klabnik
|
||||||
|
io
|
||||||
|
rustbook
|
||||||
|
Deserialize
|
||||||
|
deserialisierbaren
|
||||||
|
SIGTERM
|
||||||
|
Beendigungsabfrage
|
||||||
|
SIGKILL
|
||||||
|
stdout
|
||||||
|
stderr
|
||||||
|
Leveln
|
||||||
|
gedroppt
|
||||||
|
#ekonstruktor
|
||||||
|
Dekonstruktor/!
|
||||||
|
dealloziiert
|
||||||
|
Dealloziierung
|
||||||
|
Dealloziieren
|
||||||
|
vvvv
|
||||||
|
TODO
|
||||||
|
vvvv
|
||||||
|
Structs
|
||||||
|
nomicon
|
||||||
|
Wrapperklasse
|
||||||
|
tx
|
||||||
|
rx
|
||||||
|
struct
|
||||||
|
enum
|
||||||
|
priorisierbar
|
||||||
|
仕方がない
|
||||||
|
Gleichzeitigkeitsmechanismen
|
||||||
|
ServiceWrapper
|
||||||
|
Repräsentierung
|
||||||
|
Docstrings
|
||||||
|
Backends
|
||||||
|
dirs
|
||||||
|
MessageFrame
|
||||||
|
Addressor
|
||||||
|
init
|
||||||
|
Spektralgestalt
|
||||||
|
CTS
|
||||||
|
Addressor
|
||||||
|
Timestamp
|
||||||
|
str
|
||||||
|
BASEDIRECTORY
|
||||||
|
configs
|
||||||
|
fifo
|
||||||
|
PKI
|
||||||
|
secp384r1
|
||||||
|
Addressors
|
||||||
|
Keystore
|
||||||
|
Fifos
|
||||||
|
SBC
|
||||||
|
NTSecureCloudSolutions
|
||||||
|
newtec
|
||||||
|
loesungen
|
||||||
|
subfigure
|
||||||
|
Shield96
|
||||||
|
ATSAMA5D27
|
||||||
|
TrustZone
|
||||||
|
A5
|
||||||
|
ARMv7
|
||||||
|
eMMC
|
||||||
|
MT25QU0512BBB
|
||||||
|
ATECC608
|
||||||
|
Rückwärtskompatibilität
|
||||||
|
tls
|
||||||
|
opcua
|
||||||
|
texttt
|
||||||
|
rfcp
|
||||||
|
ssl
|
||||||
|
Lifecycle
|
||||||
|
v0
|
||||||
|
pyi
|
||||||
|
bietete
|
||||||
|
desc
|
||||||
|
Scherr
|
||||||
|
mariadb
|
||||||
|
Gawa
|
||||||
|
Django
|
||||||
|
opensource
|
||||||
|
Shader
|
||||||
|
shader
|
||||||
|
GLFW
|
||||||
|
shaders
|
||||||
|
GLSL
|
||||||
|
cpp
|
||||||
|
clangd
|
||||||
|
Hashtypen
|
||||||
|
Ver
|
||||||
|
vshot
|
||||||
|
oopsc
|
||||||
|
antlr
|
||||||
|
wir's
|
||||||
|
Naja
|
||||||
|
Vlam
|
||||||
|
UNE
|
||||||
|
Electionary
|
||||||
|
UNE's
|
||||||
|
recuse
|
||||||
|
hacky
|
||||||
|
config
|
||||||
|
Yubi
|
||||||
|
submodules
|
||||||
|
Curve25519
|
||||||
|
gpg
|
||||||
|
devops
|
||||||
|
lazygit
|
||||||
|
IDEs
|
||||||
|
hypervisors
|
||||||
|
QEMU
|
||||||
|
virt
|
Binary file not shown.
Loading…
Reference in New Issue