Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
506 changes: 491 additions & 15 deletions init.lua

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions kullanım.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
tpope/vim-fugitive:
Git işlemlerini Vim içinde kolay yapmayı sağlar.
config fonksiyonunda iki kısayol tanımlanmış:

<leader>gg: Dikey bölmede :G komutunu çalıştırır (Fugitive Git arayüzü).

<leader>gb: :0G komutunu çalıştırır, buffer bazlı Fugitive.

'tpope/vim-rhubarb':
GitHub ile entegrasyon sağlayan ufak eklenti (örneğin, :Gbrowse komutu verir).
Burada sadece tanımlanmış, config verilmemiş.



----


numToStr/Comment.nvim, Neovim/Vim için satır ve blok yorumlama işlemlerini kolaylaştırır.

Hem normal modda hem de visual modda kısayollar sağlar.

Varsayılan kullanım:
Normal mod: gcc → Bulunduğun satırı yorumlar / yorumunu kaldırır

Visual mod: gc → Seçili satırları yorumlar / yorumunu kaldırır

Yani gcc tek satır, gc ise seçili alan üzerinde çalışır.
Dosya tipine göre doğru yorum işareti (//, #, -- vb.) otomatik seçilir.

---

nvim-telescope/telescope.nvim
-- Dosya arama
vim.keymap.set('n', '<leader>ff', require('telescope.builtin').find_files, { desc = 'Dosya Ara' })

-- Metin içinde arama
vim.keymap.set('n', '<leader>fg', require('telescope.builtin').live_grep, { desc = 'Metin Ara' })

-- Açık buffer'lar arasında geçiş
vim.keymap.set('n', '<leader>fb', require('telescope.builtin').buffers, { desc = 'Buffer Ara' })

-- Yardım dökümanlarında arama
vim.keymap.set('n', '<leader>fh', require('telescope.builtin').help_tags, { desc = 'Help Ara' })


Kısayol Komut / Fonksiyon Açıklama
<leader>sh help_tags Neovim yardım dosyalarında arama yapar.
<leader>sk keymaps Tüm tanımlı keymap’leri listeler.
<leader>sf find_files Projede dosya ismine göre arar.
<leader>ss builtin Tüm Telescope picker’larını listeler.
<leader>sw grep_string İmlecin altındaki kelimeyi proje içinde arar.
<leader>sg live_grep Projede metin arar (ripgrep gerekir).
<leader>sd diagnostics LSP’den gelen hataları ve uyarıları listeler.
<leader>sr resume En son yapılan Telescope aramasını tekrar açar.
<leader>s. oldfiles Son açılan dosyaları listeler.
<leader><leader> buffers Açık buffer’lar arasında geçiş yapar.
<leader>/ current_buffer_fuzzy_find Sadece açık olan buffer içinde bulanık arama yapar.
<leader>s/ live_grep { grep_open_files = true } Sadece açık olan dosyalarda arama yapar.
<leader>sn find_files { cwd = vim.fn.stdpath('config') }
83 changes: 83 additions & 0 deletions lua/kickstart/plugins/autoformat.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
-- autoformat.lua
--
-- Use your language server to automatically format your code on save.
-- Adds additional commands as well to manage the behavior

return {
'neovim/nvim-lspconfig',
config = function()
-- Switch for controlling whether you want autoformatting.
-- Use :KickstartFormatToggle to toggle autoformatting on or off
local format_is_enabled = true
vim.api.nvim_create_user_command('KickstartFormatToggle', function()
format_is_enabled = not format_is_enabled
print('Setting autoformatting to: ' .. tostring(format_is_enabled))
end, {})

-- Create an augroup that is used for managing our formatting autocmds.
-- We need one augroup per client to make sure that multiple clients
-- can attach to the same buffer without interfering with each other.
local _augroups = {}
local get_augroup = function(client)
if not _augroups[client.id] then
local group_name = 'kickstart-lsp-format-' .. client.name
local id = vim.api.nvim_create_augroup(group_name, { clear = true })
_augroups[client.id] = id
end

return _augroups[client.id]
end

-- Whenever an LSP attaches to a buffer, we will run this function.
--
-- See `:help LspAttach` for more information about this autocmd event.
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('kickstart-lsp-attach-format', { clear = true }),
-- This is where we attach the autoformatting for reasonable clients
callback = function(args)
local client_id = args.data.client_id
local client = vim.lsp.get_client_by_id(client_id)
local bufnr = args.buf

if client == nil then
return
end

-- Only attach to clients that support document formatting
if not client.server_capabilities.documentFormattingProvider then
return
end

-- Tsserver usually works poorly. Sorry you work with bad languages
-- You can remove this line if you know what you're doing :)
if client.name == 'ts_ls' then
return
end

-- i want prettier to format json files
if client.name == 'jsonls' then
return
end

-- Create an autocmd that will run *before* we save the buffer.
-- Run the formatting command for the LSP that has just attached.
vim.api.nvim_create_autocmd('BufWritePre', {
group = get_augroup(client),
buffer = bufnr,
callback = function()
if not format_is_enabled then
return
end

vim.lsp.buf.format {
async = false,
filter = function(c)
return c.id == client.id
end,
}
end,
})
end,
})
end,
}
27 changes: 27 additions & 0 deletions lua/phoenix/bleed-purple/colors.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local hsl = require('phoenix.utils.color').hsl

local Colors = {}

Colors.dark = {
black = hsl(240, 7, 13),
bblack = hsl(240, 7, 16),
red = hsl(1, 83, 40),
bred = hsl(1, 83, 50),
bgreen = hsl(156, 100, 48),
green = hsl(172, 100, 34),
yellow = hsl(40, 100, 74),
byellow = hsl(40, 100, 84),
blue = hsl(220, 100, 56),
bblue = hsl(220, 100, 66),
magenta = hsl(264, 100, 64),
bmagenta = hsl(264, 100, 72),
cyan = hsl(180, 98, 26),
bcyan = hsl(180, 100, 32),
white = hsl(240, 7, 84),
bwhite = hsl(240, 7, 94),
}

Colors.dark.status_bg = Colors.dark.black
Colors.dark.dimmed_text = hsl(240, 7, 25)

return Colors
Loading
Loading