Skip to content

Commit

Permalink
feat(events): make changes only locally for FileType autocmds
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Jun 7, 2024
1 parent 36bdb0c commit 29a8809
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lua/core/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,10 @@ function autocmd.load_autocmds()
{ "VimResized", "*", [[tabdo wincmd =]] },
},
ft = {
{ "FileType", "alpha", "set showtabline=0" },
{ "FileType", "markdown", "set wrap" },
{ "FileType", "make", "set noexpandtab shiftwidth=8 softtabstop=0" },
{ "FileType", "*", "setlocal formatoptions-=cro" },
{ "FileType", "alpha", "setlocal showtabline=0" },
{ "FileType", "markdown", "setlocal wrap" },
{ "FileType", "dap-repl", "lua require('dap.ext.autocompl').attach()" },
{
"FileType",
"*",
[[setlocal formatoptions-=cro]],
},
{
"FileType",
"c,cpp",
Expand Down

0 comments on commit 29a8809

Please sign in to comment.