diff options
Diffstat (limited to 'modules/home.legacy')
-rw-r--r-- | modules/home.legacy/conf/nvim/plgs/femaco/lua/femaco.lua | 9 |
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, }) |