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-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-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
|
-- Telescope + LSP
|
||||||
map("n", "<leader>la", "<cmd> lua vim.lsp.buf.code_action()<CR>", default_opts) -- Apply LSP code action
|
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
|
-- git
|
||||||
map("n", "<leader>gs", "<cmd> Neogit<CR>", default_opts)
|
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({
|
wk.register({
|
||||||
["<leader>"] = {
|
["<leader>"] = {
|
||||||
g = {
|
g = {
|
||||||
s = { "Status" },
|
s = { "Status" },
|
||||||
b = { "Blame line" },
|
b = { "Blame" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -123,6 +123,8 @@ return require('packer').startup(function(use)
|
|||||||
config = function() require('plugins.neogit-conf') end,
|
config = function() require('plugins.neogit-conf') end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use 'tpope/vim-fugitive'
|
||||||
|
|
||||||
-- git signs at left side (+ blame line)
|
-- git signs at left side (+ blame line)
|
||||||
use {
|
use {
|
||||||
'lewis6991/gitsigns.nvim',
|
'lewis6991/gitsigns.nvim',
|
||||||
|
|||||||
@@ -41,11 +41,15 @@
|
|||||||
"\\maketitle",
|
"\\maketitle",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"\\begin{frame}",
|
"\\begin{frame}",
|
||||||
" \\frametitle{Inhaltsübersicht}",
|
" \\frametitle{Inhaltsübersicht}",
|
||||||
" \\tableofcontents[hideallsubsections]",
|
" \\tableofcontents[hideallsubsections]",
|
||||||
"\\end{frame}",
|
"\\end{frame}",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"",
|
"",
|
||||||
|
"\\section{$3}",
|
||||||
|
"\\begin{frame}",
|
||||||
|
"\\end{frame}",
|
||||||
|
"",
|
||||||
"\\end{document}"
|
"\\end{document}"
|
||||||
],
|
],
|
||||||
"description": "Preset to create new presentation"
|
"description": "Preset to create new presentation"
|
||||||
@@ -54,10 +58,10 @@
|
|||||||
"prefix": "wrapfigure",
|
"prefix": "wrapfigure",
|
||||||
"body": [
|
"body": [
|
||||||
"\\begin{wrapfigure}{${1:l or r}}{0.4\\textwidth}",
|
"\\begin{wrapfigure}{${1:l or r}}{0.4\\textwidth}",
|
||||||
" \\centering",
|
"\t\\centering",
|
||||||
" \\includegraphics[width=0.2\\textwidth]{figures/$2}",
|
"\t\\includegraphics[width=0.2\\textwidth]{figures/$2}",
|
||||||
" \\caption{$3}",
|
"\t\\caption{$3}",
|
||||||
" \\label{fig:$4}",
|
"\t\\label{fig:$4}",
|
||||||
"\\end{wrapfigure}"
|
"\\end{wrapfigure}"
|
||||||
],
|
],
|
||||||
"description": "Wrap figure in text context"
|
"description": "Wrap figure in text context"
|
||||||
@@ -96,10 +100,10 @@
|
|||||||
"prefix": "columns",
|
"prefix": "columns",
|
||||||
"body": [
|
"body": [
|
||||||
"\\begin{columns}",
|
"\\begin{columns}",
|
||||||
" \\begin{column}{0.5\\textwidth}",
|
"\t\\begin{column}{0.5\\textwidth}",
|
||||||
" \\end{column}",
|
"\t\\end{column}",
|
||||||
" \\begin{column}{0.5\\textwidth}",
|
"\t\\begin{column}{0.5\\textwidth}",
|
||||||
" \\end{column}",
|
"\t\\end{column}",
|
||||||
"\\end{columns}"
|
"\\end{columns}"
|
||||||
],
|
],
|
||||||
"description": "Create columns env in a slide"
|
"description": "Create columns env in a slide"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ call plug#begin()
|
|||||||
Plug 'tpope/vim-sleuth' " heuristic file indendation
|
Plug 'tpope/vim-sleuth' " heuristic file indendation
|
||||||
Plug 'jiangmiao/auto-pairs' " pair completion
|
Plug 'jiangmiao/auto-pairs' " pair completion
|
||||||
Plug 'ctrlpvim/ctrlp.vim' " file finder
|
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 'sainnhe/everforest' " color scheme
|
||||||
Plug 'vim-airline/vim-airline' " a nicer status line
|
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>
|
map <C-f> :CtrlP<CR>
|
||||||
" C-/ to hide search results
|
" C-/ to hide search results
|
||||||
map <C-_> :noh<CR>
|
map <C-_> :noh<CR>
|
||||||
|
" git
|
||||||
|
map <leader>gs :Git status<CR>
|
||||||
|
map <leader>gb :Git blame<CR>
|
||||||
|
map <C-s> :Git grep
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
%%% define own enumeration styles
|
%%% define own enumeration styles
|
||||||
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
|
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
|
||||||
|
% \arabic*) or \roman*)
|
||||||
\usepackage{enumerate}
|
\usepackage{enumerate}
|
||||||
\usepackage{enumitem}
|
\usepackage{enumitem}
|
||||||
\setlist{nosep}
|
\setlist{nosep}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
%%% define own enumeration styles
|
%%% define own enumeration styles
|
||||||
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
|
% use custom labels with `\begin{enumerate}[label=$\bullet$]`
|
||||||
|
% \arabic*) or \roman*)
|
||||||
\usepackage{enumerate}
|
\usepackage{enumerate}
|
||||||
\usepackage{enumitem}
|
\usepackage{enumitem}
|
||||||
\setlist{nosep}
|
\setlist{nosep}
|
||||||
|
|||||||
Reference in New Issue
Block a user