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 = {
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user