mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Compare commits
2 Commits
168bd977df
...
517cef14ea
| Author | SHA1 | Date | |
|---|---|---|---|
| 517cef14ea | |||
| f7194a919e |
170
.editorconfig
Normal file
170
.editorconfig
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
# see https://github.com/CppCXY/EmmyLuaCodeStyle
|
||||||
|
[*.lua]
|
||||||
|
# [basic]
|
||||||
|
|
||||||
|
# optional space/tab
|
||||||
|
indent_style = tab
|
||||||
|
# if indent_style is space, this is valid
|
||||||
|
indent_size = 4
|
||||||
|
# if indent_style is tab, this is valid
|
||||||
|
tab_width = 4
|
||||||
|
# none/single/double
|
||||||
|
quote_style = double
|
||||||
|
|
||||||
|
continuation_indent = 4
|
||||||
|
## extend option
|
||||||
|
# continuation_indent.before_block = 4
|
||||||
|
# continuation_indent.in_expr = 4
|
||||||
|
# continuation_indent.in_table = 4
|
||||||
|
|
||||||
|
# this mean utf8 length , if this is 'unset' then the line width is no longer checked
|
||||||
|
# this option decides when to chopdown the code
|
||||||
|
max_line_length = 120
|
||||||
|
|
||||||
|
# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf
|
||||||
|
# in neovim the value 'auto' is not a valid option, please use 'unset'
|
||||||
|
end_of_line = lf
|
||||||
|
|
||||||
|
# none/ comma / semicolon / only_kv_colon
|
||||||
|
table_separator_style = comma
|
||||||
|
|
||||||
|
#optional keep/never/always/smart
|
||||||
|
trailing_table_separator = smart
|
||||||
|
|
||||||
|
# keep/remove/remove_table_only/remove_string_only
|
||||||
|
call_arg_parentheses = keep
|
||||||
|
|
||||||
|
detect_end_of_line = false
|
||||||
|
|
||||||
|
# this will check text end with new line
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# [space]
|
||||||
|
space_around_table_field_list = true
|
||||||
|
|
||||||
|
space_before_attribute = true
|
||||||
|
|
||||||
|
space_before_function_open_parenthesis = false
|
||||||
|
|
||||||
|
space_before_function_call_open_parenthesis = false
|
||||||
|
|
||||||
|
space_before_closure_open_parenthesis = false
|
||||||
|
|
||||||
|
# optional always/only_string/only_table/none
|
||||||
|
# or true/false
|
||||||
|
space_before_function_call_single_arg = always
|
||||||
|
## extend option
|
||||||
|
## always/keep/none
|
||||||
|
# space_before_function_call_single_arg.table = always
|
||||||
|
## always/keep/none
|
||||||
|
# space_before_function_call_single_arg.string = always
|
||||||
|
|
||||||
|
space_before_open_square_bracket = false
|
||||||
|
|
||||||
|
space_inside_function_call_parentheses = false
|
||||||
|
|
||||||
|
space_inside_function_param_list_parentheses = false
|
||||||
|
|
||||||
|
space_inside_square_brackets = false
|
||||||
|
|
||||||
|
# like t[#t+1] = 1
|
||||||
|
space_around_table_append_operator = false
|
||||||
|
|
||||||
|
ignore_spaces_inside_function_call = false
|
||||||
|
|
||||||
|
# detail number or 'keep'
|
||||||
|
space_before_inline_comment = 1
|
||||||
|
|
||||||
|
# convert '---' to '--- ' or '--' to '-- '
|
||||||
|
space_after_comment_dash = false
|
||||||
|
|
||||||
|
# [operator space]
|
||||||
|
space_around_math_operator = true
|
||||||
|
# space_around_math_operator.exponent = false
|
||||||
|
|
||||||
|
space_after_comma = true
|
||||||
|
|
||||||
|
space_after_comma_in_for_statement = true
|
||||||
|
|
||||||
|
# true/false or none/always/no_space_asym
|
||||||
|
space_around_concat_operator = true
|
||||||
|
|
||||||
|
space_around_logical_operator = true
|
||||||
|
|
||||||
|
# true/false or none/always/no_space_asym
|
||||||
|
space_around_assign_operator = true
|
||||||
|
|
||||||
|
# [align]
|
||||||
|
|
||||||
|
align_call_args = false
|
||||||
|
|
||||||
|
align_function_params = true
|
||||||
|
|
||||||
|
# true/false or always
|
||||||
|
align_continuous_assign_statement = true
|
||||||
|
|
||||||
|
align_continuous_rect_table_field = true
|
||||||
|
|
||||||
|
align_continuous_line_space = 2
|
||||||
|
|
||||||
|
align_if_branch = false
|
||||||
|
|
||||||
|
# option none / always / contain_curly/
|
||||||
|
align_array_table = always
|
||||||
|
|
||||||
|
align_continuous_similar_call_args = false
|
||||||
|
|
||||||
|
align_continuous_inline_comment = true
|
||||||
|
# option none / always / only_call_stmt
|
||||||
|
align_chain_expr = none
|
||||||
|
|
||||||
|
# [indent]
|
||||||
|
|
||||||
|
never_indent_before_if_condition = false
|
||||||
|
|
||||||
|
never_indent_comment_on_if_branch = false
|
||||||
|
|
||||||
|
keep_indents_on_empty_lines = false
|
||||||
|
|
||||||
|
allow_non_indented_comments = false
|
||||||
|
# [line space]
|
||||||
|
|
||||||
|
# The following configuration supports four expressions
|
||||||
|
# keep
|
||||||
|
# fixed(n)
|
||||||
|
# min(n)
|
||||||
|
# max(n)
|
||||||
|
# for eg. min(2)
|
||||||
|
|
||||||
|
line_space_after_if_statement = keep
|
||||||
|
|
||||||
|
line_space_after_do_statement = keep
|
||||||
|
|
||||||
|
line_space_after_while_statement = keep
|
||||||
|
|
||||||
|
line_space_after_repeat_statement = keep
|
||||||
|
|
||||||
|
line_space_after_for_statement = keep
|
||||||
|
|
||||||
|
line_space_after_local_or_assign_statement = keep
|
||||||
|
|
||||||
|
line_space_after_function_statement = fixed(2)
|
||||||
|
|
||||||
|
line_space_after_expression_statement = keep
|
||||||
|
|
||||||
|
line_space_after_comment = keep
|
||||||
|
|
||||||
|
line_space_around_block = fixed(1)
|
||||||
|
# [line break]
|
||||||
|
break_all_list_when_line_exceed = true
|
||||||
|
|
||||||
|
auto_collapse_lines = false
|
||||||
|
|
||||||
|
break_before_braces = false
|
||||||
|
|
||||||
|
# [preference]
|
||||||
|
ignore_space_after_colon = false
|
||||||
|
|
||||||
|
remove_call_expression_list_finish_comma = false
|
||||||
|
# keep / always / same_line / replace_with_newline / never
|
||||||
|
end_statement_with_semicolon = keep
|
||||||
@ -1,61 +0,0 @@
|
|||||||
if not pcall(require, "luasnip") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
|
|
||||||
local shared = require("config.snips")
|
|
||||||
local same = shared.same
|
|
||||||
local year = shared.year
|
|
||||||
local date = shared.date
|
|
||||||
|
|
||||||
ls.add_snippets("c", {
|
|
||||||
s(
|
|
||||||
"auth",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
// Copyright {}
|
|
||||||
// Author - Kristiāns Francis Cagulis, kc22015
|
|
||||||
// {}
|
|
||||||
// Created: {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
year(),
|
|
||||||
i(1),
|
|
||||||
date(),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"fn",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
// {};
|
|
||||||
// Funkcija {}({}) -
|
|
||||||
// {}
|
|
||||||
{} {{
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
same(1),
|
|
||||||
f(function(function_name)
|
|
||||||
if not function_name[1][1] then
|
|
||||||
function_name[1][1] = ""
|
|
||||||
end
|
|
||||||
local words = {}
|
|
||||||
for word in function_name[1][1]:gmatch("%w+") do
|
|
||||||
table.insert(words, word)
|
|
||||||
end
|
|
||||||
return words[2] or ""
|
|
||||||
end, { 1 }),
|
|
||||||
i(2),
|
|
||||||
i(0),
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
})
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
if not pcall(require, "luasnip") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
|
|
||||||
local shared = require("config.snips")
|
|
||||||
local same = shared.same
|
|
||||||
|
|
||||||
local cmake_version = function()
|
|
||||||
local version = "3.27.4"
|
|
||||||
-- vim.fn.jobstart("cmake --version | head -n 1 | rg -o '\\d+\\.\\d+\\.\\d+'", {})
|
|
||||||
return version
|
|
||||||
end
|
|
||||||
|
|
||||||
ls.add_snippets("cmake", {
|
|
||||||
s(
|
|
||||||
"lib",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
cmake_minimum_required(VERSION {})
|
|
||||||
project({})
|
|
||||||
add_library(${{PROJECT_NAME}} src/{}.cc)
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
cmake_version(),
|
|
||||||
i(1),
|
|
||||||
same(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"bin",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
cmake_minimum_required(VERSION {})
|
|
||||||
project({})
|
|
||||||
add_executable(${{PROJECT_NAME}} src/main.cc)
|
|
||||||
target_link_directories(${{PROJECT_NAME}} PRIVATE ${{CMAKE_SOURCE_DIR}}/include/{}/target/build/)
|
|
||||||
target_link_libraries(${{PROJECT_NAME}} {})
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
cmake_version(),
|
|
||||||
i(1),
|
|
||||||
i(2),
|
|
||||||
same(2),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
})
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
if not pcall(require, "luasnip") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
|
|
||||||
local shared = require("config.snips")
|
|
||||||
local same = shared.same
|
|
||||||
local year = shared.year
|
|
||||||
local date = shared.date
|
|
||||||
|
|
||||||
ls.add_snippets("cpp", {
|
|
||||||
s(
|
|
||||||
"auth",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
// Copyright {}
|
|
||||||
// Author - Kristiāns Francis Cagulis, kc22015
|
|
||||||
// {}
|
|
||||||
// Created: {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
year(),
|
|
||||||
i(1),
|
|
||||||
date(),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"fn",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
// {};
|
|
||||||
// Funkcija {}({}) -
|
|
||||||
// {}
|
|
||||||
{} {{
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
same(1),
|
|
||||||
f(function(function_name)
|
|
||||||
if not function_name[1][1] then
|
|
||||||
function_name[1][1] = ""
|
|
||||||
end
|
|
||||||
local words = {}
|
|
||||||
for word in function_name[1][1]:gmatch("%w+") do
|
|
||||||
table.insert(words, word)
|
|
||||||
end
|
|
||||||
return words[2] or ""
|
|
||||||
end, { 1 }),
|
|
||||||
i(2),
|
|
||||||
i(0),
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
})
|
|
||||||
@ -1,145 +0,0 @@
|
|||||||
if not pcall(require, "luasnip") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local shared = require("config.snips")
|
|
||||||
local same = shared.same
|
|
||||||
|
|
||||||
ls.add_snippets("rust", {
|
|
||||||
s(
|
|
||||||
"modtest",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {{
|
|
||||||
use super::*;
|
|
||||||
{}
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"tmain",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[tokio::main]
|
|
||||||
async fn main() -> Result<()> {{
|
|
||||||
Ok(())
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"dead",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[allow(dead_code)]
|
|
||||||
]],
|
|
||||||
{}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"component",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[derive(Debug, Reflect, Component)]
|
|
||||||
#[reflect(Component)]
|
|
||||||
struct {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"event",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[derive(Debug, Event)]
|
|
||||||
struct {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"resource",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[derive(Debug, Default, Reflect, Resource)]
|
|
||||||
#[reflect(Resource)]
|
|
||||||
struct {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"schedule",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, ScheduleLabel)]
|
|
||||||
struct {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"states",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default, States)]
|
|
||||||
enum {} {{
|
|
||||||
#[default]
|
|
||||||
{}
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
i(2),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"systemset",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, SystemSet)]
|
|
||||||
enum {} {{
|
|
||||||
{}
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
i(2),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
s(
|
|
||||||
"plugin",
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
use bevy::prelude::*;
|
|
||||||
|
|
||||||
pub(super) fn plugin(app: &mut App) {{
|
|
||||||
{}
|
|
||||||
}}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
})
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
if not pcall(require, "luasnip") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
|
|
||||||
ls.add_snippets("typst", {})
|
|
||||||
@ -4,25 +4,24 @@
|
|||||||
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
|
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
|
||||||
"blink-cmp-git": { "branch": "master", "commit": "226b269a50b5ece2ed95933b8d62f103f5d6a05d" },
|
"blink-cmp-git": { "branch": "master", "commit": "226b269a50b5ece2ed95933b8d62f103f5d6a05d" },
|
||||||
"blink-emoji.nvim": { "branch": "master", "commit": "f22ce8cac02a6ece05368220f1e38bd34fe376f9" },
|
"blink-emoji.nvim": { "branch": "master", "commit": "f22ce8cac02a6ece05368220f1e38bd34fe376f9" },
|
||||||
"blink-ripgrep.nvim": { "branch": "main", "commit": "932a8e568b2dc4f42268cfcc885ff2d701dd8bb7" },
|
"blink-ripgrep.nvim": { "branch": "main", "commit": "8dd8c8f19fde31b6aa861476efd452aa306e82ba" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
|
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
|
||||||
"blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" },
|
"blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" },
|
||||||
"catppuccin.nvim": { "branch": "main", "commit": "c89184526212e04feffbddda9d06b041a8fca416" },
|
"catppuccin.nvim": { "branch": "main", "commit": "af58927c55c9f3272c940ff02b3cee94a1249f26" },
|
||||||
"ccc.nvim": { "branch": "main", "commit": "9d1a256e006decc574789dfc7d628ca11644d4c2" },
|
"ccc.nvim": { "branch": "main", "commit": "9d1a256e006decc574789dfc7d628ca11644d4c2" },
|
||||||
"cellular-automaton.nvim": { "branch": "main", "commit": "1606e9d5d04ff254023c3f3c62842d065708d6d3" },
|
"cellular-automaton.nvim": { "branch": "main", "commit": "1606e9d5d04ff254023c3f3c62842d065708d6d3" },
|
||||||
"cheatsheet.nvim": { "branch": "master", "commit": "8ee4d76b6f902c4017dc28eddd79d925dfc55066" },
|
|
||||||
"cloak.nvim": { "branch": "main", "commit": "648aca6d33ec011dc3166e7af3b38820d01a71e4" },
|
"cloak.nvim": { "branch": "main", "commit": "648aca6d33ec011dc3166e7af3b38820d01a71e4" },
|
||||||
"cmake-tools.nvim": { "branch": "master", "commit": "88e07c6bff838a5bda2f461e9c1122b79ff0829f" },
|
"cmake-tools.nvim": { "branch": "master", "commit": "88e07c6bff838a5bda2f461e9c1122b79ff0829f" },
|
||||||
"cmp-dbee": { "branch": "main", "commit": "1650f67b9bf43c029fc37570665ca895a33cdf5a" },
|
"cmp-dbee": { "branch": "main", "commit": "1650f67b9bf43c029fc37570665ca895a33cdf5a" },
|
||||||
"colorful-menu.nvim": { "branch": "master", "commit": "d5b97d247528be308b6b69d96b5950a30e470f3d" },
|
"colorful-menu.nvim": { "branch": "master", "commit": "d5b97d247528be308b6b69d96b5950a30e470f3d" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "9d6f881a4047a51c7709223dcf24e967633c6523" },
|
"conform.nvim": { "branch": "master", "commit": "fbcb4fa7f34bfea9be702ffff481a8e336ebf6ed" },
|
||||||
"crates.nvim": { "branch": "main", "commit": "afcd1cc3eeceb5783676fc8464389b9216a29d05" },
|
"crates.nvim": { "branch": "main", "commit": "afcd1cc3eeceb5783676fc8464389b9216a29d05" },
|
||||||
"cratesearch.nvim": { "branch": "master", "commit": "9d09625d017f6b2e116503f935bc6862961313fa" },
|
"cratesearch.nvim": { "branch": "master", "commit": "9d09625d017f6b2e116503f935bc6862961313fa" },
|
||||||
"css-vars.nvim": { "branch": "main", "commit": "0615782c320f729b04d9c51a8a61fb498ee4234a" },
|
"css-vars.nvim": { "branch": "main", "commit": "0615782c320f729b04d9c51a8a61fb498ee4234a" },
|
||||||
"csvview.nvim": { "branch": "main", "commit": "bbab4c2f808fd8e11ec8dfdd128251aadba566a1" },
|
"csvview.nvim": { "branch": "main", "commit": "bbab4c2f808fd8e11ec8dfdd128251aadba566a1" },
|
||||||
"darkplus.nvim": { "branch": "master", "commit": "c7fff5ce62406121fc6c9e4746f118b2b2499c4c" },
|
"darkplus.nvim": { "branch": "master", "commit": "c7fff5ce62406121fc6c9e4746f118b2b2499c4c" },
|
||||||
"darkvoid.nvim": { "branch": "master", "commit": "45be993a5617e05811b6b293c05e6aded7003cc9" },
|
"darkvoid.nvim": { "branch": "master", "commit": "45be993a5617e05811b6b293c05e6aded7003cc9" },
|
||||||
"demicolon.nvim": { "branch": "main", "commit": "be0c41fd1ce6a33f567d88278a700fcb417db9c3" },
|
"demicolon.nvim": { "branch": "main", "commit": "36f9ddaf8d45f84644344cb057a115c425bcb5cc" },
|
||||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||||
"dracula.nvim": { "branch": "main", "commit": "041d923368d540a1e438989ce8f915628081a56a" },
|
"dracula.nvim": { "branch": "main", "commit": "041d923368d540a1e438989ce8f915628081a56a" },
|
||||||
"flow.nvim": { "branch": "main", "commit": "095c54bbaf55473418dd09d61d3167891684cf85" },
|
"flow.nvim": { "branch": "main", "commit": "095c54bbaf55473418dd09d61d3167891684cf85" },
|
||||||
@ -31,50 +30,51 @@
|
|||||||
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
||||||
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
|
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
|
||||||
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
|
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
|
||||||
"http-codes.nvim": { "branch": "main", "commit": "77aea3a73d5f3134089941ebf6d4172af34a4a8d" },
|
"hererocks": { "branch": "master", "commit": "160228946bed9998f5e3b168bd0b66ba2690f8f3" },
|
||||||
|
"http-codes.nvim": { "branch": "feature/snacks", "commit": "4b4886c5091a125900a6e319bddd10bc34747bf1" },
|
||||||
|
"image.nvim": { "branch": "master", "commit": "446a8a5cc7a3eae3185ee0c697732c32a5547a0b" },
|
||||||
"img-clip.nvim": { "branch": "main", "commit": "f33f3af9ba50f99d70f8fcb1a8575750ada4ea4a" },
|
"img-clip.nvim": { "branch": "main", "commit": "f33f3af9ba50f99d70f8fcb1a8575750ada4ea4a" },
|
||||||
"inlay-hint.nvim": { "branch": "main", "commit": "ee8aa9806d1e160a2bc08b78ae60568fb6d9dbce" },
|
"inlay-hint.nvim": { "branch": "main", "commit": "ee8aa9806d1e160a2bc08b78ae60568fb6d9dbce" },
|
||||||
"inlay-hints.nvim": { "branch": "master", "commit": "990e1f96699b8293b6665b9e73b16128c66684e6" },
|
"inlay-hints.nvim": { "branch": "master", "commit": "990e1f96699b8293b6665b9e73b16128c66684e6" },
|
||||||
"jupynium.nvim": { "branch": "master", "commit": "144ab6e46d2b42264c16a4f3c780d88feb0a89e8" },
|
"jupynium.nvim": { "branch": "master", "commit": "144ab6e46d2b42264c16a4f3c780d88feb0a89e8" },
|
||||||
"kanagawa.nvim": { "branch": "master", "commit": "27f1e119f3a7e6d11d435a59e3262e6affda1f83" },
|
"kanagawa.nvim": { "branch": "master", "commit": "27f1e119f3a7e6d11d435a59e3262e6affda1f83" },
|
||||||
"kulala.nvim": { "branch": "main", "commit": "0d50e9ce5c992fe507743d8641b36125e668aad4" },
|
"kulala.nvim": { "branch": "main", "commit": "0d50e9ce5c992fe507743d8641b36125e668aad4" },
|
||||||
"lackluster.nvim": { "branch": "main", "commit": "b247a6f51cb43e49f3f753f4a59553b698bf5438" },
|
"lackluster.nvim": { "branch": "main", "commit": "70dd682e564784893b984deb51dd5ddd263c8cc7" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "59334064f8604ca073791c25dcc5c9698865406e" },
|
"lazy.nvim": { "branch": "main", "commit": "59334064f8604ca073791c25dcc5c9698865406e" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "258d2a5ef4a3e3d6d9ba9da72c9725c53e9afcbd" },
|
"lazydev.nvim": { "branch": "main", "commit": "258d2a5ef4a3e3d6d9ba9da72c9725c53e9afcbd" },
|
||||||
"lsp-progress.nvim": { "branch": "main", "commit": "ae52979ad412371ea6dc39ff70c8dfc681fb42b8" },
|
"lsp-progress.nvim": { "branch": "main", "commit": "ae52979ad412371ea6dc39ff70c8dfc681fb42b8" },
|
||||||
"lualine-harpoon.nvim": { "branch": "main", "commit": "9ee90e6309c4219d6a06b771b53db6a59c8d32fa" },
|
"lualine-harpoon.nvim": { "branch": "main", "commit": "9ee90e6309c4219d6a06b771b53db6a59c8d32fa" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
||||||
"markdown.nvim": { "branch": "master", "commit": "34bb88989ace6c678abd947662668994219996e0" },
|
"markdown.nvim": { "branch": "master", "commit": "34bb88989ace6c678abd947662668994219996e0" },
|
||||||
"markview.nvim": { "branch": "main", "commit": "c09958c78745e0d6374c9fe010b2432b713ccb83" },
|
"markview.nvim": { "branch": "main", "commit": "8c6d294d3d6a59f892c131d76f699b0696a25467" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "155eac5d8609a2f110041f8ac3491664cc126354" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "6bdb14f230de0904229ec367b410fb817e59b072" },
|
||||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "86389a3dd687cfaa647b6f44731e492970034baa" },
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "86389a3dd687cfaa647b6f44731e492970034baa" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||||
"melange.nvim": { "branch": "master", "commit": "ce42f6b629beeaa00591ba73a77d3eeac4cf28ce" },
|
"melange.nvim": { "branch": "master", "commit": "ce42f6b629beeaa00591ba73a77d3eeac4cf28ce" },
|
||||||
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" },
|
"mini.nvim": { "branch": "main", "commit": "94cae4660a8b2d95dbbd56e1fbc6fcfa2716d152" },
|
||||||
"neoconf.nvim": { "branch": "main", "commit": "4debd74d740a8e7949eee7d1103642bdf276c60d" },
|
"neoconf.nvim": { "branch": "main", "commit": "ca4179bc3f10cc8bd2eff29acbc270a47bbcd298" },
|
||||||
"neocord": { "branch": "main", "commit": "2ebf3792a8100376bb65fd66d5dbf60f50af7529" },
|
"neocord": { "branch": "main", "commit": "2ebf3792a8100376bb65fd66d5dbf60f50af7529" },
|
||||||
"neogen": { "branch": "main", "commit": "b2e78708876f4da507839726816010a68e33fec8" },
|
"neogen": { "branch": "main", "commit": "b2e78708876f4da507839726816010a68e33fec8" },
|
||||||
"neogit": { "branch": "master", "commit": "e106a39a8a37a9420f374545c876f8b52baf1c80" },
|
"neogit": { "branch": "master", "commit": "e106a39a8a37a9420f374545c876f8b52baf1c80" },
|
||||||
"neorg": { "branch": "main", "commit": "e206c9642f4a115cd836e76c98ef785623d335bc" },
|
"neorg": { "branch": "main", "commit": "e206c9642f4a115cd836e76c98ef785623d335bc" },
|
||||||
"neorg-telescope": { "branch": "main", "commit": "7fb6ca6a632c3c095601d379a664c0c1f802dc6c" },
|
|
||||||
"neotest": { "branch": "master", "commit": "2cf3544fb55cdd428a9a1b7154aea9c9823426e8" },
|
"neotest": { "branch": "master", "commit": "2cf3544fb55cdd428a9a1b7154aea9c9823426e8" },
|
||||||
"neotest-gtest": { "branch": "main", "commit": "b66f1d33cbf3b37b9803e6bc7ef47ac60eba86b1" },
|
"neotest-gtest": { "branch": "main", "commit": "b66f1d33cbf3b37b9803e6bc7ef47ac60eba86b1" },
|
||||||
"neotest-python": { "branch": "master", "commit": "7cab6e2ecc260bf61b97ca147574a470bd880cbd" },
|
"neotest-python": { "branch": "master", "commit": "7cab6e2ecc260bf61b97ca147574a470bd880cbd" },
|
||||||
"neotest-vim-test": { "branch": "master", "commit": "75c4228882ae4883b11bfce9b8383e637eb44192" },
|
"neotest-vim-test": { "branch": "master", "commit": "75c4228882ae4883b11bfce9b8383e637eb44192" },
|
||||||
"nightfly.nvim": { "branch": "master", "commit": "5f88609dd9c3883b50a2728537c55afd5544f466" },
|
"nightfly.nvim": { "branch": "master", "commit": "502136cc4ec2eb94b054a30d583706f1b516c52b" },
|
||||||
"nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" },
|
"nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
|
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "51cf7c995ed1eb6642aecf19067ee634fa1b6ba2" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "51cf7c995ed1eb6642aecf19067ee634fa1b6ba2" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "7367cec8e8f7a0b1e4566af9a7ef5959d11206a7" },
|
"nvim-dap": { "branch": "master", "commit": "881f7dc17c0b4204a1d844732f95539575350e5b" },
|
||||||
"nvim-dap-python": { "branch": "master", "commit": "bfe572e4458e0ac876b9539a1e9f301c72db8ea0" },
|
"nvim-dap-python": { "branch": "master", "commit": "bfe572e4458e0ac876b9539a1e9f301c72db8ea0" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
||||||
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
|
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
|
||||||
"nvim-dbee": { "branch": "master", "commit": "dda517694889a5d238d7aa407403984da9f80cc0" },
|
"nvim-dbee": { "branch": "master", "commit": "dda517694889a5d238d7aa407403984da9f80cc0" },
|
||||||
"nvim-java": { "branch": "main", "commit": "3d56b7461facb42f135e25b2636bf220a7f0ed42" },
|
"nvim-java": { "branch": "main", "commit": "3d56b7461facb42f135e25b2636bf220a7f0ed42" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "335a6044be16d7701001059cba9baa36fbeef422" },
|
"nvim-lint": { "branch": "master", "commit": "9da1fb942dd0668d5182f9c8dee801b9c190e2bb" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "b8c3630ce37dfbe51910b68785a71620b072c41a" },
|
"nvim-lspconfig": { "branch": "master", "commit": "e688b486fe9291f151eae7e5c0b5a5c4ef980847" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
"nvim-silicon": { "branch": "main", "commit": "7f66bda8f60c97a5bf4b37e5b8acb0e829ae3c32" },
|
"nvim-silicon": { "branch": "main", "commit": "7f66bda8f60c97a5bf4b37e5b8acb0e829ae3c32" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
@ -82,7 +82,7 @@
|
|||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
||||||
"nvim-ufo": { "branch": "main", "commit": "d31e2a9fd572a25a4d5011776677223a8ccb7e35" },
|
"nvim-ufo": { "branch": "main", "commit": "72d54c31079d38d8dfc5456131b1d0fb5c0264b0" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
||||||
"obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" },
|
"obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" },
|
||||||
"oil-git.nvim": { "branch": "main", "commit": "d1f27a5982df35b70fb842aa6bbfac10735c7265" },
|
"oil-git.nvim": { "branch": "main", "commit": "d1f27a5982df35b70fb842aa6bbfac10735c7265" },
|
||||||
@ -92,30 +92,15 @@
|
|||||||
"otter.nvim": { "branch": "main", "commit": "c44d645f03ae96e2e3cdc37f92ecfa93a534b736" },
|
"otter.nvim": { "branch": "main", "commit": "c44d645f03ae96e2e3cdc37f92ecfa93a534b736" },
|
||||||
"persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
|
"persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
|
|
||||||
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
|
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
|
||||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "3277ad5f96eb03c9d618c88e24f683e4364e578c" },
|
"rainbow-delimiters.nvim": { "branch": "master", "commit": "3277ad5f96eb03c9d618c88e24f683e4364e578c" },
|
||||||
"rainbow_csv.nvim": { "branch": "main", "commit": "26de78d8324f7ac6a3e478319d1eb1f17123eb5b" },
|
"rainbow_csv.nvim": { "branch": "main", "commit": "26de78d8324f7ac6a3e478319d1eb1f17123eb5b" },
|
||||||
"remote-sshfs.nvim": { "branch": "main", "commit": "45502b3892774811153aeab5f7f9b0033c82005c" },
|
|
||||||
"rose-pine.nvim": { "branch": "main", "commit": "72a04c4065345b51b56aed4859ea1d884f734097" },
|
"rose-pine.nvim": { "branch": "main", "commit": "72a04c4065345b51b56aed4859ea1d884f734097" },
|
||||||
"rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" },
|
"rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "bfe8c26dbd83f7c4fbc222787552e29b4eccfcc0" },
|
"snacks.nvim": { "branch": "main", "commit": "bfe8c26dbd83f7c4fbc222787552e29b4eccfcc0" },
|
||||||
"spellwarn.nvim": { "branch": "main", "commit": "47ada88a843f52f7aa90c018cc7ef514587bc3fd" },
|
"spellwarn.nvim": { "branch": "main", "commit": "47ada88a843f52f7aa90c018cc7ef514587bc3fd" },
|
||||||
"tagbar": { "branch": "master", "commit": "7bfffca1f121afb7a9e38747500bf5270e006bb1" },
|
"tagbar": { "branch": "master", "commit": "7bfffca1f121afb7a9e38747500bf5270e006bb1" },
|
||||||
"tailwind-fold.nvim": { "branch": "main", "commit": "d9e7ca11691d252b35795726dff087bf013b2ebf" },
|
"tailwind-fold.nvim": { "branch": "main", "commit": "d9e7ca11691d252b35795726dff087bf013b2ebf" },
|
||||||
"telescope-bibtex.nvim": { "branch": "master", "commit": "289a6f86ebec06e8ae1590533b732b9981d84900" },
|
|
||||||
"telescope-frecency.nvim": { "branch": "master", "commit": "d4f1bb2a939cc02720bceb635095246751db144f" },
|
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
|
||||||
"telescope-git-diffs.nvim": { "branch": "main", "commit": "b8e5c9e13b9e27f8ccfd14430d04739b9996ae76" },
|
|
||||||
"telescope-heading.nvim": { "branch": "main", "commit": "e85c0f69cb64048f56e76548dcb2f10277576df9" },
|
|
||||||
"telescope-lazy.nvim": { "branch": "main", "commit": "abc70990733e8faa0e6f3c9de4d5fc34470a9737" },
|
|
||||||
"telescope-luasnip.nvim": { "branch": "master", "commit": "07a2a2936a7557404c782dba021ac0a03165b343" },
|
|
||||||
"telescope-media-files.nvim": { "branch": "master", "commit": "0826c7a730bc4d36068f7c85cf4c5b3fd9fb570a" },
|
|
||||||
"telescope-software-licenses.nvim": { "branch": "master", "commit": "fb5fc33b6afc994756e2f372423c365bf66f2256" },
|
|
||||||
"telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
|
|
||||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
|
||||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
|
||||||
"timber.nvim": { "branch": "main", "commit": "aac3a12753652a60955d3178b75fdb6c247b9f7d" },
|
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "4d159616aee17796c2c94d2f5f87d2ee1a3f67c7" },
|
"tokyonight.nvim": { "branch": "main", "commit": "4d159616aee17796c2c94d2f5f87d2ee1a3f67c7" },
|
||||||
"tree-sitter-bruno": { "branch": "main", "commit": "347e99f256930213cd7fcd0efe3f9af83035c4b1" },
|
"tree-sitter-bruno": { "branch": "main", "commit": "347e99f256930213cd7fcd0efe3f9af83035c4b1" },
|
||||||
@ -129,7 +114,7 @@
|
|||||||
"undotree": { "branch": "master", "commit": "0f1c9816975b5d7f87d5003a19c53c6fd2ff6f7f" },
|
"undotree": { "branch": "master", "commit": "0f1c9816975b5d7f87d5003a19c53c6fd2ff6f7f" },
|
||||||
"vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" },
|
"vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "0d1e93684da00ab7c057410fecfc24f434698898" },
|
"vim-illuminate": { "branch": "master", "commit": "0d1e93684da00ab7c057410fecfc24f434698898" },
|
||||||
"vim-just": { "branch": "main", "commit": "19a7f07c16f010f6c0a3eb74041787bb6e460fbb" },
|
"vim-just": { "branch": "main", "commit": "3deeee5998408ce5a0ff3959a0e6b4bce530c37e" },
|
||||||
"vim-log-highlighting": { "branch": "master", "commit": "1037e26f3120e6a6a2c0c33b14a84336dee2a78f" },
|
"vim-log-highlighting": { "branch": "master", "commit": "1037e26f3120e6a6a2c0c33b14a84336dee2a78f" },
|
||||||
"vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" },
|
"vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" },
|
||||||
"vim-wakatime": { "branch": "master", "commit": "d7973b157a632d1edeff01818f18d67e584eeaff" },
|
"vim-wakatime": { "branch": "master", "commit": "d7973b157a632d1edeff01818f18d67e584eeaff" },
|
||||||
|
|||||||
@ -44,6 +44,22 @@ nmap("<S-s>", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], "[S]ubstit
|
|||||||
|
|
||||||
nmap("Q", "@qj", "Run macro")
|
nmap("Q", "@qj", "Run macro")
|
||||||
|
|
||||||
|
nmap("<leader>oo", "<cmd>update<cr><cmd>source<cr>", "Source current file")
|
||||||
|
|
||||||
|
vim.keymap.set({ "n", "v", "x" }, "<leader>y", '"+y<cr>', { desc = "Yank to system clipboard" })
|
||||||
|
vim.keymap.set("n", "<leader>Y", '"+yy<cr>', { desc = "Yank line to system clipboard" })
|
||||||
|
|
||||||
|
vim.keymap.set({ "n", "v", "x" }, "<leader>d", '"+d<cr>', { desc = "Cut to system clipboard" })
|
||||||
|
|
||||||
|
vim.keymap.set({ "n", "v", "x" }, "<leader>p", '"+p<cr>', { desc = "Paste from system clipboard" })
|
||||||
|
vim.keymap.set("n", "<leader>P", '"+P<cr>', { desc = "Paste before cursor from system clipboard" })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>cf", function()
|
||||||
|
local file_path = vim.fn.expand("%:p")
|
||||||
|
vim.cmd([[call setreg("+", "]] .. vim.fn.escape(file_path, '\\ "') .. '")')
|
||||||
|
print("Copied current file path to clipboard: " .. vim.fn.expand("%:p"))
|
||||||
|
end, { desc = "Copy file path to clipboard" })
|
||||||
|
|
||||||
xmap("Q", ":norm @q<CR>", "Run macro")
|
xmap("Q", ":norm @q<CR>", "Run macro")
|
||||||
|
|
||||||
xmap("p", '"_dP')
|
xmap("p", '"_dP')
|
||||||
|
|||||||
@ -28,9 +28,6 @@ require("lazy").setup({
|
|||||||
ui = { border = "rounded" },
|
ui = { border = "rounded" },
|
||||||
change_detection = { enabled = false },
|
change_detection = { enabled = false },
|
||||||
rocks = {
|
rocks = {
|
||||||
hererocks = nil,
|
hererocks = true,
|
||||||
},
|
|
||||||
dev = {
|
|
||||||
path = "~/repos/nvim/plugins",
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@ -34,7 +34,7 @@ vim.opt.showcmd = false
|
|||||||
vim.opt.showmode = false -- we don't need to see things like -- INSERT -- anymore
|
vim.opt.showmode = false -- we don't need to see things like -- INSERT -- anymore
|
||||||
vim.opt.showtabline = 0 -- disable tabs
|
vim.opt.showtabline = 0 -- disable tabs
|
||||||
vim.opt.sidescrolloff = 8
|
vim.opt.sidescrolloff = 8
|
||||||
vim.opt.signcolumn = "auto" -- always show the sign column otherwise it would shift the text each time
|
vim.opt.signcolumn = "yes" -- always show the sign column otherwise it would shift the text each time
|
||||||
vim.opt.smartcase = true -- smart case
|
vim.opt.smartcase = true -- smart case
|
||||||
vim.opt.smartindent = true -- make indenting smarter again
|
vim.opt.smartindent = true -- make indenting smarter again
|
||||||
vim.opt.softtabstop = 4
|
vim.opt.softtabstop = 4
|
||||||
|
|||||||
@ -1,78 +0,0 @@
|
|||||||
if not pcall(require, "luasnip") then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local f = ls.function_node
|
|
||||||
local s = ls.snippet
|
|
||||||
local t = ls.text_node
|
|
||||||
local i = ls.insert_node
|
|
||||||
|
|
||||||
--[[
|
|
||||||
local ls = require("luasnip")
|
|
||||||
local s = ls.snippet
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
local isn = ls.indent_snippet_node
|
|
||||||
local t = ls.text_node
|
|
||||||
local i = ls.insert_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local r = ls.restore_node
|
|
||||||
local events = require("luasnip.util.events")
|
|
||||||
local ai = require("luasnip.nodes.absolute_indexer")
|
|
||||||
local extras = require("luasnip.extras")
|
|
||||||
local l = extras.lambda
|
|
||||||
local rep = extras.rep
|
|
||||||
local p = extras.partial
|
|
||||||
local m = extras.match
|
|
||||||
local n = extras.nonempty
|
|
||||||
local dl = extras.dynamic_lambda
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local fmta = require("luasnip.extras.fmt").fmta
|
|
||||||
local conds = require("luasnip.extras.expand_conditions")
|
|
||||||
local postfix = require("luasnip.extras.postfix").postfix
|
|
||||||
local types = require("luasnip.util.types")
|
|
||||||
local parse = require("luasnip.util.parser").parse_snippet
|
|
||||||
local ms = ls.multi_snippet
|
|
||||||
]]
|
|
||||||
|
|
||||||
local shortcut = function(val)
|
|
||||||
if type(val) == "string" then
|
|
||||||
return { t({ val }), i(0) }
|
|
||||||
end
|
|
||||||
if type(val) == "table" then
|
|
||||||
for k, v in ipairs(val) do
|
|
||||||
if type(v) == "string" then
|
|
||||||
val[k] = t({ v })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return val
|
|
||||||
end
|
|
||||||
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.same = function(index)
|
|
||||||
return f(function(args)
|
|
||||||
return args[1]
|
|
||||||
end, { index })
|
|
||||||
end
|
|
||||||
|
|
||||||
M.year = function()
|
|
||||||
return os.date("%Y")
|
|
||||||
end
|
|
||||||
|
|
||||||
M.date = function()
|
|
||||||
return os.date("%d.%m.%Y")
|
|
||||||
end
|
|
||||||
|
|
||||||
M.make = function(tbl)
|
|
||||||
local result = {}
|
|
||||||
for k, v in pairs(tbl) do
|
|
||||||
table.insert(result, (s({ trig = k, desc = v.desc }, shortcut(v))))
|
|
||||||
end
|
|
||||||
return result
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
@ -1,41 +0,0 @@
|
|||||||
return {
|
|
||||||
"doctorfree/cheatsheet.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
dependencies = {
|
|
||||||
{ "nvim-telescope/telescope.nvim" },
|
|
||||||
{ "nvim-lua/popup.nvim" },
|
|
||||||
{ "nvim-lua/plenary.nvim" },
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("cheatsheet").setup({
|
|
||||||
-- Whether to show bundled cheatsheets
|
|
||||||
|
|
||||||
-- For generic cheatsheets like default, unicode, nerd-fonts, etc
|
|
||||||
bundled_cheatsheets = {
|
|
||||||
enabled = { "default", "unicode", "regex", "markdown", "lua" },
|
|
||||||
disabled = { "nerd-fonts" },
|
|
||||||
},
|
|
||||||
-- bundled_cheatsheets = true,
|
|
||||||
|
|
||||||
-- For plugin specific cheatsheets
|
|
||||||
bundled_plugin_cheatsheets = {
|
|
||||||
enabled = {},
|
|
||||||
disabled = {},
|
|
||||||
},
|
|
||||||
-- bundled_plugin_cheatsheets = true,
|
|
||||||
|
|
||||||
-- For bundled plugin cheatsheets, do not show a sheet if you
|
|
||||||
-- don't have the plugin installed (searches runtimepath for
|
|
||||||
-- same directory name)
|
|
||||||
include_only_installed_plugins = true,
|
|
||||||
|
|
||||||
-- Key mappings bound inside the telescope window
|
|
||||||
telescope_mappings = {
|
|
||||||
["<CR>"] = require("cheatsheet.telescope.actions").select_or_fill_commandline,
|
|
||||||
["<A-CR>"] = require("cheatsheet.telescope.actions").select_or_execute,
|
|
||||||
["<C-Y>"] = require("cheatsheet.telescope.actions").copy_cheat_value,
|
|
||||||
["<C-E>"] = require("cheatsheet.telescope.actions").edit_user_cheatsheet,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@ -33,7 +33,13 @@ return {
|
|||||||
javascript = js,
|
javascript = js,
|
||||||
javascriptreact = js,
|
javascriptreact = js,
|
||||||
json = { "jq" },
|
json = { "jq" },
|
||||||
lua = { "stylua" },
|
lua = function()
|
||||||
|
local config_file = vim.fn.getcwd() .. "/*stylua.toml"
|
||||||
|
if vim.fn.exists(config_file) then
|
||||||
|
return { "stylua" }
|
||||||
|
end
|
||||||
|
return {}
|
||||||
|
end,
|
||||||
markdown = makrdown,
|
markdown = makrdown,
|
||||||
python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" },
|
python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" },
|
||||||
rest = { "kulala" },
|
rest = { "kulala" },
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
|
|
||||||
"Saecki/crates.nvim",
|
"Saecki/crates.nvim",
|
||||||
tag = "stable",
|
tag = "stable",
|
||||||
event = { "BufRead Cargo.toml" },
|
event = { "BufRead Cargo.toml" },
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"wintermute-cell/gitignore.nvim",
|
"wintermute-cell/gitignore.nvim",
|
||||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
dependencies = {},
|
||||||
cmd = { "Gitignore" },
|
cmd = { "Gitignore" },
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
"barrett-ruth/http-codes.nvim",
|
"kristoferssolo/http-codes.nvim",
|
||||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
branch = "feature/snacks",
|
||||||
keys = { { "<leader>pdh", vim.cmd.HTTPCodes, desc = "HTTP" } },
|
dependencies = "folke/snacks.nvim",
|
||||||
config = true,
|
cmd = "HTTPCodes",
|
||||||
|
keys = { { "<leader>pH", vim.cmd.HTTPCodes, desc = "HTTP" } },
|
||||||
|
opts = {
|
||||||
|
use = "snacks",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,39 @@ local function is_typst()
|
|||||||
return vim.bo.filetype == "typst"
|
return vim.bo.filetype == "typst"
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"3rd/image.nvim",
|
||||||
|
opts = {
|
||||||
|
backend = "ueberzug",
|
||||||
|
processor = "magick_rock",
|
||||||
|
scale_factor = 0.5,
|
||||||
|
integrations = {
|
||||||
|
neorg = {
|
||||||
|
clear_in_insert_mode = true,
|
||||||
|
only_render_image_at_cursor = true,
|
||||||
|
only_render_image_at_cursor_mode = "popup",
|
||||||
|
},
|
||||||
|
typst = {
|
||||||
|
clear_in_insert_mode = true,
|
||||||
|
only_render_image_at_cursor = true,
|
||||||
|
only_render_image_at_cursor_mode = "popup",
|
||||||
|
},
|
||||||
|
markdown = {
|
||||||
|
clear_in_insert_mode = true,
|
||||||
|
only_render_image_at_cursor = true,
|
||||||
|
only_render_image_at_cursor_mode = "popup",
|
||||||
|
resolve_image_path = function(document_path, image_path, fallback)
|
||||||
|
local working_dir = vim.fn.getcwd()
|
||||||
|
if working_dir:find("Obsidian") then
|
||||||
|
return working_dir .. "/assets/img/" .. image_path
|
||||||
|
end
|
||||||
|
return fallback(document_path, image_path)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
"HakonHarnes/img-clip.nvim",
|
"HakonHarnes/img-clip.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
keys = {
|
keys = {
|
||||||
@ -26,9 +59,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
file_name = "%Y-%m-%d_%H-%M-%S",
|
file_name = "%Y-%m-%d_%H-%M-%S",
|
||||||
relative_to_current_file = false,
|
relative_to_current_file = false,
|
||||||
prompt_for_file_name = function()
|
prompt_for_file_name = is_typst,
|
||||||
return is_typst()
|
|
||||||
end,
|
|
||||||
embed_image_as_base64 = false,
|
embed_image_as_base64 = false,
|
||||||
drag_and_drop = {
|
drag_and_drop = {
|
||||||
insert_mode = true,
|
insert_mode = true,
|
||||||
@ -51,4 +82,5 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@ return {
|
|||||||
"mason-org/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
"mason-org/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
"saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
"nvim-telescope/telescope.nvim",
|
"folke/snacks.nvim",
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
"folke/neoconf.nvim",
|
"folke/neoconf.nvim",
|
||||||
"mrcjkb/rustaceanvim",
|
"mrcjkb/rustaceanvim",
|
||||||
@ -66,7 +66,7 @@ return {
|
|||||||
vim.lsp.buf.hover({ border = "rounded" })
|
vim.lsp.buf.hover({ border = "rounded" })
|
||||||
end, "Hover Documentation")
|
end, "Hover Documentation")
|
||||||
nmap("gi", vim.lsp.buf.implementation, "[G]oto [I]mplementation")
|
nmap("gi", vim.lsp.buf.implementation, "[G]oto [I]mplementation")
|
||||||
vim.keymap.set("i", "<C-h>", function()
|
vim.keymap.set("i", "<C-H>", function()
|
||||||
vim.lsp.buf.signature_help({ border = "rounded" })
|
vim.lsp.buf.signature_help({ border = "rounded" })
|
||||||
end, { buffer = event.buf, desc = "LSP: Signature Documentation" })
|
end, { buffer = event.buf, desc = "LSP: Signature Documentation" })
|
||||||
nmap("<leader>wa", vim.lsp.buf.add_workspace_folder, "[W]orkspace [A]dd Folder")
|
nmap("<leader>wa", vim.lsp.buf.add_workspace_folder, "[W]orkspace [A]dd Folder")
|
||||||
@ -85,7 +85,7 @@ return {
|
|||||||
vim.diagnostic.jump({ count = -1, float = true })
|
vim.diagnostic.jump({ count = -1, float = true })
|
||||||
end, "Diagnostic Prev")
|
end, "Diagnostic Prev")
|
||||||
nmap("]d", function()
|
nmap("]d", function()
|
||||||
trouble:next({ mode = "diagnostics", skip_groups = true, jump = true })
|
trouble.next({ mode = "diagnostics", skip_groups = true, jump = true })
|
||||||
end, "LSP: Trouble Next")
|
end, "LSP: Trouble Next")
|
||||||
nmap("[d", function()
|
nmap("[d", function()
|
||||||
trouble.prev({ mode = "diagnostics", skip_groups = true, jump = true })
|
trouble.prev({ mode = "diagnostics", skip_groups = true, jump = true })
|
||||||
@ -99,7 +99,9 @@ return {
|
|||||||
nmap("gr", function()
|
nmap("gr", function()
|
||||||
trouble.toggle("lsp_references")
|
trouble.toggle("lsp_references")
|
||||||
end, "[G]oto [R]eferences")
|
end, "[G]oto [R]eferences")
|
||||||
nmap("gR", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
nmap("gR", function()
|
||||||
|
Snacks.picker.lsp_references()
|
||||||
|
end, "[G]oto [R]eferences")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -194,38 +196,42 @@ return {
|
|||||||
lua_ls = {
|
lua_ls = {
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
runtime = {
|
|
||||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
|
||||||
version = "LuaJIT",
|
|
||||||
},
|
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
-- Get the language server to recognize the `vim` global
|
globals = {
|
||||||
globals = { "vim", "awesome", "client", "ya" },
|
"vim",
|
||||||
|
"awesome",
|
||||||
|
"client",
|
||||||
|
"s",
|
||||||
|
"sn",
|
||||||
|
"isn",
|
||||||
|
"t",
|
||||||
|
"i",
|
||||||
|
"f",
|
||||||
|
"c",
|
||||||
|
"d",
|
||||||
|
"r",
|
||||||
|
"events",
|
||||||
|
"k",
|
||||||
|
"ai",
|
||||||
|
"extras",
|
||||||
|
"l",
|
||||||
|
"rep",
|
||||||
|
"p",
|
||||||
|
"m",
|
||||||
|
"n",
|
||||||
|
"dl",
|
||||||
|
"fmt",
|
||||||
|
"fmta",
|
||||||
|
"conds",
|
||||||
|
"postfix",
|
||||||
|
"types",
|
||||||
|
"parse",
|
||||||
|
"ms",
|
||||||
},
|
},
|
||||||
-- workspace = {
|
|
||||||
-- Make the server aware of Neovim runtime files
|
|
||||||
-- library = vim.api.nvim_get_runtime_file("", true),
|
|
||||||
-- },
|
|
||||||
-- Do not send telemetry data containing a randomized but unique identifier
|
|
||||||
telemetry = {
|
|
||||||
enable = false,
|
|
||||||
},
|
|
||||||
root_pattern = {
|
|
||||||
".stylua.toml",
|
|
||||||
".luarc.json",
|
|
||||||
".luarc.jsonc",
|
|
||||||
".luacheckrc",
|
|
||||||
"stylua.toml",
|
|
||||||
"selene.toml",
|
|
||||||
"selene.yml",
|
|
||||||
".git",
|
|
||||||
},
|
|
||||||
format = {
|
|
||||||
enable = false,
|
|
||||||
},
|
|
||||||
hint = {
|
|
||||||
enable = true,
|
|
||||||
},
|
},
|
||||||
|
telemetry = { enable = false },
|
||||||
|
format = { enable = true },
|
||||||
|
hint = { enable = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,20 +3,13 @@ return {
|
|||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
build = "make install_jsregexp",
|
build = "make install_jsregexp",
|
||||||
version = "v2.*",
|
version = "v2.*",
|
||||||
dependencies = {
|
dependencies = { "rafamadriz/friendly-snippets" },
|
||||||
"rafamadriz/friendly-snippets", -- a bunch of snippets to use
|
|
||||||
},
|
|
||||||
opts = function()
|
opts = function()
|
||||||
local types = require("luasnip.util.types")
|
local types = require("luasnip.util.types")
|
||||||
return {
|
return {
|
||||||
-- This tells LuaSnip to remember to keep around the last snippet.
|
|
||||||
-- You can jump back into it even if you move outside of the selection
|
|
||||||
history = true,
|
history = true,
|
||||||
-- This one is cool cause if you have dynamic snippets, it updates as you type!
|
|
||||||
updateevents = "TextChanged,TextChangedI",
|
updateevents = "TextChanged,TextChangedI",
|
||||||
-- Autosnippets:
|
|
||||||
enable_autosnippets = true,
|
enable_autosnippets = true,
|
||||||
-- Crazy highlights!!
|
|
||||||
ext_opts = {
|
ext_opts = {
|
||||||
[types.choiceNode] = {
|
[types.choiceNode] = {
|
||||||
active = {
|
active = {
|
||||||
@ -29,32 +22,6 @@ return {
|
|||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local ls = require("luasnip")
|
local ls = require("luasnip")
|
||||||
|
|
||||||
local s = ls.snippet
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
local isn = ls.indent_snippet_node
|
|
||||||
local t = ls.text_node
|
|
||||||
local i = ls.insert_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local r = ls.restore_node
|
|
||||||
local events = require("luasnip.util.events")
|
|
||||||
local ai = require("luasnip.nodes.absolute_indexer")
|
|
||||||
local extras = require("luasnip.extras")
|
|
||||||
local l = extras.lambda
|
|
||||||
local rep = extras.rep
|
|
||||||
local p = extras.partial
|
|
||||||
local m = extras.match
|
|
||||||
local n = extras.nonempty
|
|
||||||
local dl = extras.dynamic_lambda
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local fmta = require("luasnip.extras.fmt").fmta
|
|
||||||
local conds = require("luasnip.extras.expand_conditions")
|
|
||||||
local postfix = require("luasnip.extras.postfix").postfix
|
|
||||||
local types = require("luasnip.util.types")
|
|
||||||
local parse = require("luasnip.util.parser").parse_snippet
|
|
||||||
local ms = ls.multi_snippet
|
|
||||||
|
|
||||||
vim.keymap.set({ "i", "s" }, "<C-j>", function()
|
vim.keymap.set({ "i", "s" }, "<C-j>", function()
|
||||||
if ls.expand_or_jumpable() then
|
if ls.expand_or_jumpable() then
|
||||||
ls.expand_or_jump()
|
ls.expand_or_jump()
|
||||||
@ -83,15 +50,11 @@ return {
|
|||||||
|
|
||||||
require("luasnip.loaders.from_vscode").load({
|
require("luasnip.loaders.from_vscode").load({
|
||||||
exclude = {
|
exclude = {
|
||||||
"rust",
|
rust = { "modtest" },
|
||||||
rust = {
|
|
||||||
"modtest",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
vim.tbl_map(function(type)
|
|
||||||
require("luasnip.loaders.from_" .. type).lazy_load()
|
require("luasnip.loaders.from_lua").load({ paths = vim.fn.stdpath("config") .. "/snippets/" })
|
||||||
end, { "vscode", "snipmate", "lua" })
|
|
||||||
|
|
||||||
ls.filetype_extend("typescript", { "tsdoc" })
|
ls.filetype_extend("typescript", { "tsdoc" })
|
||||||
ls.filetype_extend("javascript", { "jsdoc" })
|
ls.filetype_extend("javascript", { "jsdoc" })
|
||||||
|
|||||||
@ -2,9 +2,9 @@ return {
|
|||||||
"NeogitOrg/neogit",
|
"NeogitOrg/neogit",
|
||||||
version = "*",
|
version = "*",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim", -- required
|
"nvim-lua/plenary.nvim",
|
||||||
"sindrets/diffview.nvim", -- Diff integration
|
"sindrets/diffview.nvim",
|
||||||
"nvim-telescope/telescope.nvim",
|
"folke/snacks.nvim",
|
||||||
},
|
},
|
||||||
cmd = { "Neogit" },
|
cmd = { "Neogit" },
|
||||||
keys = {
|
keys = {
|
||||||
@ -18,16 +18,7 @@ return {
|
|||||||
{ "<leader>gd", vim.cmd.DiffviewOpen, desc = "Git Diff" },
|
{ "<leader>gd", vim.cmd.DiffviewOpen, desc = "Git Diff" },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
-- When enabled, will watch the `.git/` directory for changes and refresh the status buffer in response to filesystem
|
filewatcher = { interval = 500 },
|
||||||
-- events.
|
|
||||||
filewatcher = {
|
|
||||||
interval = 500,
|
|
||||||
},
|
|
||||||
-- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf
|
|
||||||
-- sorter instead. By default, this function returns `nil`.
|
|
||||||
telescope_sorter = function()
|
|
||||||
return require("telescope").extensions.fzf.native_fzf_sorter()
|
|
||||||
end,
|
|
||||||
-- Table of settings to never persist. Uses format "Filetype--cli-value"
|
-- Table of settings to never persist. Uses format "Filetype--cli-value"
|
||||||
ignored_settings = {
|
ignored_settings = {
|
||||||
"NeogitPushPopup--force-with-lease",
|
"NeogitPushPopup--force-with-lease",
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-neorg/neorg",
|
"nvim-neorg/neorg",
|
||||||
dependencies = {
|
|
||||||
"nvim-neorg/neorg-telescope",
|
|
||||||
},
|
|
||||||
lazy = true,
|
lazy = true,
|
||||||
version = "*",
|
version = "*",
|
||||||
ft = "norg",
|
ft = "norg",
|
||||||
@ -112,15 +109,6 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- ["core.ui.calendar"] = {},
|
-- ["core.ui.calendar"] = {},
|
||||||
["core.integrations.telescope"] = {
|
|
||||||
config = {
|
|
||||||
insert_file_link = {
|
|
||||||
-- Whether to show the title preview in telescope. Affects performance with a large
|
|
||||||
-- number of files.
|
|
||||||
show_title_preview = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@ return {
|
|||||||
event = "BufReadPre " .. vim.fn.expand("~") .. "/Obsidian/**/*.md",
|
event = "BufReadPre " .. vim.fn.expand("~") .. "/Obsidian/**/*.md",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-telescope/telescope.nvim",
|
"folke/snacks.nvim",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
@ -31,7 +31,6 @@ return {
|
|||||||
desc = "Extract the visually selected text into a new note and link to it.",
|
desc = "Extract the visually selected text into a new note and link to it.",
|
||||||
},
|
},
|
||||||
{ "<leader>Ow", vim.cmd.ObsidianWorkspace, desc = "Switch to another workspace." },
|
{ "<leader>Ow", vim.cmd.ObsidianWorkspace, desc = "Switch to another workspace." },
|
||||||
-- { "<leader>Op", vim.cmd.ObsidianPasteImg, desc = "Paste an image from the clipboard into the note." },
|
|
||||||
{
|
{
|
||||||
"<leader>Or",
|
"<leader>Or",
|
||||||
vim.cmd.ObsidianRename,
|
vim.cmd.ObsidianRename,
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
return {
|
|
||||||
"nosduco/remote-sshfs.nvim",
|
|
||||||
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
|
|
||||||
opts = {},
|
|
||||||
}
|
|
||||||
@ -3,6 +3,7 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
{ "echasnovski/mini.icons", version = "*" },
|
{ "echasnovski/mini.icons", version = "*" },
|
||||||
"stevearc/oil.nvim",
|
"stevearc/oil.nvim",
|
||||||
|
"folke/trouble.nvim",
|
||||||
},
|
},
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
@ -17,7 +18,7 @@ return {
|
|||||||
bufdelete = { enabled = true },
|
bufdelete = { enabled = true },
|
||||||
dashboard = { enabled = false },
|
dashboard = { enabled = false },
|
||||||
debug = { enabled = true },
|
debug = { enabled = true },
|
||||||
dim = { enabled = true },
|
dim = { enabled = false },
|
||||||
explorer = { enabled = false },
|
explorer = { enabled = false },
|
||||||
git = { enabled = true },
|
git = { enabled = true },
|
||||||
gitbrowse = { enabled = true },
|
gitbrowse = { enabled = true },
|
||||||
@ -39,7 +40,29 @@ return {
|
|||||||
lazygit = { enabled = false },
|
lazygit = { enabled = false },
|
||||||
notifier = { enabled = false },
|
notifier = { enabled = false },
|
||||||
notify = { enabled = false },
|
notify = { enabled = false },
|
||||||
picker = { enabled = false },
|
picker = {
|
||||||
|
enabled = true,
|
||||||
|
format = "file",
|
||||||
|
layout = {
|
||||||
|
preset = "telescope",
|
||||||
|
},
|
||||||
|
matcher = {
|
||||||
|
frecency = true,
|
||||||
|
sort_empty = true,
|
||||||
|
cwd_bonus = true,
|
||||||
|
},
|
||||||
|
actions = require("trouble.sources.snacks").actions,
|
||||||
|
win = {
|
||||||
|
input = {
|
||||||
|
keys = {
|
||||||
|
["<C-t>"] = {
|
||||||
|
"trouble_open",
|
||||||
|
mode = { "n", "i" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
profiler = { enabled = false },
|
profiler = { enabled = false },
|
||||||
quickfile = { enabled = true, exclude = { "latex" } },
|
quickfile = { enabled = true, exclude = { "latex" } },
|
||||||
rename = { enabled = true },
|
rename = { enabled = true },
|
||||||
@ -92,6 +115,112 @@ return {
|
|||||||
end,
|
end,
|
||||||
desc = "Git Blame",
|
desc = "Git Blame",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<C-n>",
|
||||||
|
function()
|
||||||
|
Snacks.picker.files()
|
||||||
|
end,
|
||||||
|
desc = "Find Files",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pf",
|
||||||
|
function()
|
||||||
|
Snacks.picker.files()
|
||||||
|
end,
|
||||||
|
desc = "Find Files",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>ps",
|
||||||
|
function()
|
||||||
|
Snacks.picker.grep()
|
||||||
|
end,
|
||||||
|
desc = "Grep",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pb",
|
||||||
|
function()
|
||||||
|
Snacks.picker.buffers()
|
||||||
|
end,
|
||||||
|
desc = "Buffers",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pw",
|
||||||
|
function()
|
||||||
|
Snacks.picker.grep_word()
|
||||||
|
end,
|
||||||
|
desc = "Visual selection of word",
|
||||||
|
mode = { "n", "x" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pi",
|
||||||
|
function()
|
||||||
|
Snacks.picker.icons()
|
||||||
|
end,
|
||||||
|
desc = "Icons",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>ph",
|
||||||
|
function()
|
||||||
|
Snacks.picker.help()
|
||||||
|
end,
|
||||||
|
desc = "Help Pages",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pr",
|
||||||
|
function()
|
||||||
|
Snacks.picker.recent()
|
||||||
|
end,
|
||||||
|
desc = "Recent",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pR",
|
||||||
|
function()
|
||||||
|
Snacks.picker.registers()
|
||||||
|
end,
|
||||||
|
desc = "Registers",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pg",
|
||||||
|
function()
|
||||||
|
Snacks.picker.git_files()
|
||||||
|
end,
|
||||||
|
desc = "Find Git Fiels",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pk",
|
||||||
|
function()
|
||||||
|
Snacks.picker.keymaps()
|
||||||
|
end,
|
||||||
|
desc = "Keymaps",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pt",
|
||||||
|
function()
|
||||||
|
Snacks.picker.todo_comments({ keywords = { "TODO", "FIX", "FIXME" } })
|
||||||
|
end,
|
||||||
|
desc = "Todo/Fix/Fixme",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pc",
|
||||||
|
function()
|
||||||
|
Snacks.picker.colorschemes()
|
||||||
|
end,
|
||||||
|
desc = "Colorschemes",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pl",
|
||||||
|
function()
|
||||||
|
Snacks.picker.lazy()
|
||||||
|
end,
|
||||||
|
desc = "Search for Plugin Spec",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>pD",
|
||||||
|
function()
|
||||||
|
Snacks.picker.diagnostics()
|
||||||
|
end,
|
||||||
|
desc = "Diagnostics",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.api.nvim_create_autocmd("User", {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
|||||||
@ -1,279 +0,0 @@
|
|||||||
return {
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
version = "*",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-tree/nvim-web-devicons",
|
|
||||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
|
||||||
"nvim-telescope/telescope-media-files.nvim",
|
|
||||||
"nvim-telescope/telescope-symbols.nvim",
|
|
||||||
"nvim-telescope/telescope-bibtex.nvim",
|
|
||||||
"tsakirist/telescope-lazy.nvim",
|
|
||||||
"chip/telescope-software-licenses.nvim",
|
|
||||||
"crispgm/telescope-heading.nvim",
|
|
||||||
"benfowler/telescope-luasnip.nvim",
|
|
||||||
"paopaol/telescope-git-diffs.nvim",
|
|
||||||
{ "ThePrimeagen/harpoon", branch = "harpoon2" },
|
|
||||||
"nvim-telescope/telescope-frecency.nvim",
|
|
||||||
"nvim-telescope/telescope-ui-select.nvim",
|
|
||||||
"nosduco/remote-sshfs.nvim",
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<C-n>",
|
|
||||||
require("telescope.builtin").git_files,
|
|
||||||
desc = "Telescope git_files",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pf",
|
|
||||||
require("telescope.builtin").find_files,
|
|
||||||
desc = "Files",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>/",
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").current_buffer_fuzzy_find(
|
|
||||||
require("telescope.themes").get_dropdown({ previewer = false })
|
|
||||||
)
|
|
||||||
end,
|
|
||||||
desc = "Current Buffer Fuzzy",
|
|
||||||
},
|
|
||||||
{ "<leader>ps", require("telescope.builtin").live_grep, desc = "Live Grep" },
|
|
||||||
{ "<leader>pb", require("telescope.builtin").buffers, desc = "Find Buffers" },
|
|
||||||
{ "<leader>pws", require("telescope.builtin").grep_string, desc = "String under the cursor" },
|
|
||||||
{ "<leader>pe", require("telescope.builtin").symbols, desc = "Emoji" },
|
|
||||||
{ "<leader>pd", require("telescope.builtin").diagnostic, desc = "Diagnostics" },
|
|
||||||
{ "<leader>pB", require("telescope.builtin").git_branches, desc = "Checkout Branch" },
|
|
||||||
{ "<leader>ph", require("telescope.builtin").help_tags, desc = "Help" },
|
|
||||||
{ "<leader>pM", require("telescope.builtin").man_pages, desc = "Man Pages" },
|
|
||||||
{ "<leader>pr", require("telescope.builtin").oldfiles, desc = "Open Recent Files" },
|
|
||||||
{ "<leader>pR", require("telescope.builtin").registers, desc = "Registers" },
|
|
||||||
{ "<leader>pg", require("telescope.builtin").git_files, desc = "Git Files" },
|
|
||||||
{ "<leader>pk", require("telescope.builtin").keymaps, desc = "Keymaps" },
|
|
||||||
{ "<leader>pC", require("telescope.builtin").commands, desc = "Commands" },
|
|
||||||
{ "<leader>pt", vim.cmd.TodoTelescope, desc = "Todo" },
|
|
||||||
{
|
|
||||||
"<leader>pm",
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.media_files.media_files()
|
|
||||||
end,
|
|
||||||
desc = "Media",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pc",
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").colorscheme({ enable_preview = true })
|
|
||||||
end,
|
|
||||||
desc = "Colorscheme with Preview",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pl",
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.lazy.lazy()
|
|
||||||
end,
|
|
||||||
desc = "Lazy",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pL",
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.luasnip.luasnip()
|
|
||||||
end,
|
|
||||||
desc = "Luasnip",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pH",
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.heading.heading()
|
|
||||||
end,
|
|
||||||
desc = "Heading",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pds",
|
|
||||||
"<cmd>Telescope software-licenses find<cr>",
|
|
||||||
desc = "Software Licenses",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>pD",
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.git_diffs.diff_commits()
|
|
||||||
end,
|
|
||||||
desc = "Git Diff Telescope",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>tB",
|
|
||||||
require("telescope.builtin").bibtex,
|
|
||||||
desc = "Telescope Bibtex",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
defaults = {
|
|
||||||
vimgrep_arguments = {
|
|
||||||
"rg",
|
|
||||||
"--color=never",
|
|
||||||
"--no-heading",
|
|
||||||
"--with-filename",
|
|
||||||
"--line-number",
|
|
||||||
"--column",
|
|
||||||
"--smart-case",
|
|
||||||
"--hidden",
|
|
||||||
},
|
|
||||||
prompt_prefix = " ",
|
|
||||||
selection_caret = " ",
|
|
||||||
path_display = { "smart" },
|
|
||||||
file_ignore_patterns = { ".git/", ".spl", "target/", "*.pdf" },
|
|
||||||
mappings = {
|
|
||||||
i = {
|
|
||||||
["<Down>"] = require("telescope.actions").cycle_history_next,
|
|
||||||
["<Up>"] = require("telescope.actions").cycle_history_prev,
|
|
||||||
["<C-j>"] = require("telescope.actions").move_selection_next,
|
|
||||||
["<C-k>"] = require("telescope.actions").move_selection_previous,
|
|
||||||
["<C-D>"] = require("telescope.actions").delete_buffer + require("telescope.actions").move_to_top,
|
|
||||||
["<C-t>"] = require("trouble.sources.telescope").open,
|
|
||||||
-- ["<C-Y>"] = require("telescope.actions").remove_selection
|
|
||||||
},
|
|
||||||
n = { ["<C-t>"] = require("trouble.sources.telescope").open },
|
|
||||||
},
|
|
||||||
history = {
|
|
||||||
path = "~/.local/share/nvim/databases/telescope_history.sqlite3",
|
|
||||||
limit = 100,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
pickers = {
|
|
||||||
find_files = {
|
|
||||||
hidden = true,
|
|
||||||
follow = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
extensions = {
|
|
||||||
fzf = {
|
|
||||||
fuzzy = true, -- false will only do exact matching
|
|
||||||
override_generic_sorter = true, -- override the generic sorter
|
|
||||||
override_file_sorter = true, -- override the file sorter
|
|
||||||
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
|
||||||
},
|
|
||||||
media_files = {
|
|
||||||
-- filetypes whitelist
|
|
||||||
filetypes = { "png", "webp", "jpg", "jpeg", "mp4", "webm" },
|
|
||||||
find_cmd = "rg",
|
|
||||||
},
|
|
||||||
emoji = {
|
|
||||||
action = function(emoji)
|
|
||||||
-- argument emoji is a table.
|
|
||||||
-- {name="", value="", cagegory="", description=""}
|
|
||||||
|
|
||||||
vim.fn.setreg("*", emoji.value)
|
|
||||||
print([[Press p or "*p to paste this emoji]] .. emoji.value)
|
|
||||||
|
|
||||||
-- insert emoji when picked
|
|
||||||
-- vim.api.nvim_put({ emoji.value }, 'c', false, true)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
["ui-select"] = {
|
|
||||||
require("telescope.themes").get_dropdown({
|
|
||||||
-- even more opts
|
|
||||||
}),
|
|
||||||
|
|
||||||
-- pseudo code / specification for writing custom displays, like the one
|
|
||||||
-- for "codeactions"
|
|
||||||
-- specific_opts = {
|
|
||||||
-- [kind] = {
|
|
||||||
-- make_indexed = function(items) -> indexed_items, width,
|
|
||||||
-- make_displayer = function(widths) -> displayer
|
|
||||||
-- make_display = function(displayer) -> function(e)
|
|
||||||
-- make_ordinal = function(e) -> string
|
|
||||||
-- },
|
|
||||||
-- -- for example to disable the custom builtin "codeactions" display
|
|
||||||
-- do the following
|
|
||||||
-- codeactions = false,
|
|
||||||
-- }
|
|
||||||
},
|
|
||||||
lazy = {
|
|
||||||
-- Optional theme (the extension doesn't set a default theme)
|
|
||||||
theme = "dropdown",
|
|
||||||
previewer = false,
|
|
||||||
-- Whether or not to show the icon in the first column
|
|
||||||
show_icon = true,
|
|
||||||
-- Mappings for the actions
|
|
||||||
mappings = {
|
|
||||||
open_in_browser = "<C-o>",
|
|
||||||
open_in_file_browser = "<M-b>",
|
|
||||||
open_in_find_files = "<C-f>",
|
|
||||||
open_in_live_grep = "<C-g>",
|
|
||||||
open_plugins_picker = "<C-b>", -- Works only after having called first another action
|
|
||||||
open_lazy_root_find_files = "<C-r>f",
|
|
||||||
open_lazy_root_live_grep = "<C-r>g",
|
|
||||||
},
|
|
||||||
-- Other telescope configuration options
|
|
||||||
},
|
|
||||||
http = {
|
|
||||||
-- How the mozilla url is opened. By default will be configured based on OS:
|
|
||||||
open_url = "xdg-open %s", -- UNIX
|
|
||||||
-- open_url = 'open %s' -- OSX
|
|
||||||
-- open_url = 'start %s' -- Windows
|
|
||||||
},
|
|
||||||
heading = {
|
|
||||||
treesitter = true,
|
|
||||||
picker_opts = {
|
|
||||||
layout_config = { width = 0.8, preview_width = 0.5 },
|
|
||||||
layout_strategy = "horizontal",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
bibtex = {
|
|
||||||
-- Depth for the *.bib file
|
|
||||||
depth = 1,
|
|
||||||
-- Custom format for citation label
|
|
||||||
custom_formats = {},
|
|
||||||
-- Format to use for citation label.
|
|
||||||
-- Try to match the filetype by default, or use 'plain'
|
|
||||||
format = "",
|
|
||||||
-- Path to global bibliographies (placed outside of the project)
|
|
||||||
global_files = {},
|
|
||||||
-- Define the search keys to use in the picker
|
|
||||||
search_keys = { "author", "year", "title" },
|
|
||||||
-- Template for the formatted citation
|
|
||||||
citation_format = "{{author}} ({{year}}), {{title}}.",
|
|
||||||
-- Only use initials for the authors first name
|
|
||||||
citation_trim_firstname = true,
|
|
||||||
-- Max number of authors to write in the formatted citation
|
|
||||||
-- following authors will be replaced by "et al."
|
|
||||||
citation_max_auth = 2,
|
|
||||||
-- Context awareness disabled by default
|
|
||||||
context = false,
|
|
||||||
-- Fallback to global/directory .bib files if context not found
|
|
||||||
-- This setting has no effect if context = false
|
|
||||||
context_fallback = true,
|
|
||||||
-- Wrapping in the preview window is disabled by default
|
|
||||||
wrap = false,
|
|
||||||
},
|
|
||||||
frecency = {
|
|
||||||
path_display = { "short" },
|
|
||||||
ignore_patterns = { "*/.git/*", "*/.DS_Store/*", "*/.venv/*", "*/tmp/*", "*/bruno/*" },
|
|
||||||
default_workspace = "CWD",
|
|
||||||
hide_current_buffer = true,
|
|
||||||
show_scores = true,
|
|
||||||
},
|
|
||||||
package_info = {
|
|
||||||
-- Optional theme (the extension doesn't set a default theme)
|
|
||||||
theme = "ivy",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
|
||||||
local telescope = require("telescope")
|
|
||||||
|
|
||||||
telescope.setup(opts)
|
|
||||||
|
|
||||||
pcall(telescope.load_extension, "fzf")
|
|
||||||
pcall(telescope.load_extension, "ui-select")
|
|
||||||
pcall(telescope.load_extension, "media_files") -- Telescope media_files
|
|
||||||
pcall(telescope.load_extension, "lazy") -- Telescope lazy
|
|
||||||
pcall(telescope.load_extension, "software-licenses") -- Telescope software-licenses list
|
|
||||||
pcall(telescope.load_extension, "heading") -- Telescope heading
|
|
||||||
pcall(telescope.load_extension, "luasnip") -- Telescope luasnip
|
|
||||||
pcall(telescope.load_extension, "git_diffs") -- Telescope git_diffs diff_commits
|
|
||||||
pcall(telescope.load_extension, "bibtex") -- Telescope bibtex
|
|
||||||
pcall(telescope.load_extension, "harpoon")
|
|
||||||
pcall(telescope.load_extension, "frecency")
|
|
||||||
pcall(telescope.load_extension, "remote-sshfs")
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
-- Action Keymap Description
|
|
||||||
-- insert_log_below glj Insert a log statement below the cursor
|
|
||||||
-- insert_log_above glk Insert a log statement above the cursor
|
|
||||||
-- insert_plain_log_below glo Insert a plain log statement below the cursor
|
|
||||||
-- insert_plain_log_above gl<S-o> Insert a plain log statement above the cursor
|
|
||||||
-- add_log_targets_to_batch gla Add a log target to the batch
|
|
||||||
-- insert_batch_log glb Insert a batch log statement
|
|
||||||
return {
|
|
||||||
"Goose97/timber.nvim",
|
|
||||||
version = "*",
|
|
||||||
event = "VeryLazy",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
log_templates = {
|
|
||||||
default = {
|
|
||||||
python = [[logger.debug(f"{%log_target=}")]],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
|
||||||
require("timber").setup(opts)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@ -1,69 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
opts = {
|
opts = {},
|
||||||
signs = true, -- show icons in the signs column
|
|
||||||
sign_priority = 8, -- sign priority
|
|
||||||
-- keywords recognized as todo comments
|
|
||||||
keywords = {
|
|
||||||
FIX = {
|
|
||||||
icon = " ", -- icon used for the sign, and in search results
|
|
||||||
color = "error", -- can be a hex color, or a named color (see below)
|
|
||||||
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
|
|
||||||
-- signs = false, -- configure signs for some keywords individually
|
|
||||||
},
|
|
||||||
TODO = { icon = " ", color = "info" },
|
|
||||||
HACK = { icon = " ", color = "warning" },
|
|
||||||
WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
|
|
||||||
PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
|
||||||
NOTE = { icon = " ", color = "hint", alt = { "INFO", "HINT" } },
|
|
||||||
TEST = { icon = "⏲ ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
|
|
||||||
},
|
|
||||||
gui_style = {
|
|
||||||
fg = "NONE", -- The gui style to use for the fg highlight group.
|
|
||||||
bg = "BOLD", -- The gui style to use for the bg highlight group.
|
|
||||||
},
|
|
||||||
|
|
||||||
merge_keywords = true, -- when true, custom keywords will be merged with the defaults
|
|
||||||
-- highlighting of the line containing the todo comment
|
|
||||||
-- * before: highlights before the keyword (typically comment characters)
|
|
||||||
-- * keyword: highlights of the keyword
|
|
||||||
-- * after: highlights after the keyword (todo text)
|
|
||||||
highlight = {
|
|
||||||
multiline = true, -- enable multine todo comments
|
|
||||||
multiline_pattern = "^.", -- lua pattern to match the next multiline from the start of the matched keyword
|
|
||||||
multiline_context = 10, -- extra lines that will be re-evaluated when changing a line
|
|
||||||
before = "", -- "fg" or "bg" or empty
|
|
||||||
keyword = "wide", -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty. (wide and wide_bg is the same as bg, but will also highlight surrounding characters, wide_fg acts accordingly but with fg)
|
|
||||||
after = "fg", -- "fg" or "bg" or empty
|
|
||||||
pattern = [[.*<(KEYWORDS)\s*:]], -- pattern or table of patterns, used for highlighting (vim regex)
|
|
||||||
comments_only = true, -- uses treesitter to match keywords in comments only
|
|
||||||
max_line_len = 400, -- ignore lines longer than this
|
|
||||||
exclude = {}, -- list of file types to exclude highlighting
|
|
||||||
},
|
|
||||||
-- list of named colors where we try to extract the guifg from the
|
|
||||||
-- list of highlight groups or use the hex color if hl not found as a fallback
|
|
||||||
colors = {
|
|
||||||
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
|
|
||||||
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
|
|
||||||
info = { "DiagnosticInfo", "#2563EB" },
|
|
||||||
hint = { "DiagnosticHint", "#10B981" },
|
|
||||||
default = { "Identifier", "#7C3AED" },
|
|
||||||
test = { "Identifier", "#FF00FF" },
|
|
||||||
},
|
|
||||||
search = {
|
|
||||||
command = "rg",
|
|
||||||
args = {
|
|
||||||
"--color=never",
|
|
||||||
"--no-heading",
|
|
||||||
"--with-filename",
|
|
||||||
"--line-number",
|
|
||||||
"--column",
|
|
||||||
},
|
|
||||||
-- regex that will be used to match keywords.
|
|
||||||
-- don't replace the (KEYWORDS) placeholder
|
|
||||||
pattern = [[\b(KEYWORDS):]], -- ripgrep regex
|
|
||||||
-- pattern = [[\b(KEYWORDS)\b]], -- match without the extra colon. You'll likely get false positives
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,8 +3,8 @@ return {
|
|||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
"kristoferssolo/tree-sitter-bruno",
|
"kristoferssolo/tree-sitter-bruno",
|
||||||
"OXY2DEV/markview.nvim",
|
"OXY2DEV/markview.nvim",
|
||||||
{
|
{
|
||||||
@ -52,10 +52,10 @@ return {
|
|||||||
incremenral_selection = {
|
incremenral_selection = {
|
||||||
enable = false,
|
enable = false,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
init_selection = "<C-leader>",
|
init_selection = "<A-o>",
|
||||||
node_selection = "<C-space>",
|
node_selection = "<A-o>",
|
||||||
scope_selection = "<C-space>",
|
scope_selection = "<A-O>",
|
||||||
node_deselection = "<C-backspace>",
|
node_deselection = "<A-i>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
textobjects = {
|
textobjects = {
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
local ft = { "javascriptreact", "typescriptreact", "javascript", "typescript" }
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"pmizio/typescript-tools.nvim",
|
"pmizio/typescript-tools.nvim",
|
||||||
@ -5,7 +6,7 @@ return {
|
|||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
},
|
},
|
||||||
ft = { "javascriptreact", "typescriptreact", "javascript", "typescript" },
|
ft = ft,
|
||||||
opts = {
|
opts = {
|
||||||
on_attach = function(client)
|
on_attach = function(client)
|
||||||
client.server_capabilities.documentFormattingProvider = false
|
client.server_capabilities.documentFormattingProvider = false
|
||||||
@ -33,7 +34,7 @@ return {
|
|||||||
-- memory limit in megabytes or "auto"(basically no limit)
|
-- memory limit in megabytes or "auto"(basically no limit)
|
||||||
tsserver_max_memory = "auto",
|
tsserver_max_memory = "auto",
|
||||||
-- described below
|
-- described below
|
||||||
tsserver_format_options = function(ft)
|
tsserver_format_options = function(_)
|
||||||
-- Return empty table to disable formatting
|
-- Return empty table to disable formatting
|
||||||
return {}
|
return {}
|
||||||
end,
|
end,
|
||||||
@ -72,13 +73,13 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dmmulroy/ts-error-translator.nvim",
|
"dmmulroy/ts-error-translator.nvim",
|
||||||
ft = { "javascriptreact", "typescriptreact", "javascript", "typescript" },
|
ft = ft,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/ts-comments.nvim",
|
"folke/ts-comments.nvim",
|
||||||
opts = {},
|
opts = {},
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
enabled = vim.fn.has("nvim-0.10.0") == 1,
|
enabled = vim.fn.has("nvim-0.10.0") == 1,
|
||||||
ft = { "javascriptreact", "typescriptreact", "javascript", "typescript" },
|
ft = ft,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,43 +18,5 @@ return {
|
|||||||
build = function()
|
build = function()
|
||||||
require("typst-preview").update()
|
require("typst-preview").update()
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {},
|
||||||
-- Setting this true will enable printing debug information with print()
|
|
||||||
debug = false,
|
|
||||||
|
|
||||||
-- Custom format string to open the output link provided with %s
|
|
||||||
-- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview'
|
|
||||||
open_cmd = "xdg-open %s",
|
|
||||||
-- open_cmd = "floorp %s -P typst-preview --class typst-preview",
|
|
||||||
|
|
||||||
-- Setting this to 'always' will invert black and white in the preview
|
|
||||||
-- Setting this to 'auto' will invert depending if the browser has enable
|
|
||||||
-- dark mode
|
|
||||||
invert_colors = nil,
|
|
||||||
-- Whether the preview will follow the cursor in the source file
|
|
||||||
follow_cursor = true,
|
|
||||||
|
|
||||||
-- Provide the path to binaries for dependencies.
|
|
||||||
-- Setting this will skip the download of the binary by the plugin.
|
|
||||||
-- Warning: Be aware that your version might be older than the one
|
|
||||||
-- required.
|
|
||||||
dependencies_bin = {
|
|
||||||
-- if you are using tinymist, just set ['typst-preview'] = "tinymist".
|
|
||||||
["typst-preview"] = nil,
|
|
||||||
["websocat"] = nil,
|
|
||||||
},
|
|
||||||
-- A list of extra arguments (or nil) to be passed to previewer.
|
|
||||||
-- For example, extra_args = { "--input=ver=draft", "--ignore-system-fonts" }
|
|
||||||
extra_args = nil,
|
|
||||||
-- This function will be called to determine the root of the typst project
|
|
||||||
get_root = function(path_of_main_file)
|
|
||||||
return vim.fn.fnamemodify(path_of_main_file, ":p:h")
|
|
||||||
end,
|
|
||||||
|
|
||||||
-- This function will be called to determine the main file of the typst
|
|
||||||
-- project.
|
|
||||||
get_main_file = function(path_of_buffer)
|
|
||||||
return path_of_buffer
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ return {
|
|||||||
{ "<leader>q", group = "Persistence" },
|
{ "<leader>q", group = "Persistence" },
|
||||||
{ "<leader>l", group = "LSP" },
|
{ "<leader>l", group = "LSP" },
|
||||||
{ "<leader>w", group = "Workspace" },
|
{ "<leader>w", group = "Workspace" },
|
||||||
{ "<leader>p", group = "Telescope", { "<leader>pd", group = "Development" } },
|
{ "<leader>f", group = "Picker", { "<leader>pd", group = "Development" } },
|
||||||
{ "<leader>z", group = "Zen" },
|
{ "<leader>z", group = "Zen" },
|
||||||
{ "<leader>o", group = "Action" },
|
{ "<leader>o", group = "Action" },
|
||||||
{ "<leader>r", group = "Rust" },
|
{ "<leader>r", group = "Rust" },
|
||||||
|
|||||||
@ -3,7 +3,7 @@ vim.cmd([[
|
|||||||
anoremenu PopUp.Inspect <cmd>Inspect<cr>
|
anoremenu PopUp.Inspect <cmd>Inspect<cr>
|
||||||
amenu PopUp.-1- <NOP>
|
amenu PopUp.-1- <NOP>
|
||||||
anoremenu PopUp.Definition <cmd>lua vim.lsp.buf.definition()<cr>
|
anoremenu PopUp.Definition <cmd>lua vim.lsp.buf.definition()<cr>
|
||||||
anoremenu PopUp.References <cmd>Telescope lsp_references<cr>
|
anoremenu PopUp.References <cmd>lua nacks.picker.lsp_references()<cr>
|
||||||
nnoremenu PopUp.Back <C-t>
|
nnoremenu PopUp.Back <C-t>
|
||||||
amenu PopUp.-2- <NOP>
|
amenu PopUp.-2- <NOP>
|
||||||
amenu PopUp.URL gx
|
amenu PopUp.URL gx
|
||||||
|
|||||||
@ -2,6 +2,7 @@ std = "neovim"
|
|||||||
|
|
||||||
[rules]
|
[rules]
|
||||||
global_usage = "allow"
|
global_usage = "allow"
|
||||||
|
undefined_variable = "allow"
|
||||||
multiple_statements = "allow"
|
multiple_statements = "allow"
|
||||||
incorrect_standard_library_use = "allow"
|
incorrect_standard_library_use = "allow"
|
||||||
mixed_table = "allow"
|
mixed_table = "allow"
|
||||||
|
|||||||
1
snippets/all.lua
Normal file
1
snippets/all.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
return {}
|
||||||
3
snippets/c.lua
Normal file
3
snippets/c.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
return {}
|
||||||
3
snippets/cmake.lua
Normal file
3
snippets/cmake.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
return {}
|
||||||
3
snippets/cpp.lua
Normal file
3
snippets/cpp.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
return {}
|
||||||
@ -1,22 +1,4 @@
|
|||||||
if not pcall(require, "luasnip") then
|
---@diagnostic disable: undefined-global
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
|
||||||
|
|
||||||
local s = ls.snippet
|
|
||||||
local sn = ls.sn
|
|
||||||
local i = ls.insert_node
|
|
||||||
local t = ls.text_node
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
|
|
||||||
local shared = require("config.snips")
|
|
||||||
|
|
||||||
local newline = function(text)
|
|
||||||
return t({ "", text })
|
|
||||||
end
|
|
||||||
|
|
||||||
local require_var = function(args, _)
|
local require_var = function(args, _)
|
||||||
local text = args[1][1] or ""
|
local text = args[1][1] or ""
|
||||||
@ -32,12 +14,12 @@ local require_var = function(args, _)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
ls.add_snippets("lua", {
|
return {
|
||||||
s(
|
s(
|
||||||
"lf",
|
"lf",
|
||||||
fmt(
|
fmt(
|
||||||
[[
|
[[
|
||||||
local {} = function({})
|
local function {}({})
|
||||||
{}
|
{}
|
||||||
end{}
|
end{}
|
||||||
]],
|
]],
|
||||||
@ -70,11 +52,4 @@ ls.add_snippets("lua", {
|
|||||||
i(1),
|
i(1),
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
s(
|
}
|
||||||
"treq",
|
|
||||||
fmt([[ local {} = require("telescope.{}") ]], {
|
|
||||||
d(2, require_var, { 1 }),
|
|
||||||
i(1),
|
|
||||||
})
|
|
||||||
),
|
|
||||||
})
|
|
||||||
@ -1,13 +1,6 @@
|
|||||||
if not pcall(require, "luasnip") then
|
---@diagnostic disable: undefined-global
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
return {
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
|
|
||||||
ls.add_snippets("markdown", {
|
|
||||||
s(
|
s(
|
||||||
"ket",
|
"ket",
|
||||||
fmt(
|
fmt(
|
||||||
@ -47,4 +40,4 @@ ls.add_snippets("markdown", {
|
|||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
})
|
}
|
||||||
@ -1,15 +1,6 @@
|
|||||||
if not pcall(require, "luasnip") then
|
---@diagnostic disable: undefined-global
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local ls = require("luasnip")
|
return {
|
||||||
local s = ls.snippet
|
|
||||||
local i = ls.insert_node
|
|
||||||
local t = ls.text_node
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local c = ls.choice_node
|
|
||||||
|
|
||||||
ls.add_snippets("python", {
|
|
||||||
s(
|
s(
|
||||||
"logger",
|
"logger",
|
||||||
fmt(
|
fmt(
|
||||||
@ -97,4 +88,17 @@ ls.add_snippets("python", {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
})
|
}, {
|
||||||
|
s(
|
||||||
|
"__",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
__<init>__<>
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
init = i(1),
|
||||||
|
i(0),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
}
|
||||||
233
snippets/rust.lua
Normal file
233
snippets/rust.lua
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
local snippets = {
|
||||||
|
s("p", fmta([[println!("{}", <>)]], { i(0) })),
|
||||||
|
s(
|
||||||
|
"modtest",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
<>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{ i(0) }
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"test",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[test]
|
||||||
|
fn <name>() {
|
||||||
|
<body>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1),
|
||||||
|
body = i(0),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"rstest",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[rstest]
|
||||||
|
#[case(<case>)]
|
||||||
|
fn <name>(<args>) {
|
||||||
|
<body>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1),
|
||||||
|
args = i(2),
|
||||||
|
case = i(3),
|
||||||
|
body = i(0),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"tmain",
|
||||||
|
fmt(
|
||||||
|
[[
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() -> Result<()> {{
|
||||||
|
{}
|
||||||
|
}}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
i(1, "todo!();"),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"dead",
|
||||||
|
fmt(
|
||||||
|
[[
|
||||||
|
#[allow(dead_code)]
|
||||||
|
]],
|
||||||
|
{}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
}
|
||||||
|
|
||||||
|
local function has_bevy()
|
||||||
|
local cwd = vim.fn.getcwd()
|
||||||
|
local cargo_toml = cwd .. "/Cargo.toml"
|
||||||
|
|
||||||
|
if vim.fn.filereadable(cargo_toml) == 1 then
|
||||||
|
local contents = vim.fn.readfile(cargo_toml)
|
||||||
|
for _, line in ipairs(contents) do
|
||||||
|
if line:match("^%s*bevy%s*=") or line:find("bevy") and not line:find("bevy%.") then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
local bevy_snippets = {
|
||||||
|
s(
|
||||||
|
"component",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[derive(Debug, Reflect, Component)]
|
||||||
|
#[reflect(Component)]
|
||||||
|
pub struct <name><params>
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1, "Component"),
|
||||||
|
params = c(2, {
|
||||||
|
t(";"),
|
||||||
|
t("( );"),
|
||||||
|
t(" { }"),
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"event",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[derive(Debug, Event)]
|
||||||
|
pub struct <name><params>
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1, "Event"),
|
||||||
|
params = c(2, {
|
||||||
|
t(";"),
|
||||||
|
t("( );"),
|
||||||
|
t(" { }"),
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"resource",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[derive(Debug, Default, Reflect, Resource)]
|
||||||
|
#[reflect(Resource)]
|
||||||
|
pub struct <name><params>
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1, "Resource"),
|
||||||
|
params = c(2, {
|
||||||
|
t(";"),
|
||||||
|
t("( );"),
|
||||||
|
t(" { }"),
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"schedule",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, ScheduleLabel)]
|
||||||
|
pub struct <name><params>
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1, "Resource"),
|
||||||
|
params = c(2, {
|
||||||
|
t(";"),
|
||||||
|
t("( );"),
|
||||||
|
t(" { }"),
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"state",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default, States)]
|
||||||
|
pub enum <name> {
|
||||||
|
#[default]
|
||||||
|
<default>,
|
||||||
|
<variants>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1, "State"),
|
||||||
|
default = i(2, "Default"),
|
||||||
|
variants = i(0),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"systemset",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, SystemSet)]
|
||||||
|
pub enum <name> {
|
||||||
|
<body>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1),
|
||||||
|
body = i(2),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"plugin",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub(super) fn plugin(app: &mut App) {
|
||||||
|
<body>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
body = i(0),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
"query",
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
fn <name>(<args>) {
|
||||||
|
<body>
|
||||||
|
}
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
name = i(1, "sytem"),
|
||||||
|
args = i(2, "args"),
|
||||||
|
body = i(0),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
|
}
|
||||||
|
|
||||||
|
if has_bevy() then
|
||||||
|
vim.tbl_extend("force", snippets, bevy_snippets)
|
||||||
|
end
|
||||||
|
|
||||||
|
return snippets
|
||||||
33
snippets/typst.lua
Normal file
33
snippets/typst.lua
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
return {
|
||||||
|
s(
|
||||||
|
{ trig = "([^%s]+)t", name = "Superscript", regTrig = true },
|
||||||
|
fmta("(<>)^(<>)", {
|
||||||
|
f(function(_, snip)
|
||||||
|
return snip.captures[1]
|
||||||
|
end),
|
||||||
|
i(0),
|
||||||
|
})
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
{ trig = "([^%s]+)b", name = "Subscript", regTrig = true },
|
||||||
|
fmta("(<>)_(<>)", {
|
||||||
|
f(function(_, snip)
|
||||||
|
return snip.captures[1]
|
||||||
|
end),
|
||||||
|
i(0),
|
||||||
|
})
|
||||||
|
),
|
||||||
|
s(
|
||||||
|
{ trig = "([^%s]+)r", name = "Root", regTrig = true },
|
||||||
|
fmta("sqrt(<>)", {
|
||||||
|
f(function(_, snip)
|
||||||
|
return snip.captures[1]
|
||||||
|
end),
|
||||||
|
})
|
||||||
|
),
|
||||||
|
}, { -- autosnippets
|
||||||
|
s({ trig = "mt", name = "Math Block" }, fmta("$<>$", { i(1) })),
|
||||||
|
s({ trig = "mmt", name = "Multiline Math Block" }, fmta("$ <> $", { i(1) })),
|
||||||
|
}
|
||||||
@ -624,3 +624,8 @@ Rūpes
|
|||||||
proaktīva
|
proaktīva
|
||||||
Proaktīvs
|
Proaktīvs
|
||||||
saprotami
|
saprotami
|
||||||
|
iekavās
|
||||||
|
iekavām
|
||||||
|
viennozīmīgu
|
||||||
|
iekavas
|
||||||
|
atbilsoši
|
||||||
|
|||||||
Binary file not shown.
10
stylua.toml
10
stylua.toml
@ -1,10 +0,0 @@
|
|||||||
column_width = 120
|
|
||||||
line_endings = "Unix"
|
|
||||||
indent_type = "Tabs"
|
|
||||||
indent_width = 4
|
|
||||||
quote_style = "AutoPreferDouble"
|
|
||||||
call_parentheses = "Always"
|
|
||||||
collapse_simple_statement = "Never"
|
|
||||||
|
|
||||||
[sort_requires]
|
|
||||||
enabled = false
|
|
||||||
Loading…
Reference in New Issue
Block a user