nvim: add filetype to modeline, remove fileencoding
This commit is contained in:
parent
b6fbdb9d54
commit
7079e7e6b1
|
@ -38,11 +38,11 @@ function M.insert_modeline()
|
|||
|
||||
local modeline_elements = {
|
||||
' vim: set',
|
||||
' fenc=' .. fenc,
|
||||
' ts=' .. vim.o.tabstop,
|
||||
' sw=' .. vim.o.shiftwidth,
|
||||
(vim.o.expandtab and ' et' or ' noet'),
|
||||
' tw=' .. vim.o.textwidth,
|
||||
' ft=' .. vim.o.filetype,
|
||||
':',
|
||||
space_maybe
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user