diff options
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix | 10 | ||||
-rw-r--r-- | modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/tex.lua (renamed from modules/by-name/nv/nvim/files/ftplugin/tex.lua) | 0 |
2 files changed, 9 insertions, 1 deletions
diff --git a/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix b/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix index e263cfdc..818aa18e 100644 --- a/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix +++ b/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix @@ -6,11 +6,19 @@ }: let cfg = config.soispha.programs.nvim; in { - # WARNING: This is only activated in tex files via the ftplugin. home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable { extraPlugins = [ pkgs.vimExtraPlugins.telescope-bibtex-nvim ]; + + # Only activate this in tex files. + # TODO: Why? <2024-11-23> + extraFiles = { + "ftplugin/tex.lua".text = '' + ${lib.strings.fileContents ./tex.lua} + ''; + }; + keymaps = [ { key = "<space>ib"; diff --git a/modules/by-name/nv/nvim/files/ftplugin/tex.lua b/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/tex.lua index 4107a7c5..4107a7c5 100644 --- a/modules/by-name/nv/nvim/files/ftplugin/tex.lua +++ b/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/tex.lua |