add border for split windows and error window

This commit is contained in:
Adrian Bakke 2024-08-27 09:36:24 +02:00
parent bbb4bddc33
commit 9009ead752
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps -- Diagnostic keymaps
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which -- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
@ -843,7 +844,9 @@ require('lazy').setup({
-- Like many other themes, this one has different styles, and you could load -- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'tokyonight-night' vim.cmd.colorscheme 'tokyonight-night'
vim.g.tokyonight_colors = { border = 'orange' }
-- vim.cmd.colorscheme 'default' -- vim.cmd.colorscheme 'default'
vim.api.nvim_set_hl(0, 'WinSeparator', { fg = vim.g.tokyonight_colors.border })
-- You can configure highlights by doing something like: -- You can configure highlights by doing something like:
--vim.cmd.hi 'Comment gui=none' --vim.cmd.hi 'Comment gui=none'