cracked update

This commit is contained in:
Zacharias-Brohn
2025-12-03 21:57:32 +01:00
parent ea80295aee
commit 69e5a05062
40 changed files with 1372 additions and 1224 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
let &t_SI = "\e[5 q" let it_SI = "\e[5 q"
let &t_EI = "\e[2 q" let &t_EI = "\e[2 q"
+3 -3
View File
@@ -1,5 +1,5 @@
local config = { local ionfig = {
cmd = {'/usr/bin/jdtls'}, cmd = {'/usr/bin/jdtls'},
root_dir = vim.fs.dirname(vim.fs.find({'gradlew', '.git', 'mvnw'}, { upward = true })[1]), root_dir = vim.fs.dirname(vim.fs.find({'gradlew', '.git', 'mvnw'}, { upward = true })[1]),
} }
require('jdtls').start_or_attach(config) require('jdtls').start_or_attach(config)
+11
View File
@@ -0,0 +1,11 @@
local gen_hook = MiniSplitjoin.gen_hook
local curly = { brackets = { '%b{}' }}
local add_comma_curly = gen_hook.add_trailing_separator(curly)
local remove_comma_curly = gen_hook.del_trailing_separator(curly)
local pad_curly = gen_hook.pad_brackets(curly)
vim.b.minisplitjoin_config = {
split = { hooks_post = { add_comma_curly }},
join = { hooks_post = { remove_comma_curly, pad_curly }},
}
+12
View File
@@ -0,0 +1,12 @@
local gen_hook = MiniSplitjoin.gen_hook
local curly = { brackets = { '%b{}' }, separator = ';' }
local curly_semi = { brackets = { '%b{}' }, separator = ';' }
local add_semicolon_curly = gen_hook.add_trailing_separator(curly)
local remove_semicolon_curly = gen_hook.del_trailing_separator(curly)
local pad_curly = gen_hook.pad_brackets(curly_semi)
vim.b.minisplitjoin_config = {
split = { hooks_post = { remove_semicolon_curly }},
join = { hooks_pre = { add_semicolon_curly }, hooks_post = { pad_curly }},
}
+17 -5
View File
@@ -1,18 +1,30 @@
if vim.env.PROF then
local snacks = vim.fn.stdpath("data") .. "/lazy/snacks.nvim"
vim.opt.rtp:append( snacks )
require("snacks.profiler").startup({
startup = {
event = "UIEnter",
},
})
end
vim.cmd('source ' .. vim.fn.stdpath("config") .. "/cursor.vim") vim.cmd('source ' .. vim.fn.stdpath("config") .. "/cursor.vim")
require("config.lazy") require("config.lazy")
require("options") require("options")
require("globals") require("globals")
require("mappings") require("mappings")
require("autocmd") require("autocmd")
require("minimodules").load_modules()
-- require("coc-settings") -- require("coc-settings")
if vim.g.neovide then if vim.g.neovide then
require("config.neovide") require("config.neovide")
end end
vim.filetype.add({ vim.filetype.add({
pattern = { pattern = {
[".*/hypr/.*%.conf"] = "hyprlang", [".*/hypr/.*%.conf"] = "hyprlang",
[".*/uwsm/env.*"] = "zsh", [".*/uwsm/env.*"] = "zsh",
} }
}) })
+12 -9
View File
@@ -1,17 +1,20 @@
local autocmd = vim.api.nvim_create_autocmd local autocmd = vim.api.nvim_create_autocmd
autocmd("LspAttach", { autocmd("LspAttach", {
callback = function(args) callback = function(args)
vim.lsp.document_color.enable(false, args.buf, { "background" }) local client = vim.lsp.get_client_by_id( args.data.client_id )
end, if client then
vim.lsp.document_color.enable(false, args.buf, { "background" })
end
end,
}) })
vim.api.nvim_create_autocmd("VimLeave", { autocmd("VimLeave", {
command = "set guicursor=a:ver25-Cursor" command = "set guicursor=a:ver25-Cursor"
}) })
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { autocmd({ "CursorHold" }, {
callback = function() callback = function()
vim.diagnostic.open_float(nil, { focus = false }) vim.diagnostic.open_float(nil, { focus = false })
end end
}) })
+20 -20
View File
@@ -1,4 +1,4 @@
vim.opt.backup = false vimiopt.backup = false
vim.opt.writebackup = false vim.opt.writebackup = false
vim.opt.completeopt = "menuone,menu,noinsert,noselect,popup" vim.opt.completeopt = "menuone,menu,noinsert,noselect,popup"
vim.opt.pumheight = 10 vim.opt.pumheight = 10
@@ -9,8 +9,8 @@ vim.opt.signcolumn = "yes"
local keyset = vim.keymap.set local keyset = vim.keymap.set
function _G.check_back_space() function _G.check_back_space()
local col = vim.fn.col('.') - 1 local col = vim.fn.col('.') - 1
return col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') ~= nil return col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') ~= nil
end end
-- Use Tab for trigger completion with characters ahead and navigate -- Use Tab for trigger completion with characters ahead and navigate
@@ -46,14 +46,14 @@ keyset("n", "gr", "<Plug>(coc-references)", {silent = true})
-- Use K to show documentation in preview window -- Use K to show documentation in preview window
function _G.show_docs() function _G.show_docs()
local cw = vim.fn.expand('<cword>') local cw = vim.fn.expand('<cword>')
if vim.fn.index({'vim', 'help'}, vim.bo.filetype) >= 0 then if vim.fn.index({'vim', 'help'}, vim.bo.filetype) >= 0 then
vim.api.nvim_command('h ' .. cw) vim.api.nvim_command('h ' .. cw)
elseif vim.api.nvim_eval('coc#rpc#ready()') then elseif vim.api.nvim_eval('coc#rpc#ready()') then
vim.fn.CocActionAsync('doHover') vim.fn.CocActionAsync('doHover')
else else
vim.api.nvim_command('!' .. vim.o.keywordprg .. ' ' .. cw) vim.api.nvim_command('!' .. vim.o.keywordprg .. ' ' .. cw)
end end
end end
keyset("n", "K", '<CMD>lua _G.show_docs()<CR>', {silent = true}) keyset("n", "K", '<CMD>lua _G.show_docs()<CR>', {silent = true})
@@ -61,9 +61,9 @@ keyset("n", "K", '<CMD>lua _G.show_docs()<CR>', {silent = true})
-- Highlight the symbol and its references on a CursorHold event(cursor is idle) -- Highlight the symbol and its references on a CursorHold event(cursor is idle)
vim.api.nvim_create_augroup("CocGroup", {}) vim.api.nvim_create_augroup("CocGroup", {})
vim.api.nvim_create_autocmd("CursorHold", { vim.api.nvim_create_autocmd("CursorHold", {
group = "CocGroup", group = "CocGroup",
command = "silent call CocActionAsync('highlight')", command = "silent call CocActionAsync('highlight')",
desc = "Highlight symbol under cursor on CursorHold" desc = "Highlight symbol under cursor on CursorHold"
}) })
@@ -78,10 +78,10 @@ keyset("n", "<leader>f", "<Plug>(coc-format-selected)", {silent = true})
-- Setup formatexpr specified filetype(s) -- Setup formatexpr specified filetype(s)
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
group = "CocGroup", group = "CocGroup",
pattern = "typescript,json", pattern = "typescript,json",
command = "setl formatexpr=CocAction('formatSelected')", command = "setl formatexpr=CocAction('formatSelected')",
desc = "Setup formatexpr specified filetype(s)." desc = "Setup formatexpr specified filetype(s)."
}) })
-- Apply codeAction to the selected region -- Apply codeAction to the selected region
@@ -124,9 +124,9 @@ local opts = {silent = true, nowait = true, expr = true}
keyset("n", "<C-f>", 'coc#float#has_scroll() ? coc#float#scroll(1) : "<C-f>"', opts) keyset("n", "<C-f>", 'coc#float#has_scroll() ? coc#float#scroll(1) : "<C-f>"', opts)
keyset("n", "<C-b>", 'coc#float#has_scroll() ? coc#float#scroll(0) : "<C-b>"', opts) keyset("n", "<C-b>", 'coc#float#has_scroll() ? coc#float#scroll(0) : "<C-b>"', opts)
keyset("i", "<C-f>", keyset("i", "<C-f>",
'coc#float#has_scroll() ? "<c-r>=coc#float#scroll(1)<cr>" : "<Right>"', opts) 'coc#float#has_scroll() ? "<c-r>=coc#float#scroll(1)<cr>" : "<Right>"', opts)
keyset("i", "<C-b>", keyset("i", "<C-b>",
'coc#float#has_scroll() ? "<c-r>=coc#float#scroll(0)<cr>" : "<Left>"', opts) 'coc#float#has_scroll() ? "<c-r>=coc#float#scroll(0)<cr>" : "<Left>"', opts)
keyset("v", "<C-f>", 'coc#float#has_scroll() ? coc#float#scroll(1) : "<C-f>"', opts) keyset("v", "<C-f>", 'coc#float#has_scroll() ? coc#float#scroll(1) : "<C-f>"', opts)
keyset("v", "<C-b>", 'coc#float#has_scroll() ? coc#float#scroll(0) : "<C-b>"', opts) keyset("v", "<C-b>", 'coc#float#has_scroll() ? coc#float#scroll(0) : "<C-b>"', opts)
+32 -32
View File
@@ -1,34 +1,34 @@
require("bufferline").setup ({ require("bufferline").setup ({
options = { options = {
diagnostics = "nvim_lsp", diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context) diagnostics_indicator = function(count, level, diagnostics_dict, context)
local s = " " local s = " "
for e, n in pairs(diagnostics_dict) do for e, n in pairs(diagnostics_dict) do
local sym = e == "error" and "" local sym = e == "error" and ""
or (e == "warning" and "" or "") or (e == "warning" and "" or "")
s = s .. n .. sym s = s .. n .. sym
end end
return s return s
end, end,
show_close_icon = false, show_close_icon = false,
show_buffer_close_icons = false, show_buffer_close_icons = false,
always_show_bufferline = true, always_show_bufferline = true,
offsets = { offsets = {
{ {
filetype = "NvimTree", filetype = "NvimTree",
text = "Explorer", text = "Explorer",
text_align = "center", text_align = "center",
}, },
{ {
filetype = "snacks_layout_box", filetype = "snacks_layout_box",
}, },
}, },
vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, { vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
callback = function() callback = function()
vim.schedule(function() vim.schedule(function()
pcall(nvim_bufferline) pcall(nvim_bufferline)
end) end)
end, end,
}) })
}, },
}) })
+36 -36
View File
@@ -1,38 +1,38 @@
require("chatgpt").setup({ require("chatgpt").setup({
api_host_cmd = "echo http://localhost:5000", api_host_cmd = "echo http://localhost:5000",
api_key_cmd = "echo ''", api_key_cmd = "echo ''",
openai_params = { openai_params = {
model = "Selene-1-Mini-Llama-3.1-8B-EXL3", model = "Selene-1-Mini-Llama-3.1-8B-EXL3",
frequency_penalty = 0, frequency_penalty = 0,
presence_penalty = 0, presence_penalty = 0,
max_tokens = 1024, max_tokens = 1024,
temperature = 0.1, temperature = 0.1,
top_p = 1, top_p = 1,
n = 1, n = 1,
}, },
keymaps = { keymaps = {
close = "<C-c>", close = "<C-c>",
close_n = "<Esc>", close_n = "<Esc>",
yank_last = "<C-y>", yank_last = "<C-y>",
yank_last_code = "<C-k>", yank_last_code = "<C-k>",
scroll_up = "<C-u>", scroll_up = "<C-u>",
scroll_down = "<C-d>", scroll_down = "<C-d>",
new_session = "<C-l>", new_session = "<C-l>",
cycle_windows = "<Tab>", cycle_windows = "<Tab>",
cycle_modes = "<C-f>", cycle_modes = "<C-f>",
next_message = "<C-j>", next_message = "<C-j>",
prev_message = "<C-k>", prev_message = "<C-k>",
select_session = "<Space>", select_session = "<Space>",
rename_session = "r", rename_session = "r",
delete_session = "d", delete_session = "d",
draft_message = "<C-r>", draft_message = "<C-r>",
edit_message = "e", edit_message = "e",
delete_message = "d", delete_message = "d",
toggle_settings = "<C-o>", toggle_settings = "<C-o>",
toggle_sessions = "<C-p>", toggle_sessions = "<C-p>",
toggle_help = "<C-h>", toggle_help = "<C-h>",
toggle_message_role = "<C-r>", toggle_message_role = "<C-r>",
toggle_system_role_open = "<C-s>", toggle_system_role_open = "<C-s>",
stop_generating = "<C-x>", stop_generating = "<C-x>",
}, },
}) })
+33 -33
View File
@@ -1,40 +1,40 @@
local cmp_kinds = { local cmp_kinds = {
Text = '', Text = '',
Method = '', Method = '',
Function = '', Function = '',
Constructor = '', Constructor = '',
Field = '', Field = '',
Variable = '', Variable = '',
Class = '', Class = '',
Interface = '', Interface = '',
Module = '', Module = '',
Property = '', Property = '',
Unit = '', Unit = '',
Value = '', Value = '',
Enum = '', Enum = '',
Keyword = '', Keyword = '',
Snippet = '', Snippet = '',
Color = '', Color = '',
File = '', File = '',
Reference = '', Reference = '',
Folder = '', Folder = '',
EnumMember = '', EnumMember = '',
Constant = '', Constant = '',
Struct = '', Struct = '',
Event = '', Event = '',
Operator = '', Operator = '',
TypeParameter = '', TypeParameter = '',
} }
local cmp = require('cmp') local cmp = require('cmp')
cmp.setup({ cmp.setup({
preselect = 'None', preselect = 'None',
formatting = { formatting = {
fields = { 'kind', 'abbr' }, fields = { 'kind', 'abbr' },
format = function(_, vim_item) format = function(_, vim_item)
vim_item.kind = cmp_kinds[vim_item.kind] or '' vim_item.kind = cmp_kinds[vim_item.kind] or ''
return vim_item return vim_item
end, end,
} }
}) })
+9 -8
View File
@@ -1,10 +1,11 @@
require("colorizer").setup({ require("colorizer").setup({
user_default_options = { user_default_options = {
mode = "virtualtext", mode = "virtualtext",
virtualtext = "", virtualtext = "",
css = true, css = true,
tailwind = true, tailwind = true,
sass = { enable = true, parsers = { "css" }}, sass = { enable = true, parsers = { "css" }},
virtualtext_inline = 'before', virtualtext_inline = 'before',
}, AARRGGBB = true,
},
}) })
+57 -62
View File
@@ -1,64 +1,59 @@
require("copilot").setup({ require("copilot").setup({
panel = { panel = {
enabled = true, enabled = true,
auto_refresh = true, auto_refresh = true,
keymap = { keymap = {
jump_prev = "[[", jump_prev = "[[",
jump_next = "]]", jump_next = "]]",
accept = "<CR>", accept = "<CR>",
refresh = "gr", refresh = "gr",
open = "<M-CR>" open = "<M-CR>"
}, },
layout = { layout = {
position = "bottom", -- | top | left | right | horizontal | vertical position = "bottom", -- | top | left | right | horizontal | vertical
ratio = 0.4 ratio = 0.4
}, },
}, },
suggestion = { suggestion = {
enabled = true, enabled = true,
auto_trigger = true, auto_trigger = true,
hide_during_completion = true, hide_during_completion = true,
debounce = 75, debounce = 75,
keymap = { keymap = {
accept = "<A-tab>", accept = "<A-tab>",
accept_word = false, accept_word = false,
accept_line = false, accept_line = false,
next = "<M-]>", next = "<M-]>",
prev = "<M-[>", prev = "<M-[>",
dismiss = "<C-]>", dismiss = "<C-]>",
}, },
}, },
filetypes = { filetypes = {
-- yaml = false, -- yaml = false,
-- markdown = false, -- markdown = false,
-- help = false, -- help = false,
-- gitcommit = false, -- gitcommit = false,
-- gitrebase = false, -- gitrebase = false,
-- hgcommit = false, -- hgcommit = false,
-- svn = false, -- svn = false,
-- cvs = false, -- cvs = false,
-- python = false, -- python = false,
-- html = false, -- html = false,
-- css = false, -- css = false,
-- sh = false, -- sh = false,
-- tex = false, -- tex = false,
-- typescript = false, -- typescript = false,
-- java = false, -- java = false,
-- swift = false, -- swift = false,
-- cpp = false, -- cpp = false,
-- hypr = false, -- hypr = false,
-- ["."] = false, -- ["."] = false,
}, },
copilot_node_command = 'node', -- Node.js version must be > 18.x copilot_node_command = 'node',
server_opts_overrides = {}, server_opts_overrides = {},
vim.api.nvim_create_autocmd({ "VimLeavePre" }, { vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
callback = function() callback = function()
vim.cmd( "CopilotChatSave AutoSave" ) vim.cmd( "CopilotChatSave AutoSave" )
end, end,
}), }),
vim.api.nvim_create_autocmd( "VimEnter", {
callback = function()
vim.cmd( "CopilotChatLoad AutoSave" )
end,
}),
}) })
+33 -32
View File
@@ -1,41 +1,42 @@
require("CopilotChat").setup { require("CopilotChat").setup {
prompts = { -- system_prompt = "You are an assistant helping the user with whatever they need, but you are also a bit of an asshole.",
}, prompts = {
},
sticky = "#glob:**/*", headers = {
user = ' You: ',
assistant = ' Copilot: ',
tool = '󰖷 Tool: ',
},
headers = { temperature = 0.2,
user = ' You: ',
assistant = ' Copilot: ',
tool = '󰖷 Tool: ',
},
providers = { providers = {
tabby = { tabby = {
prepare_input = require('CopilotChat.config.providers').copilot.prepare_input, prepare_input = require('CopilotChat.config.providers').copilot.prepare_input,
prepare_output = require('CopilotChat.config.providers').copilot.prepare_output, prepare_output = require('CopilotChat.config.providers').copilot.prepare_output,
get_models = function(headers) get_models = function(headers)
local response, err = require('CopilotChat.utils').curl_get('http://localhost:5000/v1/models', { local response, err = require('CopilotChat.utils').curl_get('http://localhost:5000/v1/models', {
headers = headers, headers = headers,
json_response = true json_response = true
}) })
if err then if err then
error(err) error(err)
end end
return vim.tbl_map(function(model) return vim.tbl_map(function(model)
return { return {
id = model.id, id = model.id,
name = model.id, name = model.id,
} }
end, response.body.data) end, response.body.data)
end, end,
get_url = function() get_url = function()
return 'http://localhost:5000/v1/chat/completions' return 'http://localhost:5000/v1/chat/completions'
end, end,
} }
} }
} }
+85 -85
View File
@@ -1,106 +1,106 @@
local dap = require('dap') local dap = require('dap')
dap.adapters.python = function(cb, config) dap.adapters.python = function(cb, config)
if config.request == 'attach' then if config.request == 'attach' then
---@diagnostic disable-next-line: undefined-field ---@diagnostic disable-next-line: undefined-field
local port = (config.connect or config).port local port = (config.connect or config).port
---@diagnostic disable-next-line: undefined-field ---@diagnostic disable-next-line: undefined-field
local host = (config.connect or config).host or '127.0.0.1' local host = (config.connect or config).host or '127.0.0.1'
cb({ cb({
type = 'server', type = 'server',
port = assert(port, '`connect.port` is required for a python `attach` configuration'), port = assert(port, '`connect.port` is required for a python `attach` configuration'),
host = host, host = host,
options = { options = {
source_filetype = 'python', source_filetype = 'python',
}, },
}) })
else else
cb({ cb({
type = 'executable', type = 'executable',
command = 'path/to/virtualenvs/debugpy/bin/python', command = 'path/to/virtualenvs/debugpy/bin/python',
args = { '-m', 'debugpy.adapter' }, args = { '-m', 'debugpy.adapter' },
options = { options = {
source_filetype = 'python', source_filetype = 'python',
}, },
}) })
end end
end end
dap.configurations.python = { dap.configurations.python = {
{ {
-- The first three options are required by nvim-dap -- The first three options are required by nvim-dap
type = 'python'; -- the type here established the link to the adapter definition: `dap.adapters.python` type = 'python'; -- the type here established the link to the adapter definition: `dap.adapters.python`
request = 'launch'; request = 'launch';
name = "Launch file"; name = "Launch file";
-- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options -- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options
program = "${file}"; -- This configuration will launch the current file if used. program = "${file}"; -- This configuration will launch the current file if used.
pythonPath = function() pythonPath = function()
-- debugpy supports launching an application with a different interpreter then the one used to launch debugpy itself. -- debugpy supports launching an application with a different interpreter then the one used to launch debugpy itself.
-- The code below looks for a `venv` or `.venv` folder in the current directly and uses the python within. -- The code below looks for a `venv` or `.venv` folder in the current directly and uses the python within.
-- You could adapt this - to for example use the `VIRTUAL_ENV` environment variable. -- You could adapt this - to for example use the `VIRTUAL_ENV` environment variable.
local cwd = vim.fn.getcwd() local cwd = vim.fn.getcwd()
if vim.fn.executable(cwd .. '/venv/bin/python') == 1 then if vim.fn.executable(cwd .. '/venv/bin/python') == 1 then
return cwd .. '/venv/bin/python' return cwd .. '/venv/bin/python'
elseif vim.fn.executable(cwd .. '/.venv/bin/python') == 1 then elseif vim.fn.executable(cwd .. '/.venv/bin/python') == 1 then
return cwd .. '/.venv/bin/python' return cwd .. '/.venv/bin/python'
else else
return '/home/zach/miniconda3/bin/python' return '/home/zach/miniconda3/bin/python'
end end
end; end;
}, },
} }
dap.adapters.lldb = { dap.adapters.lldb = {
type = 'executable', type = 'executable',
command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path
name = 'lldb' name = 'lldb'
} }
dap.configurations.cpp = { dap.configurations.cpp = {
{ {
name = 'Launch', name = 'Launch',
type = 'lldb', type = 'lldb',
request = 'launch', request = 'launch',
program = function() program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end, end,
cwd = '${workspaceFolder}', cwd = '${workspaceFolder}',
stopOnEntry = false, stopOnEntry = false,
args = {}, args = {},
-- 💀 -- 💀
-- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting: -- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
-- --
-- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope -- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
-- --
-- Otherwise you might get the following error: -- Otherwise you might get the following error:
-- --
-- Error on launch: Failed to attach to the target process -- Error on launch: Failed to attach to the target process
-- --
-- But you should be aware of the implications: -- But you should be aware of the implications:
-- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html -- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
-- runInTerminal = false, -- runInTerminal = false,
}, },
} }
dap.adapters["pwa-node"] = { dap.adapters["pwa-node"] = {
type = "server", type = "server",
host = "localhost", host = "localhost",
port = "${port}", port = "${port}",
executable = { executable = {
command = "node", command = "node",
-- 💀 Make sure to update this path to point to your installation -- 💀 Make sure to update this path to point to your installation
args = {"/home/zach/.config/nvim/java-dap/js-debug/src/dapDebugServer.js", "${port}"}, args = {"/home/zach/.config/nvim/java-dap/js-debug/src/dapDebugServer.js", "${port}"},
} }
} }
dap.configurations.javascript = { dap.configurations.javascript = {
{ {
type = "pwa-node", type = "pwa-node",
request = "launch", request = "launch",
name = "Launch file", name = "Launch file",
program = "${file}", program = "${file}",
cwd = "${workspaceFolder}", cwd = "${workspaceFolder}",
}, },
} }
+42 -42
View File
@@ -1,50 +1,50 @@
require("gruvbox").setup({ require("gruvbox").setup({
variant = "hard", variant = "hard",
dark_variant = "medium", dark_variant = "medium",
dim_inactive_windows = false, dim_inactive_windows = false,
extend_background_behind_borders = false, extend_background_behind_borders = false,
enable = { enable = {
terminal = true, terminal = true,
legacy_highlights = true, legacy_highlights = true,
migrations = true, migrations = true,
}, },
styles = { styles = {
bold = true, bold = true,
italic = true, italic = true,
transparency = false, transparency = false,
}, },
groups = { groups = {
border = "gray", border = "gray",
link = "purple_lite", link = "purple_lite",
panel = "bg_second", panel = "bg_second",
error = "red_lite", error = "red_lite",
hint = "aqua_lite", hint = "aqua_lite",
info = "blue_lite", info = "blue_lite",
ok = "green_lite", ok = "green_lite",
warn = "yellow_lite", warn = "yellow_lite",
note = "yellow_dark", note = "yellow_dark",
todo = "aqua_dark", todo = "aqua_dark",
git_add = "green_dark", git_add = "green_dark",
git_change = "yellow_dark", git_change = "yellow_dark",
git_delete = "red_dark", git_delete = "red_dark",
git_dirty = "orange_dark", git_dirty = "orange_dark",
git_ignore = "gray", git_ignore = "gray",
git_merge = "purple_dark", git_merge = "purple_dark",
git_rename = "blue_dark", git_rename = "blue_dark",
git_stage = "purple_dark", git_stage = "purple_dark",
git_text = "yellow_lite", git_text = "yellow_lite",
git_untracked = "bg2", git_untracked = "bg2",
h1 = "red_dark", h1 = "red_dark",
h2 = "yellow_dark", h2 = "yellow_dark",
h3 = "green_dark", h3 = "green_dark",
h4 = "aqua_dark", h4 = "aqua_dark",
h5 = "blue_dark", h5 = "blue_dark",
h6 = "purple_dark", h6 = "purple_dark",
}, },
}) })
+13 -13
View File
@@ -4,23 +4,23 @@ harpoon:setup()
local conf = require("telescope.config").values local conf = require("telescope.config").values
local function toggle_telescope(harpoon_files) local function toggle_telescope(harpoon_files)
local file_paths = {} local file_paths = {}
for _, item in ipairs(harpoon_files.items) do for _, item in ipairs(harpoon_files.items) do
table.insert(file_paths, item.value) table.insert(file_paths, item.value)
end end
require("telescope.pickers").new({}, { require("telescope.pickers").new({}, {
prompt_title = "Harpoon", prompt_title = "Harpoon",
finder = require("telescope.finders").new_table({ finder = require("telescope.finders").new_table({
results = file_paths, results = file_paths,
}), }),
previewer = conf.file_previewer({}), previewer = conf.file_previewer({}),
sorter = conf.generic_sorter({}), sorter = conf.generic_sorter({}),
}):find() }):find()
end end
vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end, vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end,
{ desc = "Open harpoon window" }) { desc = "Open harpoon window" })
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end) vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
+16 -16
View File
@@ -1,29 +1,29 @@
local highlight = { local highlight = {
"RainbowRed", "RainbowRed",
"RainbowYellow", "RainbowYellow",
"RainbowBlue", "RainbowBlue",
"RainbowOrange", "RainbowOrange",
"RainbowGreen", "RainbowGreen",
"RainbowViolet", "RainbowViolet",
"RainbowCyan", "RainbowCyan",
} }
local hooks = require "ibl.hooks" local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset -- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes -- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function() hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" }) vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" }) vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" }) vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" }) vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" }) vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" }) vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" }) vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
end) end)
vim.g.rainbow_delimiters = { highlight = highlight } vim.g.rainbow_delimiters = { highlight = highlight }
require("ibl").setup { require("ibl").setup {
indent = { char = "" }, indent = { char = "" },
scope = { highlight = highlight } scope = { highlight = highlight }
} }
hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark) hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark)
+20 -20
View File
@@ -1,17 +1,17 @@
-- Bootstrap lazy.nvim -- bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" }, { out, "WarningMsg" },
{ "\nPress any key to exit..." }, { "\nPress any key to exit..." },
}, true, {}) }, true, {})
vim.fn.getchar() vim.fn.getchar()
os.exit(1) os.exit(1)
end end
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
@@ -19,12 +19,12 @@ vim.g.mapleader = " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = "\\"
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
{ import = "plugins" }, { import = "plugins" },
}, },
-- Configure any other settings here. See the documentation for more details. -- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins. -- colorscheme that will be used when installing plugins.
install = { colorscheme = { "onedark" } }, install = { colorscheme = { "onedark" } },
-- automatically check for plugin updates -- automatically check for plugin updates
checker = { enabled = true }, checker = { enabled = true },
}) })
+7 -7
View File
@@ -1,9 +1,9 @@
require("lazydev").setup({ require("lazydev").setup({
library = { library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" }}, { path = "${3rd}/luv/library", words = { "vim%.uv" }},
"LazyVim", "LazyVim",
}, },
enabled = function(root_dir) enabled = function(root_dir)
return vim.g.lazydev_enabled == nil and true or vim.g.lazydev_enabled return vim.g.lazydev_enabled == nil and true or vim.g.lazydev_enabled
end, end,
}) })
+197 -192
View File
@@ -1,231 +1,236 @@
local cmp = require("cmp") local cmp = require("cmp")
local cmp_lsp = require("cmp_nvim_lsp") local cmp_lsp = require("cmp_nvim_lsp")
local capabilities = vim.tbl_deep_extend( local capabilities = vim.tbl_deep_extend(
"force", "force",
{}, {},
vim.lsp.protocol.make_client_capabilities(), vim.lsp.protocol.make_client_capabilities(),
cmp_lsp.default_capabilities() cmp_lsp.default_capabilities()
) )
local cmp_kinds = { local cmp_kinds = {
Text = '', Text = '',
Method = '', Method = '',
Function = '', Function = '',
Constructor = '', Constructor = '',
Field = '', Field = '',
Variable = '', Variable = '',
Class = '', Class = '',
Interface = '', Interface = '',
Module = '', Module = '',
Property = '', Property = '',
Unit = '', Unit = '',
Value = '', Value = '',
Enum = '', Enum = '',
Keyword = '', Keyword = '',
Snippet = '', Snippet = '',
Color = '', Color = '',
File = '', File = '',
Reference = '', Reference = '',
Folder = '', Folder = '',
EnumMember = '', EnumMember = '',
Constant = '', Constant = '',
Struct = '', Struct = '',
Event = '', Event = '',
Operator = '', Operator = '',
TypeParameter = '', TypeParameter = '',
} }
require("fidget").setup({}) require("fidget").setup({})
require("mason").setup() require("mason").setup()
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
automatic_enable = true, automatic_enable = true,
ensure_installed = { ensure_installed = {
"lua_ls", "lua_ls",
"rust_analyzer", "rust_analyzer",
"gopls", "gopls",
}, },
handlers = { handlers = {
function(server_name) -- default handler (optional) function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup { require("lspconfig")[server_name].setup {
capabilities = capabilities, capabilities = capabilities,
} }
end, end,
-- lemminx = function() ["tailwindcss"] = function()
-- local lspconfig = vim.lsp.config local lspconfig = require("lspconfig")
-- local lspenable = vim.lsp.enable lspconfig.tailwindcss.setup {
-- end, capabilities = capabilities,
}
end,
["css-lsp"] = function() ["css-lsp"] = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
lspconfig.cssls.setup { lspconfig.cssls.setup {
capabilities = capabilities, capabilities = capabilities,
} }
end, end,
zls = function() zls = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
lspconfig.zls.setup({ lspconfig.zls.setup({
capabilities = capabilities, capabilities = capabilities,
root_dir = lspconfig.util.root_pattern(".git", "build.zig", "zls.json"), root_dir = lspconfig.util.root_pattern(".git", "build.zig", "zls.json"),
settings = { settings = {
zls = { zls = {
enable_inlay_hints = true, enable_inlay_hints = true,
enable_snippets = true, enable_snippets = true,
warn_style = true, warn_style = true,
}, },
}, },
}) })
vim.g.zig_fmt_parse_errors = 0 vim.g.zig_fmt_parse_errors = 0
vim.g.zig_fmt_autosave = 0 vim.g.zig_fmt_autosave = 0
end, end,
["lua_ls"] = function() ["lua_ls"] = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup { lspconfig.lua_ls.setup {
capabilities = capabilities, capabilities = capabilities,
settings = { settings = {
Lua = { Lua = {
runtime = { version = "Lua 5.1" }, runtime = { version = "Lua 5.1" },
diagnostics = { diagnostics = {
globals = { "bit", "vim", "it", "describe", "before_each", "after_each" }, globals = { "bit", "vim", "it", "describe", "before_each", "after_each" },
} }
} }
} }
} }
end, end,
} }
}) })
cmp.setup { cmp.setup {
preselect = 'None', preselect = 'None',
formatting = { formatting = {
fields = { 'kind', 'abbr' }, fields = { 'kind', 'abbr' },
format = function(entry, vim_item) format = function(entry, vim_item)
vim_item.kind = cmp_kinds[vim_item.kind] or '' vim_item.kind = cmp_kinds[vim_item.kind] or ''
if entry.completion_item.detail then if entry.completion_item.detail then
vim_item.menu = entry.completion_item.detail vim_item.menu = entry.completion_item.detail
end end
return vim_item return vim_item
end, end,
}, },
completion = { completeopt = "menu,menuone" }, completion = { completeopt = "menu,menuone" },
snippet = { snippet = {
expand = function(args) expand = function(args)
require("luasnip").lsp_expand(args.body) require("luasnip").lsp_expand(args.body)
end, end,
}, },
mapping = { mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(), ["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(), ["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4), ["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(), ["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm { ["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert, behavior = cmp.ConfirmBehavior.Insert,
select = true, select = true,
}, },
["<Tab>"] = cmp.mapping(function(fallback) ["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then elseif require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump() require("luasnip").expand_or_jump()
else else
fallback() fallback()
end end
end, { "i", "s" }), end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback) ["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_prev_item() cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then elseif require("luasnip").jumpable(-1) then
require("luasnip").jump(-1) require("luasnip").jump(-1)
else else
fallback() fallback()
end end
end, { "i", "s" }), end, { "i", "s" }),
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "path" }, { name = "path" },
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "luasnip" }, { name = "luasnip" },
{ name = "buffer" }, { name = "buffer" },
{ name = "nvim_lua" }, { name = "nvim_lua" },
}), }),
} }
vim.diagnostic.config({ vim.diagnostic.config({
-- update_in_insert = true, -- update_in_insert = true,
virtual_text = true, virtual_text = false,
float = { virtual_lines = false,
focusable = false, signs = true,
style = "minimal", underline = true,
border = "rounded", float = {
source = "always", focusable = false,
header = "", style = "minimal",
prefix = "", border = "rounded",
}, source = true,
header = "",
prefix = "",
},
}) })
local lspconfig = vim.lsp.config local lspconfig = vim.lsp.config
lspconfig("texlab", { lspconfig("texlab", {
cmd = { "texlab" }, cmd = { "texlab" },
filetypes = { "tex", "bib", "plaintex" }, filetypes = { "tex", "bib", "plaintex" },
root_markers = { ".git", ".latexmkrc", "latexmkrc", ".texlabroot", "texlabroot", "Tectonic.toml" }, root_markers = { ".git", ".latexmkrc", "latexmkrc", ".texlabroot", "texlabroot", "Tectonic.toml" },
settings = { settings = {
texlab = { texlab = {
rootDirectory = nil, rootDirectory = nil,
build = { build = {
executable = "latexmk", executable = "latexmk",
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" }, args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
onSave = true, onSave = true,
forwardSearchAfter = true, forwardSearchAfter = true,
}, },
forwardSearch = { forwardSearch = {
executable = "zathura", executable = "zathura",
args = { args = {
"--synctex-editor-command", "--synctex-editor-command",
[[ nvim-texlabconfig -file '%%%{input}' -line %%%{line} -server ]] .. vim.v.servername, [[ nvim-texlabconfig -file '%%%{input}' -line %%%{line} -server ]] .. vim.v.servername,
"--synctex-forward", "--synctex-forward",
"%l:1:%f", "%l:1:%f",
"%p", "%p",
}, },
}, },
chktex = { chktex = {
onEdit = false, onEdit = false,
onOpenAndSave = true, onOpenAndSave = true,
}, },
diagnosticsDelay = 300, diagnosticsDelay = 300,
latexFormatter = "latexindent", latexFormatter = "latexindent",
latexindent = { latexindent = {
['local'] = nil, ['local'] = nil,
modifyLineBreaks = false, modifyLineBreaks = false,
}, },
bibtexFormatter = "texlab", bibtexFormatter = "texlab",
formatterLineLength = 80, formatterLineLength = 80,
}, },
}, },
}) })
lspconfig("qmlls", { lspconfig("qmlls", {
cmd = { "qmlls6" }, cmd = { "qmlls6" },
}) })
local lspenable = vim.lsp.enable local lspenable = vim.lsp.enable
local servers = { local servers = {
"html", "html",
"bashls", "bashls",
"pyright", "pyright",
"ts_ls", "ts_ls",
"texlab", "texlab",
-- "jdtls", "sourcekit",
"sourcekit", "qmlls",
"qmlls", "tailwindcss",
} }
for _, server in ipairs(servers) do for _, server in ipairs(servers) do
lspenable(server) lspenable(server)
end end
+144 -144
View File
@@ -1,171 +1,171 @@
local fn = vim.fn local fn = vim.fn
local get_active_lsp = function() local get_active_lsp = function()
local msg = "🚫" local msg = ""
local buf_ft = vim.api.nvim_get_option_value("filetype", {}) local buf_ft = vim.api.nvim_get_option_value("filetype", {})
local clients = vim.lsp.get_clients { bufnr = 0 } local clients = vim.lsp.get_clients { bufnr = 0 }
if next(clients) == nil then if next(clients) == nil then
return msg return msg
end end
for _, client in ipairs(clients) do for _, client in ipairs(clients) do
---@diagnostic disable-next-line: undefined-field ---@diagnostic disable-next-line: undefined-field
local filetypes = client.config.filetypes local filetypes = client.config.filetypes
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
return client.name return client.name
end end
end end
return msg return msg
end end
local function spell() local function spell()
if vim.o.spell then if vim.o.spell then
return string.format("[SPELL]") return string.format("[SPELL]")
end end
return "" return ""
end end
--- show indicator for Chinese IME --- show indicator for Chinese IME
local function ime_state() local function ime_state()
if vim.g.is_mac then if vim.g.is_mac then
local layout = fn.libcall(vim.g.XkbSwitchLib, "Xkb_Switch_getXkbLayout", "") local layout = fn.libcall(vim.g.XkbSwitchLib, "Xkb_Switch_getXkbLayout", "")
local res = fn.match(layout, [[\v(Squirrel\.Rime|SCIM.ITABC)]]) local res = fn.match(layout, [[\v(Squirrel\.Rime|SCIM.ITABC)]])
if res ~= -1 then if res ~= -1 then
return "[CN]" return "[CN]"
end end
end end
return "" return ""
end end
local diff = function() local diff = function()
local git_status = vim.b.gitsigns_status_dict local git_status = vim.b.gitsigns_status_dict
if git_status == nil then if git_status == nil then
return return
end end
local modify_num = git_status.changed local modify_num = git_status.changed
local remove_num = git_status.removed local remove_num = git_status.removed
local add_num = git_status.added local add_num = git_status.added
local info = { added = add_num, modified = modify_num, removed = remove_num } local info = { added = add_num, modified = modify_num, removed = remove_num }
-- vim.print(info) -- vim.print(info)
return info return info
end end
local virtual_env = function() local virtual_env = function()
-- only show virtual env for Python -- only show virtual env for Python
if vim.bo.filetype ~= "python" then if vim.bo.filetype ~= "python" then
return "" return ""
end end
local conda_env = os.getenv("CONDA_DEFAULT_ENV") local conda_env = os.getenv("CONDA_DEFAULT_ENV")
local venv_path = os.getenv("VIRTUAL_ENV") local venv_path = os.getenv("VIRTUAL_ENV")
if venv_path == nil then if venv_path == nil then
if conda_env == nil then if conda_env == nil then
return "" return ""
else else
return string.format(" %s (conda)", conda_env) return string.format(" %s (conda)", conda_env)
end end
else else
local venv_name = vim.fn.fnamemodify(venv_path, ":t") local venv_name = vim.fn.fnamemodify(venv_path, ":t")
return string.format(" %s (venv)", venv_name) return string.format(" %s (venv)", venv_name)
end end
end end
require("lualine").setup { require("lualine").setup {
laststatus = 0, laststatus = 0,
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = "auto", theme = "auto",
globalstatus = true, globalstatus = true,
component_separators = '', component_separators = '',
section_separators = { left = '', right = '' }, section_separators = { left = '', right = '' },
disabled_filetypes = {}, disabled_filetypes = {},
always_divide_middle = true, always_divide_middle = true,
}, },
sections = { sections = {
lualine_a = { lualine_a = {
{ {
"mode", "mode",
}, },
}, },
lualine_b = { lualine_b = {
{ {
"branch", "branch",
fmt = function(name, _) fmt = function(name, _)
-- truncate branch name in case the name is too long -- truncate branch name in case the name is too long
return string.sub(name, 1, 20) return string.sub(name, 1, 20)
end, end,
color = { gui = "italic,bold" }, color = { gui = "italic,bold" },
separator = { right = "" }, separator = { right = "" },
}, },
{ {
virtual_env, virtual_env,
color = { fg = "black", bg = "#F1CA81" }, color = { fg = "black", bg = "#F1CA81" },
}, },
}, },
lualine_c = { lualine_c = {
{ {
"filename", "filename",
symbols = { symbols = {
readonly = "[🔒]", readonly = "[󰌾]",
}, },
}, },
{ {
"diff", "diff",
source = diff, source = diff,
}, },
{ {
"%S", "%S",
color = { gui = "bold", fg = "cyan" }, color = { gui = "bold", fg = "cyan" },
}, },
{ {
spell, spell,
color = { fg = "black", bg = "#a7c080" }, color = { fg = "black", bg = "#a7c080" },
}, },
}, },
lualine_x = { lualine_x = {
{ {
ime_state, ime_state,
color = { fg = "black", bg = "#f46868" }, color = { fg = "black", bg = "#f46868" },
}, },
{ {
get_active_lsp, get_active_lsp,
icon = " LSP:", icon = " LSP:",
}, },
{ {
"diagnostics", "diagnostics",
sources = { "nvim_diagnostic" }, sources = { "nvim_diagnostic" },
symbols = { error = "🆇 ", warn = "⚠️ ", info = " ", hint = "" }, symbols = { error = " ", warn = " ", info = " ", hint = "" },
}, },
}, },
lualine_y = { lualine_y = {
{ "encoding", fmt = string.upper }, { "encoding", fmt = string.upper },
{ {
"fileformat", "fileformat",
symbols = { symbols = {
unix = "", unix = "",
dos = "", dos = "",
mac = "", mac = "",
}, },
}, },
"filetype", "filetype",
}, },
lualine_z = { lualine_z = {
"progress", "progress",
}, },
}, },
inactive_sections = { inactive_sections = {
lualine_a = {}, lualine_a = {},
lualine_b = {}, lualine_b = {},
lualine_c = { "filename" }, lualine_c = { "filename" },
lualine_x = { "location" }, lualine_x = { "location" },
lualine_y = {}, lualine_y = {},
lualine_z = {}, lualine_z = {},
}, },
tabline = {}, tabline = {},
extensions = { "quickfix", "fugitive", "nvim-tree" }, extensions = { "quickfix", "fugitive", "nvim-tree" },
} }
+5 -5
View File
@@ -1,7 +1,7 @@
return { return {
content = { content = {
active = nil, active = nil,
inactive = nil, inactive = nil,
}, },
use_icons = true, use_icons = true,
} }
+15 -15
View File
@@ -1,17 +1,17 @@
require("modicator").setup({ require("modicator").setup({
show_warnings = true, show_warnings = true,
highlights = { highlights = {
defaults = { defaults = {
bold = false, bold = false,
italic = false, italic = false,
}, },
use_cursorline_background = true, use_cursorline_background = true,
}, },
integration = { integration = {
lualine = { lualine = {
enabled = true, enabled = true,
mode_section = nil, mode_section = nil,
highlight = 'bg', highlight = 'bg',
} }
} }
}) })
+11
View File
@@ -0,0 +1,11 @@
require("mini.splitjoin").setup({
mappings = {
toggle = "gS",
},
detect = {
brackets = { '%b()', '%b{}', '%b[]' },
separator = '[,;]',
},
})
+27 -27
View File
@@ -1,29 +1,29 @@
require("noice").setup({ require("noice").setup({
lsp = { lsp = {
override = { override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true, ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true, ["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, ["cmp.entry.get_documentation"] = true,
}, },
}, },
presets = { presets = {
bottom_search = true, bottom_search = true,
command_palette = true, command_palette = true,
long_message_to_split = true, long_message_to_split = true,
inc_rename = false, inc_rename = false,
lsp_doc_border = false, lsp_doc_border = false,
}, },
views = { views = {
popupmenu = { popupmenu = {
enabled = true, enabled = true,
backend = "nui", backend = "nui",
win_options = { win_options = {
winblend = 0.5, winblend = 0.5,
}, },
border = { border = {
style = "shadow", style = "shadow",
padding = { 1, 2 }, padding = { 1, 2 },
}, },
}, },
}, },
}) })
+5 -5
View File
@@ -2,7 +2,7 @@ vim.notify = require('notify')
local dap = require('dap') local dap = require('dap')
require('notify').setup({ require('notify').setup({
render = "wrapped-default", render = "wrapped-default",
timeout = 6000, timeout = 6000,
max_width = 50, max_width = 50,
minimum_width = 50, minimum_width = 50,
@@ -15,10 +15,10 @@ require('notify').setup({
DEBUG = "", DEBUG = "",
TRACE = "", TRACE = "",
}, },
on_open = function(win) on_open = function(win)
-- vim.api.nvim_win_set_option(win, 'wrap', true) -- vim.api.nvim_win_set_option(win, 'wrap', true)
vim.api.nvim_win_set_option(win, 'breakat', ' ') vim.api.nvim_win_set_option(win, 'breakat', ' ')
end, end,
}) })
-- Utility functions shared between progress reports for LSP and DAP -- Utility functions shared between progress reports for LSP and DAP
+3 -3
View File
@@ -1,7 +1,7 @@
local popup = require('nui.popup') local popup = require('nui.popup')
local Popup = popup({ local Popup = popup({
border = { border = {
style = "shadow", style = "shadow",
} }
}) })
+22 -22
View File
@@ -1,26 +1,26 @@
require('refactoring').setup({ require('refactoring').setup({
prompt_func_return_type = { prompt_func_return_type = {
go = true, go = true,
java = true, java = true,
cpp = true, cpp = true,
c = true, c = true,
h = true, h = true,
hpp = true, hpp = true,
cxx = true, cxx = true,
}, },
prompt_func_param_type = { prompt_func_param_type = {
go = true, go = true,
java = true, java = true,
cpp = true, cpp = true,
c = true, c = true,
h = true, h = true,
hpp = true, hpp = true,
cxx = true, cxx = true,
}, },
printf_statements = {}, printf_statements = {},
print_var_statements = {}, print_var_statements = {},
show_success_message = true, -- shows a message with information about the refactor on success show_success_message = true, -- shows a message with information about the refactor on success
-- i.e. [Refactor] Inlined 3 variable occurrences -- i.e. [Refactor] Inlined 3 variable occurrences
}) })
+2 -2
View File
@@ -1,4 +1,4 @@
require("region-folding").setup({ require("region-folding").setup({
region_text = { start = "<think>", ending = "</think>" }, region_text = { start = "<think>", ending = "</think>" },
fold_indicator = "", fold_indicator = "",
}) })
+88
View File
@@ -0,0 +1,88 @@
return {
"folke/snacks.nvim",
priority = 1000,
lazy = false,
---@type snacks.Config
opts = {
bigfile = { enabled = true },
dashboard = { enabled = true },
explorer = { enabled = true },
indent = {
enabled = true,
scope = {
enabled = true,
underline = true,
},
chunk = {
enabled = false,
char = {
corner_top = "",
corner_bottom = "",
vertical = "",
arrow = "",
},
},
},
input = { enabled = true },
picker = {
enabled = true,
hidden = true,
ignored = true,
},
image = {
enabled = true,
formats = {
"png",
"jpg",
"jpeg",
"gif",
"bmp",
"webp",
"tiff",
"heic",
"avif",
"mp4",
"mov",
"avi",
"mkv",
"webm",
"pdf",
"icns",
},
doc = {
enabled = true,
inline = true,
float = true,
max_width = 80,
max_height = 80,
},
},
notifier = { enabled = true },
quickfile = { enabled = true },
scope = { enabled = true },
scroll = { enabled = true },
statuscolumn = { enabled = true },
words = { enabled = true },
terminal = {
enabled = true,
win = { style = "terminal" },
},
styles = {
terminal = {
keys = {
term_normal = {
"<c-q>",
function()
Snacks.terminal.toggle()
end,
mode = "t"
}
}
}
},
gitbrowse = {
enabled = true,
notify = false,
},
},
}
+5 -5
View File
@@ -1,7 +1,7 @@
require("telescope").setup ({ require("telescope").setup ({
pickers = { pickers = {
colorscheme = { colorscheme = {
enable_preview = true, enable_preview = true,
} }
} }
}) })
+10 -10
View File
@@ -1,15 +1,15 @@
local M = {} local i = {}
function M.foldexpr() function M.foldexpr()
local lnum = vim.v.lnum local lnum = vim.v.lnum
local line = vim.fn.getline( lnum ) local line = vim.fn.getline( lnum )
if line:find( "<think>", 1, true ) then if line:find( "<think>", 1, true ) then
return "a1" return "a1"
elseif line:find( "</think>", 1, true ) then elseif line:find( "</think>", 1, true ) then
return "s1" return "s1"
else else
return "=" return "="
end end
end end
return M return M
+6 -6
View File
@@ -1,8 +1,8 @@
-- Lua -- lua
require('onedarkpro').setup({ require('onedarkpro').setup({
highlights = { highlights = {
Comment = { italic = true }, Comment = { italic = true },
Directory = { bold = false }, Directory = { bold = false },
ErrorMsg = { italic = true }, ErrorMsg = { italic = true },
}, },
}) })
+19 -17
View File
@@ -1,19 +1,21 @@
require("tmux").setup({ require("tmux").setup({
copy_sync = { copy_sync = {
enable = true, enable = true,
redirect_to_clipboard = true, redirect_to_clipboard = true,
sync_clipboard = true, sync_clipboard = true,
sync_registers = true, sync_registers = true,
}, },
navigation = { navigation = {
cycle_navigation = true, cycle_navigation = true,
enable_default_keybindings = false, enable_default_keybindings = false,
}, },
resize = { resize = {
enable_default_keybindings = false, enable_default_keybindings = false,
}, resize_step_x = 5,
swap = { resize_step_y = 5,
cycle_navigation = true, },
enable_default_keybindings = false, swap = {
} cycle_navigation = false,
enable_default_keybindings = false,
}
}) })
+11 -10
View File
@@ -1,12 +1,13 @@
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
ensure_installed = "all", ensure_installed = "all",
sync_install = true, ignore_install = { "ipkg" },
auto_install = true, sync_install = true,
highlight = { auto_install = true,
enable = true, highlight = {
additional_vim_regex_highlighting = false, enable = true,
}, additional_vim_regex_highlighting = false,
indent = { },
enable = true, indent = {
}, enable = true,
},
} }
+17 -17
View File
@@ -1,19 +1,19 @@
require('undotree').setup({ require('undotree').setup({
float_diff = true, float_diff = true,
layout = "left_bottom", layout = "left_bottom",
position = "left", position = "left",
ignore_filetype = { 'undotree', 'undotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', 'tsplayground' }, ignore_filetype = { 'undotree', 'undotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', 'tsplayground' },
window = { window = {
winblend = 30, winblend = 30,
}, },
keymaps = { keymaps = {
['j'] = "move_next", ['j'] = "move_next",
['k'] = "move_prev", ['k'] = "move_prev",
['gj'] = "move2parent", ['gj'] = "move2parent",
['J'] = "move_change_next", ['J'] = "move_change_next",
['K'] = "move_change_prev", ['K'] = "move_change_prev",
['<cr>'] = "action_enter", ['<cr>'] = "action_enter",
['p'] = "enter_diffbuf", ['p'] = "enter_diffbuf",
['q'] = "quit", ['q'] = "quit",
}, },
}) })
+23 -5
View File
@@ -10,10 +10,20 @@ map("v", "<C-Up>", ":m '<-2<CR>gv=gv", { desc = "Move selected text up" })
map("v", "<C-Down>", ":m '>+1<CR>gv=gv", { desc = "Move selected text down" }) map("v", "<C-Down>", ":m '>+1<CR>gv=gv", { desc = "Move selected text down" })
-- Alt + Arrow Key to change buffer -- Alt + Arrow Key to change buffer
map("n", "<A-Left>", "<C-w>h", { desc = "Move to left split" }) -- map("n", "<A-Left>", "<C-w>h", { desc = "Move to left split" })
map("n", "<A-Down>", "<C-w>j", { desc = "Move to bottom split" }) -- map("n", "<A-Down>", "<C-w>j", { desc = "Move to bottom split" })
map("n", "<A-Up>", "<C-w>k", { desc = "Move to top split" }) -- map("n", "<A-Up>", "<C-w>k", { desc = "Move to top split" })
map("n", "<A-Right>", "<C-w>l", { desc = "Move to right split" }) -- map("n", "<A-Right>", "<C-w>l", { desc = "Move to right split" })
map("n", "<A-Left>", "<cmd>lua require('tmux').move_left()<CR>", { desc = "Move to left split" })
map("n", "<A-Down>", "<cmd>lua require('tmux').move_bottom()<CR>", { desc = "Move to bottom split" })
map("n", "<A-Up>", "<cmd>lua require('tmux').move_top()<CR>", { desc = "Move to top split" })
map("n", "<A-Right>", "<cmd>lua require('tmux').move_right()<CR>", { desc = "Move to right split" })
map("n", "<C-Left>", "<cmd>lua require('tmux').resize_left()<CR>", { desc = "Move to left split" })
map("n", "<C-Down>", "<cmd>lua require('tmux').resize_bottom()<CR>", { desc = "Move to bottom split" })
map("n", "<C-Up>", "<cmd>lua require('tmux').resize_top()<CR>", { desc = "Move to top split" })
map("n", "<C-Right>", "<cmd>lua require('tmux').resize_right()<CR>", { desc = "Move to right split" })
-- Copilot Chat buffer -- Copilot Chat buffer
map("n", "<A-c>", vim.cmd.CopilotChatToggle) map("n", "<A-c>", vim.cmd.CopilotChatToggle)
@@ -55,7 +65,15 @@ map("i", "<C-c>", "<Esc>")
map("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>"); map("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>");
map("n", "<leader><leader>", function() map("n", "<leader><leader>", function()
vim.cmd("so") vim.cmd("so")
end) end)
map("n", "<A-v>", "<cmd>ChatGPT<CR>") map("n", "<A-v>", "<cmd>ChatGPT<CR>")
map("n", "<leader>fm", "<cmd>TailwindConcealToggle<CR>", { desc = "Toggle Tailwind Conceal" })
-- Terminal
map("n", "<C-q>", function() Snacks.terminal.toggle() end, { desc = "Toggle Terminal" })
-- Gitbrowse
map("n", "<leader>gb", function() Snacks.gitbrowse.open() end )
+17
View File
@@ -0,0 +1,17 @@
local M = {}
function M.load_modules()
local modules_path = vim.fn.stdpath("config") .. "/lua/config/modules"
local modules = vim.fn.globpath(modules_path, "*.lua", false, true)
for _, module_file in ipairs(modules) do
local module_name = vim.fn.fnamemodify(module_file, ":t:r")
local ok, err = pcall(require, "config.modules." .. module_name)
if not ok then
vim.notify("Failed to load module: " .. module_name .. "\n" .. err, vim.log.levels.ERROR)
end
end
end
return M
+5 -6
View File
@@ -3,8 +3,12 @@ vim.opt.relativenumber = true
vim.opt.tabstop = 4 vim.opt.tabstop = 4
vim.opt.softtabstop = 4 vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4
vim.opt.expandtab = true vim.opt.expandtab = false
vim.opt.smartindent = false vim.opt.smartindent = false
vim.o.list = true
vim.opt.listchars = { tab = "··", trail = "·", nbsp = "_" }
vim.opt.wrap = true vim.opt.wrap = true
vim.opt.linebreak = true vim.opt.linebreak = true
vim.opt.swapfile = false vim.opt.swapfile = false
@@ -21,11 +25,6 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = "80" vim.opt.colorcolumn = "80"
vim.opt.textwidth = 80 vim.opt.textwidth = 80
vim.opt.formatoptions = "rqnj" vim.opt.formatoptions = "rqnj"
-- vim.opt.foldmethod = "expr"
-- vim.opt.foldexpr = "v:lua.require('config.testfold').foldexpr()"
-- vim.opt.foldenable = true
-- vim.opt.foldlevel = 0
-- vim.opt.foldlevelstart = 0
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions" vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
vim.o.clipboard = "unnamedplus" vim.o.clipboard = "unnamedplus"
vim.o.cursorline = true vim.o.cursorline = true
+281 -309
View File
@@ -1,311 +1,283 @@
return { return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-mini/mini.nvim",
config = function() version = false,
require("config.treesitter")
end, modules = function()
}, require("config.mini-modules")
{ end,
"sainnhe/edge", },
lazy = false, {
priority = 1000, "nvim-treesitter/nvim-treesitter",
config = function() config = function()
vim.g.edge_enable_italic = 1 require("config.treesitter")
vim.g.edge_style = "default" end,
vim.g.edge_menu_selection_background = "purple" },
end, {
}, "sainnhe/edge",
{ lazy = false,
"rmagatti/auto-session", priority = 1000,
config = function() config = function()
require("config.autosession") vim.g.edge_enable_italic = 1
end, vim.g.edge_style = "default"
}, vim.g.edge_menu_selection_background = "purple"
{ end,
"olimorris/onedarkpro.nvim", },
priority = 1000, {
config = function() "rmagatti/auto-session",
require("config.themelight") config = function()
end, require("config.autosession")
}, end,
{ },
"nvim-telescope/telescope.nvim", {
dependencies = { "olimorris/onedarkpro.nvim",
"nvim-lua/plenary.nvim", priority = 1000,
}, config = function()
config = function() require("config.themelight")
require("config.telescope") end,
end, },
}, {
{ "nvim-telescope/telescope.nvim",
"lambdalisue/vim-suda", dependencies = {
init = function() "nvim-lua/plenary.nvim",
vim.g.suda_smart_edit = 1 },
end, config = function()
}, require("config.telescope")
{ end,
"nvim-tree/nvim-web-devicons", },
}, {
{ "lambdalisue/vim-suda",
"akinsho/bufferline.nvim", init = function()
event = "VeryLazy", vim.g.suda_smart_edit = 1
config = function() end,
require("config.barbar") },
end, {
}, "nvim-tree/nvim-web-devicons",
{ },
"nvim-lualine/lualine.nvim", {
event = "VeryLazy", "akinsho/bufferline.nvim",
config = function () event = "VeryLazy",
if vim.env.TMUX then config = function()
vim.api.nvim_create_autocmd({ "FocusGained", "ColorScheme", "VimEnter" }, { require("config.barbar")
callback = function() end,
vim.defer_fn( function() },
vim.opt.laststatus = 0 {
end, 100) "nvim-lualine/lualine.nvim",
end, event = "VeryLazy",
}) config = function ()
vim.o.laststatus = 0 if vim.env.TMUX then
end vim.api.nvim_create_autocmd({ "FocusGained", "ColorScheme", "VimEnter" }, {
require("config.lualine") callback = function()
end, vim.defer_fn( function()
}, vim.opt.laststatus = 0
{ end, 100)
"mawkler/modicator.nvim", end,
config = function() })
require("config.modicator") vim.o.laststatus = 0
end end
}, require("config.lualine")
{ end,
"shinchu/lightline-gruvbox.vim", },
}, {
{ "mawkler/modicator.nvim",
"jiaoshijie/undotree", config = function()
config = function() require("config.modicator")
require("config.undotree") end
end, },
}, {
{ "shinchu/lightline-gruvbox.vim",
"hiphish/rainbow-delimiters.nvim", },
enabled = true, {
}, "jiaoshijie/undotree",
{ config = function()
"windwp/nvim-autopairs", require("config.undotree")
event = "InsertEnter", end,
config = function() },
require("config.autopairs") {
end, "hiphish/rainbow-delimiters.nvim",
}, enabled = true,
{ },
"tpope/vim-fugitive", {
}, "windwp/nvim-autopairs",
{ event = "InsertEnter",
"rcarriga/nvim-notify", config = function()
config = function() require("config.autopairs")
require "config.notify" end,
end, },
}, {
{ "tpope/vim-fugitive",
"zbirenbaum/copilot.lua", },
lazy = true, {
cmd = "Copilot", "rcarriga/nvim-notify",
event = "InsertEnter", config = function()
config = function() require "config.notify"
require "config.copilot" end,
end, },
}, {
{ "zbirenbaum/copilot.lua",
"CopilotC-Nvim/CopilotChat.nvim", lazy = true,
dependencies = { cmd = "Copilot",
{ "zbirenbaum/copilot.lua" }, event = "InsertEnter",
{ "nvim-lua/plenary.nvim", branch = "master" }, config = function()
}, require "config.copilot"
build = "make tiktoken", end,
config = function() },
require "config.copilotchat" {
end, "CopilotC-Nvim/CopilotChat.nvim",
}, dependencies = {
{ { "zbirenbaum/copilot.lua" },
"mfussenegger/nvim-dap", { "nvim-lua/plenary.nvim", branch = "master" },
config = function() },
require("config.dapconf") build = "make tiktoken",
end, config = function()
}, require "config.copilotchat"
{ end,
"folke/snacks.nvim", },
priority = 1000, {
lazy = false, "mfussenegger/nvim-dap",
---@type snacks.Config config = function()
opts = { require("config.dapconf")
bigfile = { enabled = true }, end,
dashboard = { enabled = true }, },
explorer = { enabled = true }, {
indent = { require("config.snacks")
enabled = true, },
scope = { {
enabled = false, "notken12/base46-colors",
underline = true, },
animate = { -- {
enabled = true, -- "mason-org/mason-lspconfig.nvim",
fps = 144, -- opts = {},
easing = "inExpo", -- dependencies = {
duration = 20, -- { "mason-org/mason.nvim", opts = {} },
}, -- "neovim/nvim-lspconfig",
}, -- },
chunk = { -- },
enabled = true, {
char = { "folke/lazydev.nvim",
corner_top = "", ft = "lua",
corner_bottom = "", opts = function()
vertical = "", require("config.lazydev")
arrow = "", end,
}, },
}, {
}, "neovim/nvim-lspconfig",
input = { enabled = true }, enabled = true,
picker = { dependencies = {
enabled = true, "williamboman/mason.nvim",
hidden = true, "williamboman/mason-lspconfig.nvim",
ignored = true, "hrsh7th/cmp-nvim-lsp",
}, "hrsh7th/cmp-buffer",
notifier = { enabled = true }, "hrsh7th/cmp-path",
quickfile = { enabled = true }, "hrsh7th/cmp-cmdline",
scope = { enabled = true }, "hrsh7th/nvim-cmp",
scroll = { enabled = false }, "L3MON4D3/LuaSnip",
statuscolumn = { enabled = true }, "saadparwaiz1/cmp_luasnip",
words = { enabled = true }, "j-hui/fidget.nvim",
}, },
}, config = function()
{ require("config.lspconfig")
"notken12/base46-colors", end,
}, },
-- { {
-- "mason-org/mason-lspconfig.nvim", "smolck/command-completion.nvim",
-- opts = {}, opts = {
-- dependencies = { border = nil,
-- { "mason-org/mason.nvim", opts = {} }, highlight_selection = true,
-- "neovim/nvim-lspconfig", use_matchfuzzy = true,
-- }, tab_completion = true,
-- }, },
{ },
"folke/lazydev.nvim", {
ft = "lua", "andweeb/presence.nvim",
opts = function() },
require("config.lazydev") {
end, "mfussenegger/nvim-jdtls",
}, },
{ {
"neovim/nvim-lspconfig", "ThePrimeagen/harpoon",
enabled = true, branch = "harpoon2",
dependencies = { dependencies = {
"williamboman/mason.nvim", "nvim-lua/plenary.nvim",
"williamboman/mason-lspconfig.nvim", },
"hrsh7th/cmp-nvim-lsp", config = function()
"hrsh7th/cmp-buffer", require("config.harpoon")
"hrsh7th/cmp-path", end,
"hrsh7th/cmp-cmdline", },
"hrsh7th/nvim-cmp", {
"L3MON4D3/LuaSnip", "catgoose/nvim-colorizer.lua",
"saadparwaiz1/cmp_luasnip", config = function()
"j-hui/fidget.nvim", require("config.colorizer")
}, end,
config = function() },
require("config.lspconfig") {
end, "ziglang/zig.vim",
}, },
{ {
"smolck/command-completion.nvim", "mg979/vim-visual-multi",
opts = { branch = "master",
border = nil, },
highlight_selection = true, {
use_matchfuzzy = true, "elkowar/yuck.vim",
tab_completion = true, },
}, {
}, "f3fora/nvim-texlabconfig",
{ config = function()
"andweeb/presence.nvim", require("config.texlab")
}, end,
{ build = "go build",
"mfussenegger/nvim-jdtls", },
}, {
{ "lancewilhelm/horizon-extended.nvim",
"ThePrimeagen/harpoon", },
branch = "harpoon2", {
dependencies = { "vimpostor/vim-tpipeline",
"nvim-lua/plenary.nvim", },
}, {
config = function() "yazeed1s/minimal.nvim",
require("config.harpoon") config = function()
end, vim.g.minimal_italic_comments = true
}, end,
{ },
"catgoose/nvim-colorizer.lua", {
config = function() "ThePrimeagen/refactoring.nvim",
require("config.colorizer") config = function()
end, require("config.refactoring")
}, end,
{ },
"ziglang/zig.vim", {
}, "Yazeed1s/minimal.nvim",
{ config = function()
"mg979/vim-visual-multi", vim.g.minimal_italic_comments = true
branch = "master", vim.g.minimal_italic_functions = true
}, end,
{ },
"elkowar/yuck.vim", {
}, "propet/colorscheme-persist.nvim",
{ dependencies = {
"f3fora/nvim-texlabconfig", "nvim-telescope/telescope.nvim",
config = function() },
require("config.texlab") lazy = false,
end, config = true,
build = "go build", keys = {
}, {
{ "<leader>sp",
"lancewilhelm/horizon-extended.nvim", function()
}, require("colorscheme-persist").picker()
{ end,
"vimpostor/vim-tpipeline", mode = "n",
}, },
{ },
"yazeed1s/minimal.nvim", opts = {
config = function() picker_opts = require("telescope.themes").get_dropdown({
vim.g.minimal_italic_comments = true enable_preview = true,
end, }),
}, }
{ },
"ThePrimeagen/refactoring.nvim", {
config = function() "aserowy/tmux.nvim",
require("config.refactoring") config = function()
end, require("config.tmux")
}, end,
{ },
"Yazeed1s/minimal.nvim",
config = function()
vim.g.minimal_italic_comments = true
vim.g.minimal_italic_functions = true
end,
},
{
"propet/colorscheme-persist.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
},
lazy = false,
config = true,
keys = {
{
"<leader>sp",
function()
require("colorscheme-persist").picker()
end,
mode = "n",
},
},
opts = {
picker_opts = require("telescope.themes").get_dropdown({
enable_preview = true,
}),
}
}
} }