init
This commit is contained in:
@@ -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,
|
||||
})
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
opts = {
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
|
||||
-- EZ A KULCS:
|
||||
git_ignored = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -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
|
||||
@@ -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,
|
||||
})
|
||||
@@ -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,
|
||||
--})
|
||||
Reference in New Issue
Block a user