From cb2f901a41d7ce3480eb63c0e482510da0e14076 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 5 Apr 2022 23:36:29 +0200 Subject: [PATCH] nvim: Fix legendary picker --- config/nvim/plugins/legendary.fnl | 2 ++ config/nvim/plugins/telescope.fnl | 1 + programs/nvim/default.nix | 5 +---- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 config/nvim/plugins/legendary.fnl diff --git a/config/nvim/plugins/legendary.fnl b/config/nvim/plugins/legendary.fnl new file mode 100644 index 0000000..dee324b --- /dev/null +++ b/config/nvim/plugins/legendary.fnl @@ -0,0 +1,2 @@ +(let [legendary (require :legendary)] + (legendary.setup {})) diff --git a/config/nvim/plugins/telescope.fnl b/config/nvim/plugins/telescope.fnl index d8d5256..78ca35c 100644 --- a/config/nvim/plugins/telescope.fnl +++ b/config/nvim/plugins/telescope.fnl @@ -12,6 +12,7 @@ ; Mappings :mappings {:i {: actions.close}}} :extensions {:ui-select [(themes.get_dropdown {})]}}) + (telescope.load_extension :ui-select) (let [augroup (vim.api.nvim_create_augroup :NifocTelescope {:clear true}) aucmd vim.api.nvim_create_autocmd] (aucmd :FileType {:pattern :TelescopePrompt diff --git a/programs/nvim/default.nix b/programs/nvim/default.nix index ae0cfab..1260892 100644 --- a/programs/nvim/default.nix +++ b/programs/nvim/default.nix @@ -65,10 +65,7 @@ in # Keybindings { plugin = legendary-nvim; - config = '' - (let [legendary (require :legendary)] - (legendary.setup)) - ''; + config = builtins.readFile ../../config/nvim/plugins/legendary.fnl; type = "fennel"; }