Tweaks
This commit is contained in:
1 parent
b7e56fce07
commit
abd97ad243
3 files changed
+45
-17
No files matched your search
@@ -77,6 +77,9 @@ vim.opt.shortmess:append({ W = true, I = true, c = true })
|
||||
-- Fix markdown indentation settings
|
||||
vim.g.markdown_recommended_style = 0
|
||||
|
||||
-- hides `~` at the end of the buffer
|
||||
vim.cmd([[set fillchars+=eob:\ ]])
|
||||
|
||||
for k, v in pairs(options) do
|
||||
vim.opt[k] = v
|
||||
end
|
||||
|
||||
@@ -48,4 +48,43 @@ util.is_present = function(bin)
|
||||
return vim.fn.executable(bin) == 1
|
||||
end
|
||||
|
||||
util.set_transparent_bg = function()
|
||||
-- transparent background
|
||||
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Pmenu', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Terminal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'EndOfBuffer', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FoldColumn', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Folded', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'SignColumn', { bg = 'none' })
|
||||
|
||||
-- transparent background for neotree
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeNormal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeNormalNC', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeVertSplit', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeWinSeparator', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NeoTreeEndOfBuffer', { bg = 'none' })
|
||||
|
||||
-- transparent background for nvim-tree
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeNormal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeVertSplit', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NvimTreeEndOfBuffer', { bg = 'none' })
|
||||
end
|
||||
|
||||
util.set_custom_highlights = function()
|
||||
-- set hlsearch color
|
||||
vim.api.nvim_set_hl(0, 'Search', { bg = '#8BCD5B', fg = '#202020' })
|
||||
vim.api.nvim_set_hl(0, 'CurSearch', { bg = '#EFBD5D', fg = '#000000' })
|
||||
vim.api.nvim_set_hl(0, 'IncSearch', { bg = '#F15664', fg = '#000000' })
|
||||
|
||||
-- set cursorline color
|
||||
vim.api.nvim_set_hl(0, 'CursorLine', { bg = '#1A1A1F' })
|
||||
vim.api.nvim_set_hl(0, 'CursorColumn', { bg = '#1A1A1F' })
|
||||
|
||||
-- set visual highlight
|
||||
vim.api.nvim_set_hl(0, 'Visual', { bg = '#103070' })
|
||||
end
|
||||
|
||||
return util
|
||||
@@ -1,4 +1,5 @@
|
||||
local onedark = require('onedark')
|
||||
local util = require('lib.util')
|
||||
|
||||
onedark.setup({
|
||||
style = 'darker',
|
||||
@@ -24,20 +25,5 @@ onedark.setup({
|
||||
})
|
||||
onedark.load()
|
||||
|
||||
-- transparent background
|
||||
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'Pmenu', { bg = 'none' })
|
||||
|
||||
-- set hlsearch color
|
||||
vim.api.nvim_set_hl(0, 'Search', { bg = '#8BCD5B', fg = '#202020' })
|
||||
vim.api.nvim_set_hl(0, 'CurSearch', { bg = '#EFBD5D', fg = '#000000' })
|
||||
vim.api.nvim_set_hl(0, 'IncSearch', { bg = '#F15664', fg = '#000000' })
|
||||
|
||||
-- set cursorline color
|
||||
vim.api.nvim_set_hl(0, 'CursorLine', { bg = '#1A1A1F' })
|
||||
vim.api.nvim_set_hl(0, 'CursorColumn', { bg = '#1A1A1F' })
|
||||
|
||||
-- set visual highlight
|
||||
vim.api.nvim_set_hl(0, 'Visual', { bg = '#103070' })
|
||||
util.set_transparent_bg()
|
||||
util.set_custom_highlights()
|
||||
Reference in new issue
Block a user