This commit is contained in:
sagiferi
2025-12-29 17:14:39 +01:00
commit c55748a77a
211 changed files with 4983 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
--
-- Add any additional autocmds here
-- with `vim.api.nvim_create_autocmd`
--
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
-- ~/.config/nvim/lua/config/autocmds.lua
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
-- A minta: minden, ami .env-vel kezdődik (pl. .env, .env.local, .env.test)
pattern = ".env*",
callback = function()
-- 1. Kikapcsoljuk a diagnosztikát az aktuális fájlban
vim.diagnostic.enable(false, { bufnr = 0 })
-- Opcionális: Ha nagyon zavar a linter, a fájltípust átállíthatod 'conf'-ra.
-- Ekkor nem lesz shell színezés, de garantáltan nem lesz hibaüzenet se.
-- Ha szereted a színezést, ezt a sort TÖRÖLD ki:
-- vim.bo.filetype = "conf"
end,
})
+11
View File
@@ -0,0 +1,11 @@
return {
"nvim-tree/nvim-tree.lua",
opts = {
filters = {
dotfiles = false,
-- EZ A KULCS:
git_ignored = false,
},
},
}
+3
View File
@@ -0,0 +1,3 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
+53
View File
@@ -0,0 +1,53 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import/override with your plugins
{ import = "plugins" },
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax" } },
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
}, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})
@@ -0,0 +1,10 @@
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("UserLspNoSemantic", {}),
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if not client or not client.server_capabilities then
return
end
client.server_capabilities.semanticTokensProvider = nil
end,
})
+26
View File
@@ -0,0 +1,26 @@
--vim.opt.guicursor = "n-v-c:block,i-ci-ve:ver25,a:blinkwait700-blinkoff400-blinkon250"
-- ~/.config/nvim/lua/config/options.lua
--vim.opt.guicursor = "n-v-c:block,i-ci-ve:block-blinkwait700-blinkon400-blinkoff250,r-cr:hor20,o:hor50"
-- 1. LÉPÉS: Definiáljuk a sárga színt "CursorInsert" néven
-- Azért kell az autocmd, hogy a színtéma betöltése után is megmaradjon/létrejöjjön
vim.api.nvim_create_autocmd({ "VimEnter", "ColorScheme" }, {
callback = function()
-- bg = a kurzor (tömb) színe, fg = a betű színe a kurzor alatt
vim.api.nvim_set_hl(0, "CursorInsert", { fg = "#000000", bg = "#FFFF00" })
end,
})
-- 2. LÉPÉS: A configod, kiegészítve a "-CursorInsert" hivatkozással
-- Figyeld meg: "block-CursorInsert-blink..."
vim.opt.guicursor = "n-v-c:block,i-ci-ve:block-CursorInsert-blinkwait700-blinkon400-blinkoff250,r-cr:hor20,o:hor50"
--vim.api.nvim_create_autocmd("ColorScheme", {
-- pattern = "*", -- Minden témára érvényes
-- callback = function()
-- -- Itt állítjuk be a színt
-- -- fg = foreground (betűszín)
-- -- italic = true (ha dőlten szeretnéd, ha nem, töröld ki ezt a részt)
-- vim.api.nvim_set_hl(0, "Comment", { fg = "#888888", italic = true })
-- end,
--})
+31
View File
@@ -0,0 +1,31 @@
return {
{
-- "Mofiqul/vscode.nvim",
-- lazy = false,
-- priority = 1000,
-- config = function()
-- vim.o.background = "light" -- Fontos, hogy ez legfelül legyen
--
-- require("vscode").setup({
-- -- A te beállításaid:
-- transparent = true,
-- italic_comments = true,
--
-- -- ITT A MEGOLDÁS:
-- -- Felülírjuk a színeket a téma betöltése közben
-- group_overrides = {
-- -- A "#999999" egy kellemes középszürke világos háttérhez.
-- -- Ha sötétebbet akarsz, próbáld: "#707070"
-- -- Ha világosabbat: "#aaaaaa"
-- Comment = { fg = "#999999", italic = true },
--
-- -- Biztonság kedvéért a TreeSitter kommenteket is átállítjuk
-- ["@comment"] = { link = "Comment" },
-- },
-- })
--
-- vim.cmd.colorscheme("vscode")
-- end,
--
},
}
+17
View File
@@ -0,0 +1,17 @@
return {
"kristijanhusak/vim-dadbod-ui",
dependencies = {
{ "tpope/vim-dadbod", lazy = true },
{ "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql" }, lazy = true },
},
cmd = {
"DBUI",
"DBUIToggle",
"DBUIAddConnection",
"DBUIFindBuffer",
},
init = function()
-- Adataidat itt tárolja
vim.g.db_ui_save_location = vim.fn.stdpath("config") .. require("plenary.path").path.sep .. "db_ui"
end,
}
+4
View File
@@ -0,0 +1,4 @@
return {
-- Kikapcsolja a bufferline plugint
{ "akinsho/bufferline.nvim", enabled = false },
}
+197
View File
@@ -0,0 +1,197 @@
-- since this is just an example spec, don't actually load anything here and return an empty spec
-- stylua: ignore
if true then return {} end
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
--
-- In your plugin files, you can:
-- * add extra plugins
-- * disable/enabled LazyVim plugins
-- * override the configuration of LazyVim plugins
return {
-- add gruvbox
{ "ellisonleao/gruvbox.nvim" },
-- Configure LazyVim to load gruvbox
-- {
-- "LazyVim/LazyVim",
-- opts = {
-- colorscheme = "gruvbox",
-- },
-- },
--
-- -- change trouble config
{
"folke/trouble.nvim",
-- opts will be merged with the parent spec
opts = { use_diagnostic_signs = true },
},
-- disable trouble
{ "folke/trouble.nvim", enabled = false },
-- override nvim-cmp and add cmp-emoji
{
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, { name = "emoji" })
end,
},
-- change some telescope options and a keymap to browse plugin files
{
"nvim-telescope/telescope.nvim",
keys = {
-- add a keymap to browse plugin files
-- stylua: ignore
{
"<leader>fp",
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end,
desc = "Find Plugin File",
},
},
-- change some options
opts = {
defaults = {
layout_strategy = "horizontal",
layout_config = { prompt_position = "top" },
sorting_strategy = "ascending",
winblend = 0,
},
},
},
-- add pyright to lspconfig
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
pyright = {},
},
},
},
-- add tsserver and setup with typescript.nvim instead of lspconfig
{
"neovim/nvim-lspconfig",
dependencies = {
"jose-elias-alvarez/typescript.nvim",
init = function()
require("lazyvim.util").lsp.on_attach(function(_, buffer)
-- stylua: ignore
vim.keymap.set("n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" })
vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })
end)
end,
},
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- tsserver will be automatically installed with mason and loaded with lspconfig
tsserver = {},
},
-- you can do any additional lsp server setup here
-- return true if you don't want this server to be setup with lspconfig
---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
setup = {
-- example to setup with typescript.nvim
tsserver = function(_, opts)
require("typescript").setup({ server = opts })
return true
end,
-- Specify * to use this function as a fallback for any server
-- ["*"] = function(server, opts) end,
},
},
},
-- for typescript, LazyVim also includes extra specs to properly setup lspconfig,
-- treesitter, mason and typescript.nvim. So instead of the above, you can use:
{ import = "lazyvim.plugins.extras.lang.typescript" },
-- add more treesitter parsers
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
},
},
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
-- would overwrite `ensure_installed` with the new value.
-- If you'd rather extend the default config, use the code below instead:
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- add tsx and treesitter
vim.list_extend(opts.ensure_installed, {
"tsx",
"typescript",
})
end,
},
-- the opts function can also be used to change the default opts:
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = function(_, opts)
table.insert(opts.sections.lualine_x, {
function()
return "😄"
end,
})
end,
},
-- or you can return new options to override all the defaults
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = function()
return {
--[[add your custom lualine config here]]
}
end,
},
-- use mini.starter instead of alpha
{ import = "lazyvim.plugins.extras.ui.mini-starter" },
-- add jsonls and schemastore packages, and setup treesitter for json, json5 and jsonc
{ import = "lazyvim.plugins.extras.lang.json" },
-- add any tools you want to have installed below
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"stylua",
"shellcheck",
"shfmt",
"flake8",
},
},
},
}
+46
View File
@@ -0,0 +1,46 @@
return {
"stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function()
local conform = require("conform")
conform.setup({
formatters_by_ft = {
-- T3 Stack / Next.js
javascript = { "prettier" },
typescript = { "prettier" },
javascriptreact = { "prettier" },
typescriptreact = { "prettier" },
css = { "prettier" },
html = { "prettier" },
json = { "prettier" },
yaml = { "prettier" },
-- Rust (Beépített, de biztosra mehetünk)
rust = { "rustfmt" },
-- Terraform
terraform = { "terraform_fmt" },
hcl = { "terraform_fmt" },
-- Docker
dockerfile = { "hadolint" }, -- Ha nincs telepítve, vedd ki
},
-- Automatikus formázás mentéskor (Opcionális, de ajánlott)
format_on_save = {
lsp_fallback = true,
async = false,
timeout_ms = 1000,
},
})
-- Billentyűkombináció: Leader + f (mint "Format")
vim.keymap.set({ "n", "v" }, "<leader>f", function()
conform.format({
lsp_fallback = true,
async = false,
timeout_ms = 1000,
})
end, { desc = "Fájl formázása" })
end,
}
+3
View File
@@ -0,0 +1,3 @@
return {
"tpope/vim-fugitive",
}
+12
View File
@@ -0,0 +1,12 @@
return {
"akinsho/git-conflict.nvim",
version = "*",
lazy = false,
opts = {
default_mappings = true,
disable_diagnostics = true,
},
config = function(_, opts)
require("git-conflict").setup(opts)
end,
}
+8
View File
@@ -0,0 +1,8 @@
return {
"sindrets/diffview.nvim",
cmd = { "DiffviewOpen", "DiffviewClose", "DiffviewFileHistory" },
keys = {
{ "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Diff nézet megnyitása" },
{ "<leader>gh", "<cmd>DiffviewFileHistory %<cr>", desc = "Fájl történet (History)" },
},
}
+36
View File
@@ -0,0 +1,36 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- Ikonokhoz kell!
config = function()
require('lualine').setup({
options = {
theme = 'auto', -- Alkalmazkodik a színsémádhoz
globalstatus = false,
},
-- Ez rakja felülre az információkat (Neovim 0.8+ kell hozzá)
winbar = {
lualine_a = { 'mode' },
lualine_b = { 'branch' },
lualine_c = { 'filename' },
lualine_x = { 'diagnostics' },
lualine_y = { 'filetype' },
lualine_z = { 'location' }
},
-- Kikapcsoljuk az alsó sávot
sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = {}
},
inactive_winbar = {
lualine_c = { 'filename' }, -- Itt csak a fájlnevet érdemes hagyni, hogy ne legyen zavaró
},
inactive_sections = {
-- lualine_c = { 'filename' }, -- Itt csak a fájlnevet érdemes hagyni, hogy ne legyen zavaró
},
})
end
}
+16
View File
@@ -0,0 +1,16 @@
return {
"elianiva/telescope-npm.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim"
},
config = function()
-- Betöltjük a telescope kiegészítőt
require("telescope").load_extension("npm")
-- Gyorsbillentyű: <leader>np (mint npm)
vim.keymap.set("n", "<leader>np", function()
require("telescope").extensions.npm.scripts()
end, { desc = "NPM Scripts" })
end,
}
+26
View File
@@ -0,0 +1,26 @@
return {
"danilamihailov/beacon.nvim",
event = "VeryLazy",
config = function()
require("beacon").setup({
enable = true,
size = 40,
fade = true,
minimal_jump = 10, -- Maradjon 10, hogy sima görgetésnél ne villogjon
show_jumps = true,
-- Fontos: ne tiltsuk le a neo-tree-t vagy más típusokat
ignore_filetypes = {},
})
-- TRÜKK: Minden ablakváltásnál (WinEnter) kézzel elsütjük a villanást
vim.api.nvim_create_autocmd({ "WinEnter", "FocusGained" }, {
callback = function()
-- Egy pici késleltetés kellhet, hogy a GUI felépüljön a váltás után
vim.defer_fn(function()
require("beacon").highlight_cursor()
end, 50)
end,
})
end,
}
@@ -0,0 +1,13 @@
return {
"nvim-telescope/telescope.nvim",
opts = {
defaults = {
-- fájlnevek alapján szűr
file_ignore_patterns = {
"node_modules",
"%.next",
},
hidden = true, -- rejtett fájlok továbbra is látszanak
},
},
}
@@ -0,0 +1,16 @@
return {
"christoomey/vim-tmux-navigator",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
"TmuxNavigatePrevious",
},
keys = {
{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
{ "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
{ "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
},
}
+17
View File
@@ -0,0 +1,17 @@
-- Lua config (pl. ~/.config/nvim/lua/plugins/tmux.lua)
return {
"christoomey/vim-tmux-navigator",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
"TmuxNavigatePrevious",
},
keys = {
{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
{ "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
{ "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
},
}
+9
View File
@@ -0,0 +1,9 @@
return {
"mikavilpas/yazi.nvim",
event = "VeryLazy",
keys = { { "<leader>ya", "<cmd>Yazi<cr>", desc = "Yazi" } },
opts = {
show_previews = true,
}
}