neovim: small patches + bibtex
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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({
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"snippets": [
|
||||
{
|
||||
"language": [
|
||||
"tex"
|
||||
"tex",
|
||||
"plaintex"
|
||||
],
|
||||
"path": "./snippets/latex.json"
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user