Compare commits
1 Commits
2cb7fd90b3
...
1568c56b0a
Author | SHA1 | Date | |
---|---|---|---|
1568c56b0a |
@ -5,40 +5,29 @@ function build.dir(opts)
|
||||
local num_fargs = table.maxn(opts.fargs)
|
||||
local dir = nil
|
||||
|
||||
for index, arg in ipairs(opts.fargs) do
|
||||
print(index, arg)
|
||||
end
|
||||
|
||||
if num_fargs == 0 then
|
||||
-- Find build directories
|
||||
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
|
||||
-- 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)
|
||||
-- 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,
|
||||
}
|
||||
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
|
||||
|
@ -1,39 +1,26 @@
|
||||
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 },
|
||||
colors = { theme = { dragon = dragon } },
|
||||
keywordStyle = { italic = false},
|
||||
-- TODO: make background darker
|
||||
})
|
||||
kanagawa.load('dragon')
|
||||
|
||||
-- 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
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user