neovim: Fix setup_filetype

The function arguments are not what they actually should be.
nazuna
Simon Bruder 2023-03-09 19:57:45 +01:00
parent e81cbc6539
commit b65129018a
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ end
local function associate_filetype(glob, ft)
cmd('autocmd BufRead,BufNewFile ' .. glob .. ' set filetype=' .. ft)
end
local function setup_filetype(ft, tab, expandtab, opts)
local function setup_filetype(ft, tab, opts)
local cmdline = 'autocmd Filetype ' .. ft .. ' setlocal'
if tab then cmdline = cmdline .. ' ts=' .. tab .. ' sw=' .. tab .. ' sts=' .. tab end
if opts then cmdline = cmdline .. ' ' .. opts end -- FIXME: opts should be a table