From a44b125f4ae8f57a26acb29c9a709db86a33dd32 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 18 Aug 2024 19:39:44 -0700 Subject: [PATCH] feat: add some vim config --- users/youwen/common/neovim/default.nix | 34 +++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/users/youwen/common/neovim/default.nix b/users/youwen/common/neovim/default.nix index 9f3ec75..2efd999 100644 --- a/users/youwen/common/neovim/default.nix +++ b/users/youwen/common/neovim/default.nix @@ -409,6 +409,7 @@ settings = { highlight.enable = true; indent.enable = true; + folding.enable = true; }; }; lsp-lines.enable = true; @@ -437,10 +438,35 @@ }; telescope = { enable = true; - extensions.ui-select = { - enable = true; - settings = { - codeactions = true; + extensions = { + ui-select = { + enable = true; + settings = { + codeactions = true; + }; + }; + media-files = { + enable = true; + settings = { + filetypes = [ + "png" + "webp" + "jpg" + "jpeg" + "mp4" + "svg" + "pdf" + "mov" + "mkv" + "avi" + ]; + find_cmd = "rg"; + }; + dependencies = { + imageMagick.enable = true; + pdftoppm.enable = true; + ffmpegthumbnailer.enable = true; + }; }; }; };