summaryrefslogtreecommitdiff
path: root/after/plugin/colors.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2023-12-14 11:49:47 +0500
committertalha <talha@talhaamir.xyz>2023-12-14 11:49:47 +0500
commitdb929434fa2f29e5674a5f24d71901b4fa458363 (patch)
tree850a02a7c945a1a25040ae289a62385e6d0f47f8 /after/plugin/colors.lua
parent27c1b5b9a5cadf1d1331e4cefeaa9c8a73707b26 (diff)
Fix autoreload, added autocmd:
- Added autoreload to fix reloading when file changed externally - Added autocmd to format python files on save
Diffstat (limited to 'after/plugin/colors.lua')
-rw-r--r--after/plugin/colors.lua16
1 files changed, 1 insertions, 15 deletions
diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua
index 37afa2f..b32344f 100644
--- a/after/plugin/colors.lua
+++ b/after/plugin/colors.lua
@@ -23,18 +23,4 @@ require("gruvbox").setup({
transparent_mode = false,
})
-vim.cmd("colorscheme gruvbox")
-
-function SetFocusColors(mode)
- if mode == 'light' then
- vim.opt.cursorline = false
- vim.opt.colorcolumn = '0'
- vim.cmd("colorscheme paper")
- end
-
- if mode == 'dark' then
- vim.opt.cursorline = true
- vim.opt.colorcolumn = '120'
- vim.cmd("colorscheme atlas")
- end
-end
+vim.cmd("colorscheme nightfly")