Compare commits

..

2 Commits

Author SHA1 Message Date
2cb7fd90b3 temp! 2024-03-09 11:32:35 +00:00
51ae7955f7 Tweak kanagawa theme 2024-03-08 20:12:40 +00:00
2 changed files with 50 additions and 26 deletions

View File

@ -5,29 +5,40 @@ function build.dir(opts)
local num_fargs = table.maxn(opts.fargs) local num_fargs = table.maxn(opts.fargs)
local dir = nil local dir = nil
if num_fargs == 0 then -- Find build directories for index, arg in ipairs(opts.fargs) do
print(index, arg)
end
if num_fargs == 0 then
-- Find build directories
local dirs = build.list_dirs() local dirs = build.list_dirs()
local num_dirs = table.maxn(dirs) local num_dirs = table.maxn(dirs)
if num_dirs == 0 then if num_dirs == 0 then
vim.cmd.echoerr('no build directories found') vim.cmd.echoerr('no build directories found')
elseif num_dirs == 1 then elseif num_dirs == 1 then
-- One build directory found, use it -- One build directory found, use it
dir = dirs[1] dir = dirs[1]
else else
-- Multiple build directories found, select one -- TODO: Implement Telescope picker
require("telescope.pickers.multi") { -- Prompt user to choose dir with to inputlist
prompt_title = "Select from the list", local choices = {}
results_title = "Options", for index, choice in ipairs(dirs) do
sorting_strategy = "ascending", table.insert(choices, tostring(index) .. ': ' .. choice)
layout_strategy = "vertical", end
winblend = 10, local index = vim.fn.inputlist(choices)
border = true, dir = dirs[index]
previewer = false, -- Set to true if you want a preview window print(' ' .. dir)
results = dir,
}
end end
elseif num_fargs == 1 then
-- Single argument, invoked as :BuildDir <dir>
dir = opts.fargs[1]
else
error('build#dir called with too many arguments')
end end
if not dir then if not dir then

View File

@ -1,26 +1,39 @@
return { return {
-- 'rose-pine/neovim', name = 'rose-pine', -- 'rose-pine/neovim',
-- config = function() -- name = 'rose-pine',
-- require('rose-pine').setup({ -- config = function()
-- styles = { -- require('rose-pine').setup({
-- transparency = true, -- styles = {
-- }, -- transparency = true,
-- -- TODO: Ideally only certain groups would have italics disabled -- },
-- disable_italics = true, -- -- TODO: Ideally only certain groups would have italics disabled
-- }) -- disable_italics = true,
-- vim.cmd('colorscheme rose-pine') -- })
-- end -- vim.cmd('colorscheme rose-pine')
-- end
'rebelot/kanagawa.nvim', 'rebelot/kanagawa.nvim',
config = function() config = function()
local kanagawa = require('kanagawa') local kanagawa = require('kanagawa')
local dragon = {
ui = {
bg = '#080808',
bg_m3 = '#262626',
bg_gutter = '#121212',
},
}
kanagawa.setup({ kanagawa.setup({
commentStyle = { italic = false }, commentStyle = { italic = false },
keywordStyle = { italic = false}, keywordStyle = { italic = false },
-- TODO: make background darker colors = { theme = { dragon = dragon } },
}) })
kanagawa.load('dragon') kanagawa.load('dragon')
end
-- Override highlight groups
vim.cmd('highlight WinSeparator guifg=' .. dragon.ui.bg_m3 .. ' guibg=' .. dragon.ui.bg_m3)
vim.cmd('highlight MsgSeparator guifg=' .. dragon.ui.bg_m3 .. ' guibg=' .. dragon.ui.bg_m3)
end
} }