what do these even do?
This commit is contained in:
parent
8454402a11
commit
365868d772
@ -21,7 +21,7 @@ cmd open ${{
|
|||||||
case $(file --mime-type "$(readlink -f $f)" -b) in
|
case $(file --mime-type "$(readlink -f $f)" -b) in
|
||||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
|
||||||
image/vnd.djvu|application/pdf|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
image/vnd.djvu|application/pdf|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
||||||
text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
|
text/*|application/json|inode/x-empty|application/x-subrip|application/javascript) $EDITOR $fx;;
|
||||||
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
||||||
image/svg+xml) display -- $f ;;
|
image/svg+xml) display -- $f ;;
|
||||||
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
|
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
|
||||||
|
|||||||
@ -35,6 +35,7 @@ vim.keymap.set("i", "<C-s>", "<ESC>:w<CR>", opts)
|
|||||||
-- Switch between buffers
|
-- Switch between buffers
|
||||||
vim.keymap.set("n", "<S-l>", ":bnext<CR>", opts)
|
vim.keymap.set("n", "<S-l>", ":bnext<CR>", opts)
|
||||||
vim.keymap.set("n", "<S-h>", ":bprevious<CR>", opts)
|
vim.keymap.set("n", "<S-h>", ":bprevious<CR>", opts)
|
||||||
|
vim.keymap.set("n", "<leader>bd", ":bd<CR>", opts)
|
||||||
|
|
||||||
-- center after up and down movements
|
-- center after up and down movements
|
||||||
vim.keymap.set("n", "<C-u>", "<C-u>zz", opts)
|
vim.keymap.set("n", "<C-u>", "<C-u>zz", opts)
|
||||||
|
|||||||
@ -47,8 +47,6 @@ local options = {
|
|||||||
|
|
||||||
vim.opt.fillchars = vim.opt.fillchars + "eob: "
|
vim.opt.fillchars = vim.opt.fillchars + "eob: "
|
||||||
|
|
||||||
vim.opt.shortmess:append("c")
|
|
||||||
|
|
||||||
for k, v in pairs(options) do
|
for k, v in pairs(options) do
|
||||||
vim.opt[k] = v
|
vim.opt[k] = v
|
||||||
end
|
end
|
||||||
|
|||||||
@ -37,13 +37,6 @@ return {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
anthropic = function()
|
|
||||||
return require("codecompanion.adapters").extend("anthropic", {
|
|
||||||
env = {
|
|
||||||
api_key = "cmd:cat $HOME/.config/anthropic/KEY",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -179,6 +179,7 @@ return {
|
|||||||
-- formatting
|
-- formatting
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
enabled = true,
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
@ -227,7 +228,7 @@ return {
|
|||||||
-- language specific tooling
|
-- language specific tooling
|
||||||
{
|
{
|
||||||
"simrat39/rust-tools.nvim",
|
"simrat39/rust-tools.nvim",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
opts = {
|
opts = {
|
||||||
server = {
|
server = {
|
||||||
on_attach = function(_, bufnr)
|
on_attach = function(_, bufnr)
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
-- 'stevearc/oil.nvim',
|
'stevearc/oil.nvim',
|
||||||
-- enabled = true,
|
enabled = false,
|
||||||
-- lazy = false,
|
|
||||||
-- opts = {
|
lazy = false,
|
||||||
-- default_file_explorer = true,
|
opts = {
|
||||||
-- },
|
default_file_explorer = true,
|
||||||
-- dependencies = { { "echasnovski/mini.icons", opts = {} } },
|
},
|
||||||
|
dependencies = { { "echasnovski/mini.icons", opts = {} } },
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,21 @@
|
|||||||
return {
|
return {
|
||||||
-- {
|
{
|
||||||
-- "L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
-- enabled = true,
|
enabled = false,
|
||||||
-- dependencies = {
|
dependencies = {
|
||||||
-- "rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
-- config = function()
|
config = function()
|
||||||
-- require("luasnip.loaders.from_vscode").lazy_load()
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
-- opts = {
|
opts = {
|
||||||
-- history = true,
|
history = true,
|
||||||
-- delete_check_events = "TextChanged",
|
delete_check_events = "TextChanged",
|
||||||
-- },
|
},
|
||||||
-- -- stylua: ignore
|
-- stylua: ignore
|
||||||
-- keys = {
|
keys = {
|
||||||
-- { "<tab>", function() require("luasnip").jump(1) end, mode = "s", },
|
{ "<tab>", function() require("luasnip").jump(1) end, mode = "s", },
|
||||||
-- { "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" }, },
|
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" }, },
|
||||||
-- },
|
},
|
||||||
-- },
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"RRethy/vim-illuminate",
|
"RRethy/vim-illuminate",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
event = "BufReadPost",
|
event = "BufReadPost",
|
||||||
config = function()
|
config = function()
|
||||||
require("illuminate").configure({ delay = 200 })
|
require("illuminate").configure({ delay = 200 })
|
||||||
@ -54,7 +54,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.bufremove",
|
"echasnovski/mini.bufremove",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
@ -102,15 +102,15 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-web-devicons",
|
"kyazdani42/nvim-web-devicons",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -127,7 +127,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"preservim/vim-markdown",
|
"preservim/vim-markdown",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nacro90/numb.nvim",
|
"nacro90/numb.nvim",
|
||||||
@ -142,11 +142,11 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"junegunn/vim-slash",
|
"junegunn/vim-slash",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.surround",
|
"echasnovski/mini.surround",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
keys = { "gz" },
|
keys = { "gz" },
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = {
|
||||||
@ -166,7 +166,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"danymat/neogen",
|
"danymat/neogen",
|
||||||
enabled = true,
|
enabled = false,
|
||||||
event = "BufEnter",
|
event = "BufEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("neogen").setup({
|
require("neogen").setup({
|
||||||
|
|||||||
@ -1,33 +1,33 @@
|
|||||||
return {
|
return {
|
||||||
-- {
|
{
|
||||||
-- "mickael-menu/zk-nvim",
|
"mickael-menu/zk-nvim",
|
||||||
-- enabled = true,
|
enabled = false,
|
||||||
-- event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
-- opts = {
|
opts = {
|
||||||
-- picker = "telescope",
|
picker = "telescope",
|
||||||
-- },
|
},
|
||||||
-- config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- require("zk").setup(opts)
|
require("zk").setup(opts)
|
||||||
--
|
|
||||||
-- local function yankName(options, picker_options)
|
local function yankName(options, picker_options)
|
||||||
-- require("zk").pick_notes(options, picker_options, function(notes)
|
require("zk").pick_notes(options, picker_options, function(notes)
|
||||||
-- local pos = vim.api.nvim_win_get_cursor(0)[2]
|
local pos = vim.api.nvim_win_get_cursor(0)[2]
|
||||||
-- local line = vim.api.nvim_get_current_line()
|
local line = vim.api.nvim_get_current_line()
|
||||||
--
|
|
||||||
-- if picker_options.multi_select == false then
|
if picker_options.multi_select == false then
|
||||||
-- notes = { notes }
|
notes = { notes }
|
||||||
-- end
|
end
|
||||||
-- for _, note in ipairs(notes) do
|
for _, note in ipairs(notes) do
|
||||||
-- -- stylua: ignore
|
-- stylua: ignore
|
||||||
-- local nline = line:sub(0, pos) .. note.title .. " - " .. note.path .. line:sub(pos + 1)
|
local nline = line:sub(0, pos) .. note.title .. " - " .. note.path .. line:sub(pos + 1)
|
||||||
-- vim.api.nvim_set_current_line(nline)
|
vim.api.nvim_set_current_line(nline)
|
||||||
-- end
|
end
|
||||||
-- end)
|
end)
|
||||||
-- end
|
end
|
||||||
--
|
|
||||||
-- require("zk.commands").add("ZkInsertLink", function(options)
|
require("zk.commands").add("ZkInsertLink", function(options)
|
||||||
-- yankName(options, { title = "Zk Yank" })
|
yankName(options, { title = "Zk Yank" })
|
||||||
-- end)
|
end)
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -158,10 +158,10 @@ end
|
|||||||
function M.exists(path)
|
function M.exists(path)
|
||||||
local exists = vim.fn.filereadable(vim.fn.expand(path))
|
local exists = vim.fn.filereadable(vim.fn.expand(path))
|
||||||
if exists == 1 then
|
if exists == 1 then
|
||||||
vim.notify(path .. " exists", vim.log.levels.INFO)
|
-- vim.notify(path .. " exists", vim.log.levels.INFO)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
vim.notify(path .. " doesn't exist", vim.log.levels.INFO)
|
-- vim.notify(path .. " doesn't exist", vim.log.levels.INFO)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user