Nvim: limit some plugins to only load on specific filetypes

This commit is contained in:
Marko Korhonen 2023-11-17 22:03:18 +02:00
parent e18faebc50
commit 69174838ad

View file

@ -110,7 +110,7 @@ local plugins = {
}, },
-- vim api documentation for lua lsp -- vim api documentation for lua lsp
"ii14/emmylua-nvim", { "ii14/emmylua-nvim", ft = { "lua" } },
-- Completion -- Completion
{ {
@ -182,10 +182,10 @@ local plugins = {
}, },
-- Vim ♥️ Asciidoctor -- Vim ♥️ Asciidoctor
"habamax/vim-asciidoctor", { "habamax/vim-asciidoctor", ft = { "asciidoctor", "asciidoc" } },
-- Asciidoc preview -- Asciidoc preview
{ "tigion/nvim-asciidoc-preview", ft = { "asciidoctor" } }, { "tigion/nvim-asciidoc-preview", ft = { "asciidoctor", "asciidoc" } },
-- Markdown preview -- Markdown preview
{ {
@ -198,7 +198,7 @@ local plugins = {
}, },
-- Edit GPG encrypted files transparently -- Edit GPG encrypted files transparently
"jamessan/vim-gnupg", { "jamessan/vim-gnupg", ft = { "gpg" } },
-- High performance color highlighter -- High performance color highlighter
{ {
@ -207,7 +207,7 @@ local plugins = {
}, },
-- Caddyfile syntax support -- Caddyfile syntax support
"isobit/vim-caddyfile", { "isobit/vim-caddyfile", ft = "caddyfile" },
-- Startup dashboard -- Startup dashboard
{ {