fix: small tweaks, added gitignore

This commit is contained in:
əlemi 2022-08-18 05:16:43 +02:00
parent 5748d1bcdb
commit 942c2fdb40
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 6 additions and 2 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.session.vim
plugin

View file

@ -70,6 +70,8 @@ vim.g.wiki_root = "~/Documents/wiki"
-- vim.opt.timeoutlen = 500 -- set shorter timeout for keys -- vim.opt.timeoutlen = 500 -- set shorter timeout for keys
-- vim.opt.ttimeoutlen = 10 -- set even shorter timeout for ESC -- vim.opt.ttimeoutlen = 10 -- set even shorter timeout for ESC
--|| NUMBERS
-- relativenumbers are very handy for navigation, but absolute are useful in general -- 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. -- and better looking. Keep numbers relative only on active buffer and if in Normal mode.
vim.opt.relativenumber = true vim.opt.relativenumber = true
@ -128,7 +130,7 @@ vim.api.nvim_create_user_command(
'UpdateConfig', 'UpdateConfig',
function(args) function(args)
local stdout = vim.fn.system(string.format("git -C %s pull", vim.fn.stdpath('config'))) 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, end,
{} {}
) )

View file

@ -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, "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, "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, "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})) vim.api.nvim_set_hl(0, "TSURI", HIGHLIGHT(self.blue.normal, nil, {underline=true}))
-- delimiter -- delimiter
vim.api.nvim_set_hl(0, "TSPunctDelimiter", HIGHLIGHT(self.gray.bright, nil, nil)) vim.api.nvim_set_hl(0, "TSPunctDelimiter", HIGHLIGHT(self.gray.bright, nil, nil))