aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2023-12-05 10:01:32 -0800
committerGregory Anders <greg@gpanders.com>2023-12-06 07:57:09 -0800
commit2613ba5000d4c0d9b15e2eec2d2b97615575925e (patch)
tree7fde88589dbf7e5e30130ae65cdb6a9df2e61ccb /runtime/lua/vim/_meta.lua
parent5b40a1c09dda83275784053b325ad16626fc55f2 (diff)
downloadrneovim-2613ba5000d4c0d9b15e2eec2d2b97615575925e.tar.gz
rneovim-2613ba5000d4c0d9b15e2eec2d2b97615575925e.tar.bz2
rneovim-2613ba5000d4c0d9b15e2eec2d2b97615575925e.zip
feat(defaults): enable 'termguicolors' by default when supported by terminal
Enable 'termguicolors' automatically when Nvim can detect that truecolor is supported by the host terminal. If $COLORTERM is set to "truecolor" or "24bit", or the terminal's terminfo entry contains capabilities for Tc, RGB, or setrgbf and setrgbb, then we assume that the terminal supports truecolor. Otherwise, the terminal is queried (using both XTGETTCAP and SGR + DECRQSS). If the terminal's response to these queries (if any) indicates that it supports truecolor, then 'termguicolors' is enabled.
Diffstat (limited to 'runtime/lua/vim/_meta.lua')
-rw-r--r--runtime/lua/vim/_meta.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta.lua b/runtime/lua/vim/_meta.lua
index e3b99f6b3d..bb9ed722e2 100644
--- a/runtime/lua/vim/_meta.lua
+++ b/runtime/lua/vim/_meta.lua
@@ -20,6 +20,7 @@ vim.lsp = require('vim.lsp')
vim.re = require('vim.re')
vim.secure = require('vim.secure')
vim.snippet = require('vim.snippet')
+vim.text = require('vim.text')
vim.treesitter = require('vim.treesitter')
vim.ui = require('vim.ui')
vim.version = require('vim.version')