about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-02 18:53:24 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-02 18:53:24 +0100
commitd5932401ed622251088689310fce766990f34c73 (patch)
tree6c90201faa0c90dac346a513c113468cc4166ede /modules/home.legacy/conf
parentstyle(modules/legacy/conf/nvim): Format (diff)
downloadnixos-config-d5932401ed622251088689310fce766990f34c73.tar.gz
nixos-config-d5932401ed622251088689310fce766990f34c73.zip
fix(modules/legacy/conf/nvim/plgs/femacro): Add additional config function
Diffstat (limited to 'modules/home.legacy/conf')
-rw-r--r--modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua9
1 files changed, 9 insertions, 0 deletions
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,
 })