From 942c2fdb4062237b800217a68df03b10c57b6465 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 18 Aug 2022 05:16:43 +0200 Subject: [PATCH] fix: small tweaks, added gitignore --- .gitignore | 2 ++ init.lua | 4 +++- lua/colors.lua | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e1f6293 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.session.vim +plugin diff --git a/init.lua b/init.lua index 7ca1eef..1b699cc 100644 --- a/init.lua +++ b/init.lua @@ -70,6 +70,8 @@ vim.g.wiki_root = "~/Documents/wiki" -- vim.opt.timeoutlen = 500 -- set shorter timeout for keys -- vim.opt.ttimeoutlen = 10 -- set even shorter timeout for ESC + +--|| NUMBERS -- relativenumbers are very handy for navigation, but absolute are useful in general -- and better looking. Keep numbers relative only on active buffer and if in Normal mode. vim.opt.relativenumber = true @@ -128,7 +130,7 @@ vim.api.nvim_create_user_command( 'UpdateConfig', function(args) local stdout = vim.fn.system(string.format("git -C %s pull", vim.fn.stdpath('config'))) - print(stdout:sub(0, #stdout-1)) + print(stdout:sub(0, #stdout-1)) -- strip tailing newline end, {} ) diff --git a/lua/colors.lua b/lua/colors.lua index 5fbd7bf..f6fdb77 100644 --- a/lua/colors.lua +++ b/lua/colors.lua @@ -152,7 +152,7 @@ function PALETTE:set_treesitter_colors() vim.api.nvim_set_hl(0, "TSLabel", HIGHLIGHT(self.yellow.bright, nil, nil)) vim.api.nvim_set_hl(0, "TSTag", HIGHLIGHT(self.yellow.normal, nil, nil)) vim.api.nvim_set_hl(0, "TSTagDelimiter", HIGHLIGHT(self.yellow.dark, nil, nil)) - vim.api.nvim_set_hl(0, "TSVariableBuiltin", HIGHLIGHT(self.yellow.normal, nil, {bold=true})) + vim.api.nvim_set_hl(0, "TSVariableBuiltin", HIGHLIGHT(self.yellow.bright, nil, {bold=true})) vim.api.nvim_set_hl(0, "TSURI", HIGHLIGHT(self.blue.normal, nil, {underline=true})) -- delimiter vim.api.nvim_set_hl(0, "TSPunctDelimiter", HIGHLIGHT(self.gray.bright, nil, nil))