Skip to content
Snippets Groups Projects
Commit 24d0abc3 authored by Tobias Ritschl's avatar Tobias Ritschl
Browse files

Update nvim config from Thinkpad

parent 7f882478
No related branches found
No related tags found
1 merge request!1Lazyvim
return {
"stevearc/aerial.nvim",
lazy = true,
opts = {
-- optionally use on_attach to set keymaps when aerial has attached to a buffer
on_attach = function(bufnr)
-- Jump forwards/backwards with '{' and '}'
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
end,
},
-- Optional dependencies
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons",
},
keys = {
{ "<leader>a", "<cmd>AerialToggle!<CR>", desc = "open Aerial code browser" },
},
}
return {
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- add options here
-- or leave it empty to use the default settings
},
keys = {
-- suggested keymap
{ "<leader>p", "<cmd>PasteImage<cr>", desc = "Paste image from system clipboard" },
},
}
......@@ -3,6 +3,7 @@ return {
-- lazy = false,
config = function()
require("luasnip.loaders.from_snipmate").lazy_load()
require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/LuaSnip/" })
require("luasnip").config.setup({
update_events = "TextChanged,TextChangedI",
enable_autosnippets = true,
......
return { "echasnovski/mini.align", version = false, opts = {}, lazy = false }
return {
"folke/noice.nvim",
opts = {
messages = { enable = false },
},
}
......@@ -24,7 +24,7 @@ return {
path = "~/Obsidian",
},
},
ui = { enable = false },
-- see below for full list of options 👇
},
}
return {
{ "tpope/vim-fugitive" },
{
"tpope/vim-fugitive",
keys = {
{
"<localleader>s",
"<cmd>Gw<cr> <cmd>G ci -m update<cr> <cmd>G push<cr>",
desc = "git write, commit and push",
},
{
"<localleader>g",
"<cmd>0G<cr>",
desc = "open git fugitive status view",
},
},
},
}
return {
"lervag/vimtex",
lazy = false, -- lazy-loading will disable inverse search
config = function()
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog"
end,
keys = {
{ "<localLeader>l", "", desc = "+vimtex" },
},
}
-- Place this in ${HOME}/.config/nvim/LuaSnip/all.lua
return {
-- A snippet that expands the trigger "hi" into the string "Hello, world!".
require("luasnip").snippet({ trig = "hi" }, { t("Hello, world!") }),
}
......@@ -5,6 +5,12 @@ snippet ig
autosnippet $$
$${1}$$0
snippet __
_{${1}}$0
snippet ^^
^{${1}}$0
# latex templates
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment