nvim change.

This commit is contained in:
Andrey Parhomenko 2024-01-12 17:05:11 +03:00
parent f2989bc480
commit 895179490e
2 changed files with 88 additions and 88 deletions

View file

@ -10,7 +10,7 @@ createAutoCmd({
"BufNewFile", "BufNewFile",
"BufRead", "BufRead",
},{ },{
pattern = "*.go,*.c,*.cc,*.C,*.cpp,*.rs,*.mk", pattern = "*.go,*.c,*.cc,*.C,*.cpp,*.rs,*.lua",
callback = function() callback = function()
local buf = vim.bo[vim.api.nvim_get_current_buf()] local buf = vim.bo[vim.api.nvim_get_current_buf()]
vim.o.expandtab = false vim.o.expandtab = false
@ -23,7 +23,7 @@ createAutoCmd({
"BufNewFile", "BufNewFile",
"BufRead", "BufRead",
},{ },{
pattern = "*.txt,*.lua,*.js,*.jsx,*.scss,*.css,*.sass,*.html,*.htmlx,*.tmpl,*.tpl,*.yml,*.yaml,*.toml,*.tml", pattern = "*.txt,*.js,*.jsx,*.scss,*.css,*.sass,*.html,*.htmlx,*.tmpl,*.tpl,*.yml,*.yaml,*.toml,*.tml",
callback = function() callback = function()
local buf = vim.bo[vim.api.nvim_get_current_buf()] local buf = vim.bo[vim.api.nvim_get_current_buf()]
buf.expandtab = true buf.expandtab = true