summaryrefslogtreecommitdiff
path: root/lua/tjk/options.lua
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-02-13 21:44:51 -0600
committerTim Keller <tjkeller.xyz>2025-02-13 21:44:51 -0600
commit7d7f28d9b078a25c60d49c0a3904f7bd8c7940ca (patch)
tree0642c61c35eb697e0f3cd051ba600cae68911cf5 /lua/tjk/options.lua
parentab88b671b6fb7943371dba5ea43ed9d227310459 (diff)
downloadnvim-7d7f28d9b078a25c60d49c0a3904f7bd8c7940ca.tar.xz
nvim-7d7f28d9b078a25c60d49c0a3904f7bd8c7940ca.zip
fix tty colorscheme issues and use default file selector
Diffstat (limited to 'lua/tjk/options.lua')
-rw-r--r--lua/tjk/options.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/tjk/options.lua b/lua/tjk/options.lua
index ee54753..945536a 100644
--- a/lua/tjk/options.lua
+++ b/lua/tjk/options.lua
@@ -28,7 +28,7 @@ opt.smartcase = true -- ...unless the search term is capital
-- experimental
opt.smartindent = true
-opt.wildmode = "longest:list:full" -- Better auto-complete
+--opt.wildmode = "longest:list:full" -- Better auto-complete
-- dont continue comments on to new lines (:help fo-table)
api.nvim_create_autocmd("FileType", { pattern = "*", callback = function()
@@ -37,3 +37,10 @@ end})
-- ignore __pycache__ directories in file listings
opt.wildignore = "__pycache__/,*/__pycache__/"
+
+-- for running in tty
+if os.getenv "TERM" == "linux" then
+ vim.cmd.colorscheme "vim"
+ opt.termguicolors = false
+ opt.list = false
+end