update nvim/vim and add fugitive
This commit is contained in:
@@ -24,9 +24,8 @@ telescope.setup({
|
||||
}
|
||||
})
|
||||
map("n", "<C-f>", "<cmd> Telescope find_files<CR>", default_opts) -- Show files
|
||||
map("n", "<C-g>", "<cmd> Telescope live_grep<CR>", default_opts) -- Grep through current directory
|
||||
map("n", "<C-s>", "<cmd> Telescope live_grep<CR>", default_opts) -- Grep through current directory
|
||||
map("n", "<C-k>", "<cmd> Telescope keymaps<CR>", default_opts) -- Show all keys
|
||||
map("n", "<C-s>", "<cmd> Telescope current_buffer_fuzzy_find<CR>", default_opts) -- Grep through current file
|
||||
|
||||
-- Telescope + LSP
|
||||
map("n", "<leader>la", "<cmd> lua vim.lsp.buf.code_action()<CR>", default_opts) -- Apply LSP code action
|
||||
@@ -56,12 +55,12 @@ wk.register({
|
||||
|
||||
-- git
|
||||
map("n", "<leader>gs", "<cmd> Neogit<CR>", default_opts)
|
||||
map("n", "<leader>gb", "<cmd> Gitsigns toggle_current_line_blame<CR>", default_opts)
|
||||
map("n", "<leader>gb", "<cmd> Git blame<CR>", default_opts)
|
||||
wk.register({
|
||||
["<leader>"] = {
|
||||
g = {
|
||||
s = { "Status" },
|
||||
b = { "Blame line" },
|
||||
b = { "Blame" },
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -123,6 +123,8 @@ return require('packer').startup(function(use)
|
||||
config = function() require('plugins.neogit-conf') end,
|
||||
}
|
||||
|
||||
use 'tpope/vim-fugitive'
|
||||
|
||||
-- git signs at left side (+ blame line)
|
||||
use {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
|
||||
@@ -41,11 +41,15 @@
|
||||
"\\maketitle",
|
||||
"\\newpage",
|
||||
"\\begin{frame}",
|
||||
" \\frametitle{Inhaltsübersicht}",
|
||||
" \\tableofcontents[hideallsubsections]",
|
||||
" \\frametitle{Inhaltsübersicht}",
|
||||
" \\tableofcontents[hideallsubsections]",
|
||||
"\\end{frame}",
|
||||
"\\newpage",
|
||||
"",
|
||||
"\\section{$3}",
|
||||
"\\begin{frame}",
|
||||
"\\end{frame}",
|
||||
"",
|
||||
"\\end{document}"
|
||||
],
|
||||
"description": "Preset to create new presentation"
|
||||
@@ -54,10 +58,10 @@
|
||||
"prefix": "wrapfigure",
|
||||
"body": [
|
||||
"\\begin{wrapfigure}{${1:l or r}}{0.4\\textwidth}",
|
||||
" \\centering",
|
||||
" \\includegraphics[width=0.2\\textwidth]{figures/$2}",
|
||||
" \\caption{$3}",
|
||||
" \\label{fig:$4}",
|
||||
"\t\\centering",
|
||||
"\t\\includegraphics[width=0.2\\textwidth]{figures/$2}",
|
||||
"\t\\caption{$3}",
|
||||
"\t\\label{fig:$4}",
|
||||
"\\end{wrapfigure}"
|
||||
],
|
||||
"description": "Wrap figure in text context"
|
||||
@@ -96,10 +100,10 @@
|
||||
"prefix": "columns",
|
||||
"body": [
|
||||
"\\begin{columns}",
|
||||
" \\begin{column}{0.5\\textwidth}",
|
||||
" \\end{column}",
|
||||
" \\begin{column}{0.5\\textwidth}",
|
||||
" \\end{column}",
|
||||
"\t\\begin{column}{0.5\\textwidth}",
|
||||
"\t\\end{column}",
|
||||
"\t\\begin{column}{0.5\\textwidth}",
|
||||
"\t\\end{column}",
|
||||
"\\end{columns}"
|
||||
],
|
||||
"description": "Create columns env in a slide"
|
||||
|
||||
Reference in New Issue
Block a user