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
-- Install with `:LSPInstall`
local servers = { "pylsp", "sumneko_lua", "hls" }
local servers = { "pylsp", "sumneko_lua", "hls", "clangd" }
for _, i in ipairs(servers) do
lsp[i].setup({
on_attach = function(client, bufnr)

View File

@@ -72,7 +72,23 @@ wk.register({
i = {
e = { "Emoji" },
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({
'sainnhe/everforest',
config = function()
vim.cmd("set termguicolors")
vim.cmd("set background=light")
vim.cmd("let g:everforest_background = 'hard'")
vim.cmd("colorscheme everforest")
vim.cmd("set termguicolors")
end,
})
@@ -192,11 +192,11 @@ return require('packer').startup(function(use)
-- Load friendly-snippets
require('luasnip.loaders.from_vscode').lazy_load()
-- Load own snippets
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./snippets" }})
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./snippets" } })
end,
})
-- which-key
-- which-key (Show key combos)
use {
"folke/which-key.nvim",
config = function()
@@ -211,12 +211,7 @@ return require('packer').startup(function(use)
use({
"numToStr/Comment.nvim",
config = function()
require('Comment').setup({
opleader = {
line = '<leader>cl',
block = '<leader>cb',
}
})
require('Comment').setup()
end,
})
@@ -244,6 +239,14 @@ return require('packer').startup(function(use)
end,
}
-- show colors
use({
"norcalli/nvim-colorizer.lua",
config = function()
require 'colorizer'.setup()
end
})
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
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.clipboard = "unnamed" -- Copy & Paste with system clipboard
opt.list = true -- Show trailing whitespaces
opt.wrap = false -- Show trailing whitespaces
vim.opt.undofile = true -- Save undo history
vim.o.mouse = 'a' -- Enable mouse

View File

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

View File

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