rem: removed old and unneedet config
This commit is contained in:
parent
91efc5bfcd
commit
8c9e742235
4 changed files with 0 additions and 158 deletions
35
init.lua
35
init.lua
|
@ -7,38 +7,3 @@ require("pika.lazy")
|
|||
-- ╰──────────────────────────────────────────────────────╯
|
||||
|
||||
vim.cmd.colorscheme("oldschool")
|
||||
|
||||
-- Keybind for saving clipboard screenshot and inserting a Markdown link
|
||||
vim.api.nvim_set_keymap("n", "<leader>ps", ":lua SaveScreenshotAndInsertLink()<CR>", { noremap = true, silent = true })
|
||||
|
||||
function SaveScreenshotAndInsertLink()
|
||||
-- Prompt for Hugo base directory if needed
|
||||
|
||||
-- Define the Hugo base directory and screenshot subfolder path
|
||||
local base_dir
|
||||
local current_file_dir = vim.fn.expand("%:p:h")
|
||||
|
||||
-- Detect base dir by looking for the Hugo structure, or prompt if not found
|
||||
if current_file_dir:match("/content/") then
|
||||
base_dir = current_file_dir:match("(.*)/content/")
|
||||
else
|
||||
-- Prompt for Hugo base directory if automatic detection fails
|
||||
base_dir = vim.fn.input("Enter base directory of your Hugo site: ", "", "file")
|
||||
end
|
||||
|
||||
local img_folder = base_dir .. "/static/images/screenshots/"
|
||||
vim.fn.mkdir(img_folder, "p") -- Ensure the directory exists
|
||||
|
||||
-- Define the image name and full path
|
||||
local img_name = os.date("%Y-%m-%d_%H-%M-%S") .. ".png"
|
||||
local full_path = img_folder .. img_name
|
||||
|
||||
-- Save clipboard image as binary PNG file using wl-paste
|
||||
os.execute("wl-paste --type image/png > " .. full_path)
|
||||
|
||||
-- Insert markdown image link at cursor position
|
||||
local img_markdown = "\n"
|
||||
vim.api.nvim_put({ img_markdown }, "c", true, true)
|
||||
|
||||
print("Screenshot saved and link added: " .. full_path)
|
||||
end
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
return {
|
||||
"yetone/avante.nvim",
|
||||
event = "VeryLazy",
|
||||
version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
|
||||
opts = {
|
||||
-- add any opts here
|
||||
-- for example
|
||||
provider = "openai",
|
||||
openai = {
|
||||
endpoint = "https://api.openai.com/v1",
|
||||
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
|
||||
timeout = 30000, -- timeout in milliseconds
|
||||
temperature = 0, -- adjust if needed
|
||||
max_tokens = 4096,
|
||||
-- reasoning_effort = "high" -- only supported for reasoning models (o1, etc.)
|
||||
},
|
||||
},
|
||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||
build = "make",
|
||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
--- The below dependencies are optional,
|
||||
"echasnovski/mini.pick", -- for file_selector provider mini.pick
|
||||
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
|
||||
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
||||
"ibhagwan/fzf-lua", -- for file_selector provider fzf
|
||||
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
||||
{
|
||||
-- support for image pasting
|
||||
"HakonHarnes/img-clip.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- recommended settings
|
||||
default = {
|
||||
embed_image_as_base64 = false,
|
||||
prompt_for_file_name = false,
|
||||
drag_and_drop = {
|
||||
insert_mode = true,
|
||||
},
|
||||
-- required for Windows users
|
||||
use_absolute_path = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
-- Make sure to set this up properly if you have lazy=true
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
opts = {
|
||||
file_types = { "markdown", "Avante" },
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
return {
|
||||
"VonHeikemen/fine-cmdline.nvim",
|
||||
dependencies = {
|
||||
{ "MunifTanjim/nui.nvim" },
|
||||
},
|
||||
config = function()
|
||||
require("fine-cmdline").setup({
|
||||
cmdline = {
|
||||
enable_keymaps = true,
|
||||
smart_history = true,
|
||||
prompt = " ",
|
||||
},
|
||||
popup = {
|
||||
position = {
|
||||
row = "10%",
|
||||
col = "50%",
|
||||
},
|
||||
size = {
|
||||
width = "60%",
|
||||
},
|
||||
border = {
|
||||
style = "rounded",
|
||||
},
|
||||
win_options = {
|
||||
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
|
||||
},
|
||||
},
|
||||
hooks = {
|
||||
before_mount = function(input)
|
||||
-- code
|
||||
end,
|
||||
after_mount = function(input)
|
||||
-- code
|
||||
end,
|
||||
set_keymaps = function(imap, feedkeys)
|
||||
-- code
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
|
@ -10,20 +10,7 @@ return {
|
|||
{ "eldritch-theme/eldritch.nvim" },
|
||||
-- { "sainnhe/sonokai" },
|
||||
{ "samharju/synthweave.nvim" },
|
||||
{ "sainnhe/gruvbox-material" },
|
||||
{ "pauchiner/pastelnight.nvim" },
|
||||
{ "ptdewey/darkearth-nvim" },
|
||||
{ "marko-cerovac/material.nvim" },
|
||||
-- {
|
||||
-- "ferdinandrau/lavish.nvim",
|
||||
-- opts = {
|
||||
-- style = {
|
||||
-- italic_comments = false,
|
||||
-- italic_strings = false,
|
||||
-- transparent = false,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
{
|
||||
"neko-night/nvim",
|
||||
lazy = false,
|
||||
|
@ -44,16 +31,6 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"scottmckendry/cyberdream.nvim",
|
||||
name = "cyberdream",
|
||||
lazy = false,
|
||||
opts = {
|
||||
transparent = true,
|
||||
hide_fillchars = true,
|
||||
terminal_colors = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"ribru17/bamboo.nvim",
|
||||
opts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue