feat: telekasten things

main
Ricard Illa 2023-07-30 15:31:48 +02:00
parent bb542b005d
commit 5455af3d42
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 11 additions and 1 deletions

View File

@ -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', '<leader>ff', telescope_builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', telescope_builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', telescope_builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', telescope_builtin.help_tags, {})
vim.keymap.set('n', '<leader>fs', function()
telescope_builtin.symbols({ sources = 'emoji', 'gitmoji', 'nerd' })
end)
vim.keymap.set('n', '<leader>fb', ":Telescope bibtex<CR>")
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()