From ef623f83addf4b6da411e3e868a1d3911e244740 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Sun, 10 Mar 2024 12:22:04 +0100 Subject: [PATCH] feat(otter.lua): add support for embedding Python and Lua languages in Otter --- lua/absolute/after/otter.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lua/absolute/after/otter.lua diff --git a/lua/absolute/after/otter.lua b/lua/absolute/after/otter.lua new file mode 100644 index 0000000..057859f --- /dev/null +++ b/lua/absolute/after/otter.lua @@ -0,0 +1,15 @@ +local otter = require("otter") + +-- table of embedded languages to look for. +-- required (no default) +local languages = { "python", "lua" } + +-- enable completion/diagnostics +-- defaults are true +local completion = true +local diagnostics = true +-- treesitter query to look for embedded languages +-- uses injections if nil or not set +local tsquery = nil + +otter.activate(languages, completion, diagnostics, tsquery)