initial commit

This commit is contained in:
THEON-1
2025-10-10 12:19:28 +02:00
commit d2e8cd40f1
23 changed files with 499 additions and 0 deletions

48
lua/plugins/blink.lua Normal file
View File

@@ -0,0 +1,48 @@
return {
"saghen/blink.cmp",
version = '1.*',
---@module 'blink.cmp'
---@type blink.cmp.config
opts = {
keymap = {
preset = 'default',
['<Up>'] = { 'select_prev', 'fallback' },
['<Down>'] = { 'select_next', 'fallback' },
['<C-k>'] = { 'select_prev' },
['<C-j>'] = { 'select_next' },
['<C-Enter>'] = { 'accept' },
['<C-BS>'] = { 'cancel' },
['<C-Up>'] = { 'scroll_documentation_up' },
['<C-Down>'] = { 'scroll_documentation_down' },
},
appearance = {
nerd_font_variant = 'mono',
},
completion = {
documentation = {
auto_show = true,
},
},
sources = {
default = {
'lsp',
'path',
'buffer',
},
},
fuzzy = {
implementation = "prefer_rust_with_warning",
},
},
opts_extend = {
"sources.default",
},
}

7
lua/plugins/fugitive.lua Normal file
View File

@@ -0,0 +1,7 @@
return {
'tpope/vim-fugitive',
cmd = {
"G",
},
}

17
lua/plugins/gruvbox.lua Normal file
View File

@@ -0,0 +1,17 @@
return {
"ellisonleao/gruvbox.nvim",
priority = 1000,
config = function()
vim.cmd([[colorscheme gruvbox]])
end,
opts = {
italic = {
strings = false,
emphasis = true,
comments = true,
operators = false,
folds = true,
},
},
}

38
lua/plugins/harpoon.lua Normal file
View File

@@ -0,0 +1,38 @@
return {
'ThePrimeagen/harpoon',
branch = 'harpoon2',
requires = {
{ 'nvim-lua/plenary.nvim' },
{ 'nvim-telescope/telescope.nvim' },
},
keys = {
{ "<leader>a", function() require("harpoon"):list():add() end },
{ "<C-w>", function()
local harpoon = require("harpoon")
local conf = require("telescope.config").values
local function toggle_telescope(harpoon_files)
local file_paths = {}
for _, item in ipairs(harpoon_files.items) do
table.insert(file_paths, item.value)
end
require("telescope.pickers").new({}, {
prompt_title = "Harpoon",
finder = require("telescope.finders").new_table({ results = file_paths }),
previewer = conf.file_previewer({}),
sorter = conf.generic_sorter({}),
}):find()
end
toggle_telescope(harpoon:list())
end, desc = "Open harpoon window" },
{ "<C-1>", function() require("harpoon"):list():select(1) end },
{ "<C-2>", function() require("harpoon"):list():select(2) end },
{ "<C-3>", function() require("harpoon"):list():select(3) end },
{ "<C-4>", function() require("harpoon"):list():select(4) end },
{ "<C-q>", function() require("harpoon"):list():prev() end },
{ "<C-e>", function() require("harpoon"):list():next() end },
},
}

16
lua/plugins/image.lua Normal file
View File

@@ -0,0 +1,16 @@
return {
'3rd/image.nvim',
build = false,
opts = {
processor = 'magick_cli',
backend = 'kitty',
integrations = { markdown = { enabled = true, }, },
max_width = 100,
max_height = 12,
max_height_window_percentage = math.huge,
max_width_window_percentage = math.huge,
window_overlap_clear_enabled = true,
window_overlap_clear_ft_ignore = { 'cmp_menu', 'cmp_docs', '', },
},
}

10
lua/plugins/markdown.lua Normal file
View File

@@ -0,0 +1,10 @@
return {
'MeanderingProgrammer/render-markdown.nvim',
dependencies = {
'nvim-treesitter/nvim-treesitter',
'nvim-mini/mini.nvim',
},
---@module 'render-markdown'
---@type render.md.UserConfig
}

23
lua/plugins/mason.lua Normal file
View File

@@ -0,0 +1,23 @@
return {
"mason-org/mason-lspconfig.nvim",
opts = {
automatic_enable = true,
},
dependencies = {
{
"mason-org/mason.nvim",
opts = {
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
},
lazy = false,
},
"neovim/nvim-lspconfig",
},
}

11
lua/plugins/molten.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
'benlubas/molten-nvim',
version = '^1.1.0',
depencies = { '3rd/image.nvim', },
build = ':UpdateRemotePlugins',
init = function()
vim.g.molten_image_provider = 'image.nvim'
vim.g.molten_output_win_max_height = 20
end,
}

25
lua/plugins/noice.lua Normal file
View File

@@ -0,0 +1,25 @@
return {
'folke/noice.nvim',
event = 'VeryLazy',
dependencies = {
'MunifTanjim/nui.nvim',
'rcarriga/nvim-notify',
},
opts = {
lsp = {
override = {
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
['vim.lsp.util.stylize_markdown'] = true,
['cmp.entry.get_documentation'] = true,
},
},
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
inc_rename = true,
lsp_doc_border = true,
},
},
}

4
lua/plugins/notify.lua Normal file
View File

@@ -0,0 +1,4 @@
return {
'rcarriga/nvim-notify',
}

View File

@@ -0,0 +1,7 @@
return {
"neovim/nvim-lspconfig",
cmd = { 'LspInfo', 'LspInstall', 'LspStart' },
event = { 'BufReadPre', 'BufNewFile' },
dependencies = { 'saghen/blink.cmp' },
}

49
lua/plugins/oil.lua Normal file
View File

@@ -0,0 +1,49 @@
return {
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {
columns = {
"icon",
"permissions",
},
default_file_explorer = true,
view_options = {
show_hidden = true,
},
win_options = {
wrap = false,
signcolumn = "yes",
cursorcolumn = false,
foldcolumn = "0",
spell = false,
list = false,
conceallevel = 3,
concealcursor = "nvic",
},
delete_to_trash = false,
skip_confirm_for_simple_edits = false,
prompt_save_for_select_new_entry = true,
lsp_file_methods = {
enabled = true,
timeout_ms = 1000,
autosave_changes = false,
},
constrain_cursor = "editable",
watch_for_changes = false,
keymaps = {
["g"] = { "actions.show_help", mode = "n" },
["<CR>"] = "actions.select",
["<C-p>"] = "actions.preview",
["-"] = { "actions.open_cwd", mode = "n" },
["+"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
["_"] = "actions.parent",
["*"] = "actions.open_terminal",
},
},
keys = {
{ "_", function() require("oil").open() end, desc = "open files" },
},
lazy = false,
}

26
lua/plugins/telescope.lua Normal file
View File

@@ -0,0 +1,26 @@
return {
'nvim-telescope/telescope.nvim',
branch = '0.1.x',
requires = {
{ 'nvim-lua/plenary.nvim' },
},
config = function()
require('telescope').load_extension("notify")
end,
keys = {
{ "<leader>ff", "<cmd>Telescope find_files<cr>", mode = "n" },
{ "<leader>g", "<cmd>Telescope live_grep<cr>", mode = "n" },
{ "<C-f>", "<cmd>Telescope git_files<cr>", mode = "n" },
},
cmd = {
'Telescope',
},
opts = {
defaults = {
preview = {
treesitter = false,
},
},
},
}

View File

@@ -0,0 +1,7 @@
return {
'nvim-treesitter/nvim-treesitter',
lazy = false,
branch = 'main',
build = ':TSUpdate',
}

7
lua/plugins/undotree.lua Normal file
View File

@@ -0,0 +1,7 @@
return {
'mbbill/undotree',
keys = {
{ "<leader>u", vim.cmd.UndotreeToggle, mode = "n", desc = "Open Undotree" },
},
}