update nvim/vim and add fugitive

This commit is contained in:
Marco Thomas
2022-09-07 22:26:26 +02:00
parent 82122bd607
commit fa34b02c8c
6 changed files with 26 additions and 15 deletions

View File

@@ -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" },
}
}
})

View File

@@ -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',

View File

@@ -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"

View File

@@ -16,7 +16,7 @@ call plug#begin()
Plug 'tpope/vim-sleuth' " heuristic file indendation
Plug 'jiangmiao/auto-pairs' " pair completion
Plug 'ctrlpvim/ctrlp.vim' " file finder
Plug 'djoshea/vim-autoread' " auto reload file, when changed on disk
Plug 'tpope/vim-fugitive' " git wrapper
Plug 'sainnhe/everforest' " color scheme
Plug 'vim-airline/vim-airline' " a nicer status line
@@ -94,3 +94,7 @@ let g:netrw_banner = 0 " Remove useless banner at the top of netrw
map <C-f> :CtrlP<CR>
" C-/ to hide search results
map <C-_> :noh<CR>
" git
map <leader>gs :Git status<CR>
map <leader>gb :Git blame<CR>
map <C-s> :Git grep

View File

@@ -33,6 +33,7 @@
%%% define own enumeration styles
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
% \arabic*) or \roman*)
\usepackage{enumerate}
\usepackage{enumitem}
\setlist{nosep}

View File

@@ -26,6 +26,7 @@
%%% define own enumeration styles
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
% \arabic*) or \roman*)
\usepackage{enumerate}
\usepackage{enumitem}
\setlist{nosep}