From 7079e7e6b15f5b4033252014c8782400d6e3934e Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 19 Aug 2022 01:39:37 +0200 Subject: [PATCH] nvim: add filetype to modeline, remove fileencoding --- .config/nvim/lua/my/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/my/functions.lua b/.config/nvim/lua/my/functions.lua index 6c70b8c..461bb1a 100644 --- a/.config/nvim/lua/my/functions.lua +++ b/.config/nvim/lua/my/functions.lua @@ -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 }