From 5455af3d4259bc354f01f2445a938625179b3a38 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 30 Jul 2023 15:31:48 +0200 Subject: [PATCH] feat: telekasten things --- home/neovim/init.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/home/neovim/init.lua b/home/neovim/init.lua index 76b1789..23051e5 100644 --- a/home/neovim/init.lua +++ b/home/neovim/init.lua @@ -47,6 +47,7 @@ require("packer").startup(function(use) -- language support use("Glench/Vim-Jinja2-Syntax") use("preservim/vim-markdown") + use("mzlogin/vim-markdown-toc") use("LnL7/vim-nix") use("hashivim/vim-terraform") use("LaTeX-Box-Team/LaTeX-Box") @@ -78,6 +79,7 @@ require("packer").startup(function(use) } use { 'nvim-telescope/telescope-symbols.nvim' } use { 'renerocksai/calendar-vim' } + use { "nvim-telescope/telescope-bibtex.nvim" } use("sheerun/vim-polyglot") @@ -385,6 +387,10 @@ vim.keymap.set('n', 'ff', telescope_builtin.find_files, {}) vim.keymap.set('n', 'fg', telescope_builtin.live_grep, {}) vim.keymap.set('n', 'fb', telescope_builtin.buffers, {}) vim.keymap.set('n', 'fh', telescope_builtin.help_tags, {}) +vim.keymap.set('n', 'fs', function() + telescope_builtin.symbols({ sources = 'emoji', 'gitmoji', 'nerd' }) +end) +vim.keymap.set('n', 'fb', ":Telescope bibtex") local telescope = require("telescope") telescope.setup { @@ -402,11 +408,15 @@ telescope.setup { -- filetypes = { "png", "webp", "jpg", "jpeg" }, -- -- find command (defaults to `fd`) -- find_cmd = "rg" - -- } + -- }, + bibtex = { + global_files = { vim.fn.expand("~/notes/refs") }, + } } } telescope.load_extension("fzf") telescope.load_extension("media_files") +telescope.load_extension("bibtex") require 'nvim-web-devicons'.setup()