neovim: install poimandres colorscheme
This commit is contained in:
@@ -2,11 +2,16 @@ local telescope = require("telescope")
|
||||
local actions = require("telescope.actions")
|
||||
local layout_actions = require("telescope.actions.layout")
|
||||
|
||||
local winblend = 15
|
||||
if require("daniil.utils").get_colorscheme() == "poimandres" then
|
||||
winblend = 0
|
||||
end
|
||||
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
sorting_strategy = "ascending",
|
||||
file_ignore_patterns = { ".git/", "node_modules/" },
|
||||
winblend = 15,
|
||||
winblend = winblend,
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-j>"] = actions.move_selection_worse,
|
||||
|
||||
@@ -2,7 +2,9 @@ vim.api.nvim_set_hl(0, "SpellBad", {
|
||||
fg = "red",
|
||||
})
|
||||
|
||||
local colorscheme = require("daniil.utils").get_colorscheme()
|
||||
vim.cmd("colorscheme " .. colorscheme)
|
||||
|
||||
vim.cmd([[
|
||||
colorscheme gruvbox-material
|
||||
hi clear SignColumn
|
||||
]])
|
||||
|
||||
@@ -23,6 +23,7 @@ require("packer").startup(function(use)
|
||||
use({
|
||||
{ "sainnhe/gruvbox-material" },
|
||||
{ "kaicataldo/material.vim" },
|
||||
{ "olivercederborg/poimandres.nvim" },
|
||||
})
|
||||
|
||||
-- Make commenting code great
|
||||
|
||||
@@ -125,4 +125,20 @@ function M.toggle_locationlist()
|
||||
end
|
||||
end
|
||||
|
||||
function M.is_inside_tmux()
|
||||
local TMUX = os.getenv("TMUX")
|
||||
|
||||
return TMUX ~= nil
|
||||
end
|
||||
|
||||
function M.get_colorscheme()
|
||||
local IS_TMUX = M.is_inside_tmux()
|
||||
|
||||
if IS_TMUX then
|
||||
return "gruvbox-material"
|
||||
else
|
||||
return "poimandres"
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user