From d5932401ed622251088689310fce766990f34c73 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 2 Nov 2024 18:53:24 +0100 Subject: fix(modules/legacy/conf/nvim/plgs/femacro): Add additional config function --- modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua b/modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua index 443f1913..c113e4c7 100644 --- a/modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua +++ b/modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua @@ -39,4 +39,13 @@ require("femaco").setup({ -- filetype of the injected language (this is the current buffer so you can -- get it from vim.bo.filetyp). ensure_newline = function(base_filetype) return false end, + -- Return true if the indentation should be normalized. Useful when the + -- injected language inherits indentation from the construction scope (e.g. an + -- inline multiline sql string). If true, the leading indentation is detected, + -- stripped, and restored before/after editing. + -- + -- @param base_filetype: The filetype which FeMaco is called from, not the + -- filetype of the injected language (this is the current buffer, so you can + -- get it from vim.bo.filetype). + normalize_indent = function(base_filetype) return false end, }) -- cgit 1.4.1