From d07aa82cdaef14bc4b29588f1317fd090a945fcc Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Fri, 17 Nov 2023 22:03:18 +0200 Subject: [PATCH] Nvim: limit some plugins to only load on specific filetypes --- home/.config/nvim/lua/plugins/lazy.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/.config/nvim/lua/plugins/lazy.lua b/home/.config/nvim/lua/plugins/lazy.lua index 54cd7eb6..7ae457d9 100644 --- a/home/.config/nvim/lua/plugins/lazy.lua +++ b/home/.config/nvim/lua/plugins/lazy.lua @@ -110,7 +110,7 @@ local plugins = { }, -- vim api documentation for lua lsp - "ii14/emmylua-nvim", + { "ii14/emmylua-nvim", ft = { "lua" } }, -- Completion { @@ -182,10 +182,10 @@ local plugins = { }, -- Vim ♥️ Asciidoctor - "habamax/vim-asciidoctor", + { "habamax/vim-asciidoctor", ft = { "asciidoctor", "asciidoc" } }, -- Asciidoc preview - { "tigion/nvim-asciidoc-preview", ft = { "asciidoctor" } }, + { "tigion/nvim-asciidoc-preview", ft = { "asciidoctor", "asciidoc" } }, -- Markdown preview { @@ -198,7 +198,7 @@ local plugins = { }, -- Edit GPG encrypted files transparently - "jamessan/vim-gnupg", + { "jamessan/vim-gnupg", ft = { "gpg" } }, -- High performance color highlighter { @@ -207,7 +207,7 @@ local plugins = { }, -- Caddyfile syntax support - "isobit/vim-caddyfile", + { "isobit/vim-caddyfile", ft = "caddyfile" }, -- Startup dashboard {