53 lines
1.2 KiB
Lua
53 lines
1.2 KiB
Lua
-- Colour Scheme configuration
|
|
local conf_theme = function()
|
|
local dn = require('dark_notify')
|
|
local gps = require('nvim-gps')
|
|
require('rose-pine').setup({
|
|
dark_variant = 'moon',
|
|
})
|
|
dn.run({
|
|
schemes = {
|
|
dark = 'rose-pine',
|
|
light = 'rose-pine',
|
|
},
|
|
onchange = function(mode)
|
|
--Set statusbar
|
|
require('plenary.reload').reload_module('lualine', true)
|
|
require('lualine').setup {
|
|
options = {
|
|
icons_enabled = 0,
|
|
theme = 'rose-pine'
|
|
},
|
|
sections = {
|
|
lualine_c = {
|
|
'filename',
|
|
{ gps.get_location, cond = gps.is_available },
|
|
},
|
|
}
|
|
}
|
|
end,
|
|
})
|
|
end
|
|
|
|
local conf_indent = function()
|
|
vim.g.indent_blankline_char = "┊" -- │ is another good option
|
|
vim.g.indent_blankline_filetype_exclude = { 'help', 'packer' }
|
|
vim.g.indent_blankline_buftype_exclude = { 'terminal', 'nofile'}
|
|
vim.g.indent_blankline_char_highlight = 'LineNr'
|
|
end
|
|
|
|
local conf_treesitter = function()
|
|
require'nvim-treesitter.configs'.setup {
|
|
ensure_installed = 'all',
|
|
highlight = {
|
|
enable = true, -- false will disable the whole extension
|
|
},
|
|
}
|
|
end
|
|
|
|
return {
|
|
conf_theme = conf_theme,
|
|
conf_indent = conf_indent,
|
|
conf_treesitter = conf_treesitter,
|
|
}
|