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 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 num_dirs = table.maxn(dirs)
if num_dirs == 0 then
vim.cmd.echoerr('no build directories found')
elseif num_dirs == 1 then
-- One build directory found, use it
dir = dirs[1]
else
-- Multiple build directories found, select one
require("telescope.pickers.multi") {
prompt_title = "Select from the list",
results_title = "Options",
sorting_strategy = "ascending",
layout_strategy = "vertical",
winblend = 10,
border = true,
previewer = false, -- Set to true if you want a preview window
results = dir,
}
-- TODO: Implement Telescope picker
-- Prompt user to choose dir with to inputlist
local choices = {}
for index, choice in ipairs(dirs) do
table.insert(choices, tostring(index) .. ': ' .. choice)
end
local index = vim.fn.inputlist(choices)
dir = dirs[index]
print(' ' .. dir)
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
if not dir then

View File

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