This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Get Neovim version | |
local version = vim.version() | |
if version.major == 0 and version.minor < 7 then error('This script needs at least Neovim 0.7.') end | |
-- Create scratch buffer to better track options and paste output lines | |
local buf_id = vim.api.nvim_create_buf(true, true) | |
vim.api.nvim_set_current_buf(buf_id) | |
-- Define "bad" (non-transferable) options | |
--stylua: ignore |