neovim: small patches + bibtex

This commit is contained in:
Marco Thomas
2022-07-22 20:29:28 +02:00
parent d4c9f13730
commit 9a210d53e2
7 changed files with 41 additions and 40 deletions

View File

@@ -22,7 +22,7 @@ local navic = require('nvim-navic') -- breadcrumbs
-- Normal LSPs -- Normal LSPs
-- Install with `:LSPInstall` -- Install with `:LSPInstall`
local servers = { "pylsp", "sumneko_lua", "hls" } local servers = { "pylsp", "sumneko_lua", "hls", "clangd" }
for _, i in ipairs(servers) do for _, i in ipairs(servers) do
lsp[i].setup({ lsp[i].setup({
on_attach = function(client, bufnr) on_attach = function(client, bufnr)

View File

@@ -72,7 +72,23 @@ wk.register({
i = { i = {
e = { "Emoji" }, e = { "Emoji" },
m = { "Math symbol" }, m = { "Math symbol" },
n = { "Nerd Font" }, n = { "Nerd Font icon" },
}
}
})
-- Comment.nvim
require('Comment').setup({
opleader = {
line = '<leader>cl',
block = '<leader>cb',
}
})
wk.register({
["<leader>"] = {
c = {
l = { "Line comment" },
b = { "Block comment" },
} }
} }
}) })
@@ -114,4 +130,3 @@ cmp.setup({
}), }),
}, },
}) })

View File

@@ -17,10 +17,10 @@ return require('packer').startup(function(use)
use({ use({
'sainnhe/everforest', 'sainnhe/everforest',
config = function() config = function()
vim.cmd("set termguicolors")
vim.cmd("set background=light") vim.cmd("set background=light")
vim.cmd("let g:everforest_background = 'hard'") vim.cmd("let g:everforest_background = 'hard'")
vim.cmd("colorscheme everforest") vim.cmd("colorscheme everforest")
vim.cmd("set termguicolors")
end, end,
}) })
@@ -196,7 +196,7 @@ return require('packer').startup(function(use)
end, end,
}) })
-- which-key -- which-key (Show key combos)
use { use {
"folke/which-key.nvim", "folke/which-key.nvim",
config = function() config = function()
@@ -211,12 +211,7 @@ return require('packer').startup(function(use)
use({ use({
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
config = function() config = function()
require('Comment').setup({ require('Comment').setup()
opleader = {
line = '<leader>cl',
block = '<leader>cb',
}
})
end, end,
}) })
@@ -244,6 +239,14 @@ return require('packer').startup(function(use)
end, end,
} }
-- show colors
use({
"norcalli/nvim-colorizer.lua",
config = function()
require 'colorizer'.setup()
end
})
-- Automatically set up your configuration after cloning packer.nvim -- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins -- Put this at the end after all plugins
if packer_bootstrap then if packer_bootstrap then

View File

@@ -11,6 +11,7 @@ opt.smartindent = true -- Autoindent new lines
opt.showmode = false -- Disable status on most bottom row opt.showmode = false -- Disable status on most bottom row
opt.clipboard = "unnamed" -- Copy & Paste with system clipboard opt.clipboard = "unnamed" -- Copy & Paste with system clipboard
opt.list = true -- Show trailing whitespaces opt.list = true -- Show trailing whitespaces
opt.wrap = false -- Show trailing whitespaces
vim.opt.undofile = true -- Save undo history vim.opt.undofile = true -- Save undo history
vim.o.mouse = 'a' -- Enable mouse vim.o.mouse = 'a' -- Enable mouse

View File

@@ -7,7 +7,8 @@
"snippets": [ "snippets": [
{ {
"language": [ "language": [
"tex" "tex",
"plaintex"
], ],
"path": "./snippets/latex.json" "path": "./snippets/latex.json"
} }

View File

@@ -4,10 +4,11 @@
"body": [ "body": [
"\\input{/home/marc/.dots/presets/notes.tex}", "\\input{/home/marc/.dots/presets/notes.tex}",
"", "",
"\\title{$1}", "\\title{$1 \\\\\\[0.2em] \\large $2}",
"\\subtitle{$1}",
"\\author{Marco Thomas}", "\\author{Marco Thomas}",
"", "",
"% \\bibliography{}",
"",
"\\begin{document}", "\\begin{document}",
"", "",
"\\maketitle", "\\maketitle",

View File

@@ -16,32 +16,16 @@
\usepackage{xcolor} \usepackage{xcolor}
\usepackage{color} \usepackage{color}
%%% lorem ipsum %%% bibtex - cite with \autocite{}, will show in footnote
\usepackage[style=verbose-ibid,backend=bibtex]{biblatex}
\usepackage{csquotes}
%%% lorem ipsum text
\usepackage{blindtext} \usepackage{blindtext}
%%% figures in text flow %%% figures in text flow
\usepackage{wrapfig} \usepackage{wrapfig}
%%% make \paragraph{} and \subparagraph{} look like a normal subsection
%\makeatletter
%\renewcommand\paragraph{%
% \@startsection{paragraph}{4}{0mm}%
% {-\baselineskip}%
% {.5\baselineskip}%
% {\normalfont\normalsize\bfseries}}
%\makeatother
%
%\makeatletter
%\renewcommand\subparagraph{%
% \@startsection{subparagraph}{4}{0mm}%
% {-\baselineskip}%
% {.5\baselineskip}%
% {\normalfont\normalsize\bfseries}}
%\makeatother
%
%\setcounter{tocdepth}{5}
%\setcounter{secnumdepth}{5}
%%% links in toc etc %%% links in toc etc
\usepackage{hyperref} \usepackage{hyperref}
@@ -76,10 +60,6 @@
%%% theorem-style environments %%% theorem-style environments
\usepackage{proof} \usepackage{proof}
%\usepackage[skins]{tcolorbox}
% just saved, not using anymore
%\tcolorboxenvironment{definition}{blanker, before skip=10pt,after skip=10pt}
\theoremstyle{definition} \theoremstyle{definition}
\newtheorem{definition}{Definition}[section] \newtheorem{definition}{Definition}[section]
\newtheorem{example}{Beispiel}[section] \newtheorem{example}{Beispiel}[section]