summaryrefslogtreecommitdiff
path: root/lua/tjk/options.lua
diff options
context:
space:
mode:
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