aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/editorconfig.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-01-15 02:01:44 -0800
committerGitHub <noreply@github.com>2025-01-15 02:01:44 -0800
commit3ee63edc1b0ca6fe664c9d5368aba05ae9a22e9d (patch)
treea696adf2e1449b17d8ff8a44ecf83a90e78d5cea /runtime/lua/editorconfig.lua
parent0a7e4e9e5f28f3b6b3c83040430d0a36fcd71fad (diff)
parent575f4bc7d5069792188520d1f0e5ed12cc035002 (diff)
downloadrneovim-3ee63edc1b0ca6fe664c9d5368aba05ae9a22e9d.tar.gz
rneovim-3ee63edc1b0ca6fe664c9d5368aba05ae9a22e9d.tar.bz2
rneovim-3ee63edc1b0ca6fe664c9d5368aba05ae9a22e9d.zip
Merge #32001 from MariaSolOs/consistent-namespaces
Diffstat (limited to 'runtime/lua/editorconfig.lua')
-rw-r--r--runtime/lua/editorconfig.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/editorconfig.lua b/runtime/lua/editorconfig.lua
index e65d267a70..2093c4eb5c 100644
--- a/runtime/lua/editorconfig.lua
+++ b/runtime/lua/editorconfig.lua
@@ -151,7 +151,7 @@ function properties.trim_trailing_whitespace(bufnr, val)
)
if val == 'true' then
vim.api.nvim_create_autocmd('BufWritePre', {
- group = 'editorconfig',
+ group = 'nvim.editorconfig',
buffer = bufnr,
callback = function()
local view = vim.fn.winsaveview()
@@ -163,7 +163,7 @@ function properties.trim_trailing_whitespace(bufnr, val)
else
vim.api.nvim_clear_autocmds({
event = 'BufWritePre',
- group = 'editorconfig',
+ group = 'nvim.editorconfig',
buffer = bufnr,
})
end
@@ -180,7 +180,7 @@ function properties.insert_final_newline(bufnr, val)
local endofline = val == 'true'
if vim.bo[bufnr].endofline ~= endofline then
vim.api.nvim_create_autocmd('BufWritePre', {
- group = 'editorconfig',
+ group = 'nvim.editorconfig',
buffer = bufnr,
once = true,
callback = function()