Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

modeline by nvim 0.5 is as secure #139

Merged
merged 1 commit into from
Sep 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion doom_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,16 @@ M.config = {
-- Set custom Neovim global variables
-- @default = {}
-- example:
-- { ['sonokai_style'] = 'andromeda' }
-- {
-- ['sonokai_style'] = 'andromeda',
-- ['modelineexpr'] = true,
-- }
--
-- modeline feature was turned off to reduce security exploit surfaces.
-- Since modeline now uses whitelist approach since nvim 0.4 /vim 8.1,
-- enabling this is as safe as external packages such as securemodelines.
-- See https://github.com/neovim/neovim/issues/2865
--
global_variables = {},

-- Set custom autocommands
Expand Down