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