nvim: add filetype to modeline, remove fileencoding

This commit is contained in:
tastytea 2022-08-19 01:39:37 +02:00
parent b6fbdb9d54
commit 7079e7e6b1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -38,11 +38,11 @@ function M.insert_modeline()
local modeline_elements = { local modeline_elements = {
' vim: set', ' vim: set',
' fenc=' .. fenc,
' ts=' .. vim.o.tabstop, ' ts=' .. vim.o.tabstop,
' sw=' .. vim.o.shiftwidth, ' sw=' .. vim.o.shiftwidth,
(vim.o.expandtab and ' et' or ' noet'), (vim.o.expandtab and ' et' or ' noet'),
' tw=' .. vim.o.textwidth, ' tw=' .. vim.o.textwidth,
' ft=' .. vim.o.filetype,
':', ':',
space_maybe space_maybe
} }