From d17d01afef784a5277fa99b26bf7a9ba2ffa6357 Mon Sep 17 00:00:00 2001 From: talha Date: Wed, 3 Jan 2024 19:34:10 +0500 Subject: Updated colorscheme, added ctags --- lua/talha/functions.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lua/talha/functions.lua') diff --git a/lua/talha/functions.lua b/lua/talha/functions.lua index 946bfd8..2a4570e 100644 --- a/lua/talha/functions.lua +++ b/lua/talha/functions.lua @@ -1,5 +1,11 @@ local Path = require"plenary.path" +function FormatFile() + local filename = vim.api.nvim_buf_get_name(0) + vim.cmd(":silent !autopep8 -i " .. filename) + vim.cmd(":silent !isort " .. filename) +end + function CreateDailyNote() local file_path = vim.api.nvim_buf_get_name(0) local dir_path = file_path @@ -60,3 +66,9 @@ function ToggleSpellCheck() vim.opt.spell = not(vim.opt.spell:get()) vim.opt.spelllang = 'en_us' end + +function SetFocusColors(mode) + vim.o.background = "light" + vim.opt.cursorline = false + vim.cmd("colorscheme vscode") +end -- cgit v1.2.3