From 06bfa39204108ff89d510aa890d525c0b1bb655c Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 9 Jul 2024 06:35:53 -0300 Subject: [PATCH] neovim: trigger otter lsp on `sh` embedded text --- programs/neovim/lua/plugins/user.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/neovim/lua/plugins/user.lua b/programs/neovim/lua/plugins/user.lua index 6a04d5a..2f1c0b9 100644 --- a/programs/neovim/lua/plugins/user.lua +++ b/programs/neovim/lua/plugins/user.lua @@ -34,11 +34,15 @@ return { end, }, { + -- Adds highlighting and lsp features for embedded code in documents. "jmbuhr/otter.nvim", dependencies = { "hrsh7th/nvim-cmp", "neovim/nvim-lspconfig", "nvim-treesitter/nvim-treesitter", }, + config = function() + require("otter").activate({ "sh" }, true, true, nil) + end, }, }