mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 03:30:36 +00:00
feat(otter.lua): add support for embedding Python and Lua languages in Otter
This commit is contained in:
15
lua/absolute/after/otter.lua
Normal file
15
lua/absolute/after/otter.lua
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user