mirror of
https://github.com/softinio/nvim-config.git
synced 2025-08-31 15:06:41 -07:00
Compare commits
No commits in common. "main" and "push-qllxswrupups" have entirely different histories.
main
...
push-qllxs
13 changed files with 121 additions and 88 deletions
3
init.lua
3
init.lua
|
@ -31,9 +31,6 @@ else
|
|||
-- [[ Setting options ]]
|
||||
-- See `:help vim.o`
|
||||
|
||||
-- conceal level (needed for obsidian)
|
||||
vim.o.conceallevel = 1
|
||||
|
||||
-- Set highlight on search
|
||||
vim.o.hlsearch = true
|
||||
vim.o.incsearch = true
|
||||
|
|
|
@ -4,35 +4,20 @@ return {
|
|||
lazy = false,
|
||||
version = false,
|
||||
opts = {
|
||||
provider = "claude",
|
||||
providers = {
|
||||
claude = {
|
||||
model = "claude-sonnet-4-20250514",
|
||||
api_key_name = "cmd:cat " .. vim.fn.expand("~/.anthropic"),
|
||||
},
|
||||
openai = {
|
||||
model = "o4-mini",
|
||||
api_key_name = "cmd:cat " .. vim.fn.expand("~/.openai"),
|
||||
extra_request_body = {
|
||||
reasoning_effort = "high",
|
||||
},
|
||||
},
|
||||
ollama = {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "",
|
||||
endpoint = "http://127.0.0.1:11434",
|
||||
model = "qwen2.5-coder",
|
||||
},
|
||||
provider = "openai",
|
||||
openai = {
|
||||
api_key_name = "cmd:cat " .. vim.fn.expand("~/.openai"),
|
||||
},
|
||||
},
|
||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
||||
build = "make",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"HakonHarnes/img-clip.nvim",
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"folke/snacks.nvim",
|
||||
"stevearc/dressing.nvim",
|
||||
},
|
||||
}
|
||||
|
|
|
@ -11,15 +11,11 @@ return {
|
|||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
require("tokyonight").setup({
|
||||
style = "night",
|
||||
on_colors = function(colors)
|
||||
colors.bg = "#000000" -- "#1a1b26"
|
||||
end,
|
||||
})
|
||||
vim.g.tokyonight_style = "night"
|
||||
vim.g.tokyonight_italic_functions = true
|
||||
vim.o.termguicolors = true
|
||||
-- load the colorscheme here
|
||||
vim.cmd([[colorscheme tokyonight-night]])
|
||||
vim.cmd([[colorscheme tokyonight]])
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
|
|
@ -98,7 +98,6 @@ return {
|
|||
marksman = {},
|
||||
nil_ls = {},
|
||||
nixd = {},
|
||||
pyrefly = {},
|
||||
rust_analyzer = {
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
|
|
32
lua/plugins/neo-tree-jj.lua
Normal file
32
lua/plugins/neo-tree-jj.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
return {
|
||||
"Cretezy/neo-tree-jj.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
opts = function(_, opts)
|
||||
-- Register the source
|
||||
table.insert(opts.sources, "jj")
|
||||
|
||||
-- Optional: Replace git tab in neo-tree when in jj repo
|
||||
if require("neo-tree.sources.jj.utils").get_repository_root() then
|
||||
-- Remove git tab
|
||||
for i, source in ipairs(opts.source_selector.sources) do
|
||||
if source.source == "git_status" then
|
||||
table.remove(opts.source_selector.sources, i)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
-- Add jj tab
|
||||
table.insert(opts.source_selector.sources, {
|
||||
display_name = " JJ",
|
||||
source = "jj",
|
||||
})
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>mj", "<cmd>Neotree jj<cr>", desc = "NeoTree JJ" },
|
||||
},
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
return {
|
||||
"GeorgesAlkhouri/nvim-aider",
|
||||
cmd = {
|
||||
"AiderTerminalToggle",
|
||||
"AiderHealth",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>a/", "<cmd>AiderTerminalToggle<cr>", desc = "Open Aider" },
|
||||
{ "<leader>as", "<cmd>AiderTerminalSend<cr>", desc = "Send to Aider", mode = { "n", "v" } },
|
||||
{ "<leader>ac", "<cmd>AiderQuickSendCommand<cr>", desc = "Send Command To Aider" },
|
||||
{ "<leader>ab", "<cmd>AiderQuickSendBuffer<cr>", desc = "Send Buffer To Aider" },
|
||||
{ "<leader>a+", "<cmd>AiderQuickAddFile<cr>", desc = "Add File to Aider" },
|
||||
{ "<leader>a-", "<cmd>AiderQuickDropFile<cr>", desc = "Drop File from Aider" },
|
||||
{ "<leader>ar", "<cmd>AiderQuickReadOnlyFile<cr>", desc = "Add File as Read-Only" },
|
||||
},
|
||||
config = true,
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>fo", "<cmd>ObsidianQuickSwitch<cr>", desc = "Obsidian Quick Switch (Telescope)" },
|
||||
{ "<leader>fn", "<cmd>ObsidianNew<cr>", desc = "Create a new obsidian note" },
|
||||
{ "<leader>fs", "<cmd>ObsidianSearch<cr>", desc = "Obsidian Search" },
|
||||
{ "<leader>fd", "<cmd>ObsidianToday<cr>", desc = "Obsidian new daily note" },
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "/Users/salar/Library/Mobile Documents/iCloud~md~obsidian/Documents/Softinio",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
11
lua/plugins/render-markdown.lua
Normal file
11
lua/plugins/render-markdown.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
|
||||
---@module 'render-markdown'
|
||||
---@type render.md.UserConfig
|
||||
opts = {
|
||||
file_types = { "markdown", "Avante" },
|
||||
render_modes = true,
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
}
|
26
lua/plugins/smart-splits.lua
Normal file
26
lua/plugins/smart-splits.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
"mrjones2014/smart-splits.nvim",
|
||||
lazy = false,
|
||||
keys = {
|
||||
-- resizing splits
|
||||
{ "<A-a>", ":lua require('smart-splits').resize_left()<CR>", desc = "smart split: resize left" },
|
||||
{ "<A-o>", ":lua require('smart-splits').resize_down()<CR>", desc = "smart split: resize down" },
|
||||
{ "<A-e>", ":lua require('smart-splits').resize_up()<CR>", desc = "smart split: resize up" },
|
||||
{ "<A-u>", ":lua require('smart-splits').resize_right()<CR>", desc = "smart split: resize right" },
|
||||
-- moving between splits
|
||||
{ "<C-a>", ":lua require('smart-splits').move_cursor_left()<CR>", desc = "smart split: move cursor left" },
|
||||
{ "<C-o>", ":lua require('smart-splits').move_cursor_down()<CR>", desc = "smart split: move cursor up" },
|
||||
{ "<C-e>", ":lua require('smart-splits').move_cursor_up()<CR>", desc = "smart split: move cursor up" },
|
||||
{ "<C-u>", ":lua require('smart-splits').move_cursor_right()<CR>", desc = "smart split: move cursor right" },
|
||||
{
|
||||
"<C-\\>",
|
||||
":lua require('smart-splits').move_cursor_previous()<CR>",
|
||||
desc = "smart split: move cursor to previous",
|
||||
},
|
||||
-- swapping buffers between windows
|
||||
{ "<leader><leader>a", ":lua require('smart-splits').swap_buf_left()<CR>", desc = "smart split: swap left" },
|
||||
{ "<leader><leader>o", ":lua require('smart-splits').swap_buf_down()<CR>", desc = "smart split: swap down" },
|
||||
{ "<leader><leader>e", ":lua require('smart-splits').swap_buf_up()<CR>", desc = "smart split: swap up" },
|
||||
{ "<leader><leader>u", ":lua require('smart-splits').swap_buf_right()<CR>", desc = "smart split: swap right" },
|
||||
},
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
return {
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
---@type snacks.Config
|
||||
opts = {},
|
||||
}
|
|
@ -6,6 +6,7 @@ return {
|
|||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||
"debugloop/telescope-undo.nvim",
|
||||
"nvim-telescope/telescope-ui-select.nvim",
|
||||
"zschreur/telescope-jj.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("telescope").setup({
|
||||
|
@ -21,6 +22,7 @@ return {
|
|||
|
||||
-- Enable telescope fzf native, if installed
|
||||
pcall(require("telescope").load_extension, "fzf")
|
||||
pcall(require("telescope").load_extension, "jj")
|
||||
pcall(require("telescope").load_extension, "scaladex")
|
||||
pcall(require("telescope").load_extension, "ui-select")
|
||||
pcall(require("telescope").load_extension, "undo")
|
||||
|
|
40
lua/plugins/texlabconfig.lua
Normal file
40
lua/plugins/texlabconfig.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
return {
|
||||
"f3fora/nvim-texlabconfig",
|
||||
build = "go build",
|
||||
dependencies = { "lervag/vimtex" },
|
||||
config = function()
|
||||
-- vimtex
|
||||
vim.g.vimtex_view_method = "skim"
|
||||
vim.g.vimtex_compiler_method = "tectonic"
|
||||
|
||||
-- nvim-texlabconfig
|
||||
local tex_preview_executable = "/Applications/Skim.app/Contents/SharedSupport/displayline"
|
||||
local tex_preview_args = { "%l", "%p", "%f" }
|
||||
local texlab_build_executable = "tectonic"
|
||||
local texlab_build_args = {
|
||||
"-X",
|
||||
"compile",
|
||||
"%f",
|
||||
"--synctex",
|
||||
"--keep-logs",
|
||||
"--keep-intermediates",
|
||||
}
|
||||
require("texlabconfig").setup({
|
||||
cache_activate = true,
|
||||
cache_filetypes = { "tex", "bib" },
|
||||
reverse_search_edit_cmd = vim.cmd.edit,
|
||||
settings = {
|
||||
texlab = {
|
||||
build = {
|
||||
executable = texlab_build_executable,
|
||||
args = texlab_build_args,
|
||||
},
|
||||
forwardSearch = {
|
||||
executable = tex_preview_executable,
|
||||
args = tex_preview_args,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
|
@ -6,15 +6,6 @@ keymap("n", "<Space>", "", opts)
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- highligh yank
|
||||
vim.api.nvim_set_hl(0, "YankHighlight", { bg = "#d19a66" })
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ higroup = "YankHighlight", timeout = 200 })
|
||||
end,
|
||||
pattern = "*",
|
||||
})
|
||||
|
||||
-- yank to system clipboard
|
||||
keymap({ "n", "v" }, "<leader>y", '"+y', opts)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue