From e244058f03b2f0fbbf6c2ec2205635b06c2dec66 Mon Sep 17 00:00:00 2001 From: Sangho Lee Date: Tue, 24 Jun 2025 22:26:42 +0900 Subject: [PATCH 01/15] feat: add toggle to show/hide diagnostics --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 3adacdeef9f..2f746505baa 100644 --- a/init.lua +++ b/init.lua @@ -559,6 +559,9 @@ require('lazy').setup({ -- For example, in C this would take you to the header. map('grD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') + -- Toggle to show/hide diagnostic messages + map('td', function() vim.diagnostic.enable(not vim.diagnostic.is_enabled()) end, '[T]oggle [D]iagnostics') + -- The following two autocommands are used to highlight references of the -- word under your cursor when your cursor rests there for a little while. -- See `:help CursorHold` for information about when this is executed From 3436e0ea7106fe61ef852b98fb42fb4b051e3b1d Mon Sep 17 00:00:00 2001 From: Kartik Vashistha Date: Sat, 7 Jun 2025 20:02:03 +0100 Subject: [PATCH 02/15] feat: improved lsp setup for nvim > 0.11 --- init.lua | 134 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 87 insertions(+), 47 deletions(-) diff --git a/init.lua b/init.lua index 2f746505baa..dad7ce29dd6 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,4 @@ --[[ - ===================================================================== ==================== READ THIS BEFORE CONTINUING ==================== ===================================================================== @@ -601,52 +600,76 @@ require('lazy').setup({ end, }) - -- Enable the following language servers - -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. - -- See `:help lsp-config` for information about keys and how to configure - ---@type table + -- LSP servers and clients are able to communicate to each other what features they support. + -- By default, Neovim doesn't support everything that is in the LSP specification. + -- When you add blink.cmp, luasnip, etc. Neovim now has *more* capabilities. + -- So, we create new capabilities with blink.cmp, and then broadcast that to the servers. + -- NOTE: The following line is now commented as blink.cmp extends capabilites by default from its internal code: + -- https://github.com/Saghen/blink.cmp/blob/102db2f5996a46818661845cf283484870b60450/plugin/blink-cmp.lua + -- It has been left here as a comment for educational purposes (as the predecessor completion plugin required this explicit step). + -- + -- local capabilities = require("blink.cmp").get_lsp_capabilities() + + -- Language servers can broadly be installed in the following ways: + -- 1) via the mason package manager; or + -- 2) via your system's package manager; or + -- 3) via a release binary from a language server's repo that's accessible somewhere on your system. + -- local servers = { - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + -- Add any additional override configuration in any of the following tables. Available keys are: + -- - cmd (table): Override the default command used to start the server + -- - filetypes (table): Override the default list of associated filetypes for the server + -- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features. + -- - settings (table): Override the default settings passed when initializing the server. + -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ -- - -- Some languages (like typescript) have entire language plugins that can be useful: - -- https://github.com/pmizio/typescript-tools.nvim - -- - -- But for many setups, the LSP (`ts_ls`) will work just fine - -- ts_ls = {}, - - stylua = {}, -- Used to format Lua code - - -- Special Lua Config, as recommended by neovim help docs - lua_ls = { - on_init = function(client) - if client.workspace_folders then - local path = client.workspace_folders[1].name - if path ~= vim.fn.stdpath 'config' and (vim.uv.fs_stat(path .. '/.luarc.json') or vim.uv.fs_stat(path .. '/.luarc.jsonc')) then return end - end - - client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, { - runtime = { - version = 'LuaJIT', - path = { 'lua/?.lua', 'lua/?/init.lua' }, - }, - workspace = { - checkThirdParty = false, - -- NOTE: this is a lot slower and will cause issues when working on your own configuration. - -- See https://github.com/neovim/nvim-lspconfig/issues/3189 - library = vim.tbl_extend('force', vim.api.nvim_get_runtime_file('', true), { - '${3rd}/luv/library', - '${3rd}/busted/library', - }), - }, - }) - end, - settings = { - Lua = {}, + -- Feel free to add/remove any LSPs here that you want to install via Mason. They will automatically be installed and setup. + mason = { + -- clangd = {}, + -- gopls = {}, + -- pyright = {}, + -- rust_analyzer = {}, + -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs + -- + -- Some languages (like typescript) have entire language plugins that can be useful: + -- https://github.com/pmizio/typescript-tools.nvim + -- + -- But for many setups, the LSP (`ts_ls`) will work just fine + -- ts_ls = {}, + -- + lua_ls = { + on_init = function(client) + if client.workspace_folders then + local path = client.workspace_folders[1].name + if path ~= vim.fn.stdpath 'config' and (vim.uv.fs_stat(path .. '/.luarc.json') or vim.uv.fs_stat(path .. '/.luarc.jsonc')) then return end + end + + client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, { + runtime = { + version = 'LuaJIT', + path = { 'lua/?.lua', 'lua/?/init.lua' }, + }, + workspace = { + checkThirdParty = false, + -- NOTE: this is a lot slower and will cause issues when working on your own configuration. + -- See https://github.com/neovim/nvim-lspconfig/issues/3189 + library = vim.tbl_extend('force', vim.api.nvim_get_runtime_file('', true), { + '${3rd}/luv/library', + '${3rd}/busted/library', + }), + }, + }) + end, + settings = { + Lua = {}, + }, }, }, + -- This table contains config for all language servers that are *not* installed via Mason. + -- Structure is identical to the mason table from above. + others = { + -- dartls = {}, + }, } -- Ensure the servers and tools above are installed @@ -656,17 +679,34 @@ require('lazy').setup({ -- :Mason -- -- You can press `g?` for help in this menu. - local ensure_installed = vim.tbl_keys(servers or {}) + -- + -- `mason` had to be setup earlier: to configure its options see the + -- `dependencies` table for `nvim-lspconfig` above. + -- + -- You can add other tools here that you want Mason to install + -- for you, so that they are available from within Neovim. + local ensure_installed = vim.tbl_keys(servers.mason or {}) vim.list_extend(ensure_installed, { -- You can add other tools here that you want Mason to install }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } - for name, server in pairs(servers) do - vim.lsp.config(name, server) - vim.lsp.enable(name) + -- Either merge all additional server configs from the `servers.mason` and `servers.others` tables + -- to the default language server configs as provided by nvim-lspconfig or + -- define a custom server config that's unavailable on nvim-lspconfig. + for server, config in pairs(vim.tbl_extend('keep', servers.mason, servers.others)) do + if vim.fn.empty(config) ~= 1 then vim.lsp.config(server, config) end end + + -- After configuring our language servers, we now enable them + require('mason-lspconfig').setup { + ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer) + automatic_enable = true, -- automatically run vim.lsp.enable() for all servers that are installed via Mason + } + + -- Manually run vim.lsp.enable for all language servers that are *not* installed via Mason + if vim.fn.empty(servers.others) ~= 1 then vim.lsp.enable(vim.tbl_keys(servers.others)) end end, }, From 17878a396b560ea13e107da1150cd7733b4fa860 Mon Sep 17 00:00:00 2001 From: Kartik Vashistha Date: Sun, 8 Jun 2025 01:33:25 +0100 Subject: [PATCH 03/15] refactor: based on pr comments Add lua_ls annotations for improved hover experience and replace vim.fn.empty() with vim.tbl_isempty() --- init.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index dad7ce29dd6..ecac514b0ed 100644 --- a/init.lua +++ b/init.lua @@ -614,7 +614,15 @@ require('lazy').setup({ -- 1) via the mason package manager; or -- 2) via your system's package manager; or -- 3) via a release binary from a language server's repo that's accessible somewhere on your system. - -- + + -- The servers table comprises of the following sub-tables: + -- 1. mason + -- 2. others + -- Both these tables have an identical structure of language server names as keys and + -- a table of language server configuration as values. + ---@class LspServersConfig + ---@field mason table + ---@field others table local servers = { -- Add any additional override configuration in any of the following tables. Available keys are: -- - cmd (table): Override the default command used to start the server @@ -696,7 +704,7 @@ require('lazy').setup({ -- to the default language server configs as provided by nvim-lspconfig or -- define a custom server config that's unavailable on nvim-lspconfig. for server, config in pairs(vim.tbl_extend('keep', servers.mason, servers.others)) do - if vim.fn.empty(config) ~= 1 then vim.lsp.config(server, config) end + if not vim.tbl_isempty(config) then vim.lsp.config(server, config) end end -- After configuring our language servers, we now enable them @@ -706,7 +714,7 @@ require('lazy').setup({ } -- Manually run vim.lsp.enable for all language servers that are *not* installed via Mason - if vim.fn.empty(servers.others) ~= 1 then vim.lsp.enable(vim.tbl_keys(servers.others)) end + if not vim.tbl_isempty(servers.others) then vim.lsp.enable(vim.tbl_keys(servers.others)) end end, }, From 5c38f862436c425fe695194eb4119d9d7ed2b3d6 Mon Sep 17 00:00:00 2001 From: orip Date: Fri, 4 Jul 2025 17:11:10 +0300 Subject: [PATCH 04/15] Undo the formatting changes from https://github.com/oriori1703/kickstart-modular.nvim/pull/7 --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index ecac514b0ed..f613ce138df 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ --[[ + ===================================================================== ==================== READ THIS BEFORE CONTINUING ==================== ===================================================================== From 3a73ab8e1145399be8e5115df4eafa04e040ee62 Mon Sep 17 00:00:00 2001 From: Ori Perry <48057913+oriori1703@users.noreply.github.com> Date: Fri, 4 Jul 2025 17:44:18 +0300 Subject: [PATCH 05/15] Breakpoint editing (#10) feat: Enhances breakpoint editing The keymapping `B` is now configured to guide users through the process of adding a `condition`, `hitCondition`, and `logMessage` to a breakpoint. --------- Co-authored-by: Brian Lehrer <661570+blehrer@users.noreply.github.com> --- lua/kickstart/plugins/debug.lua | 71 ++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 7e58905e830..a0d1a1b294a 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -33,7 +33,76 @@ return { { '', function() require('dap').step_over() end, desc = 'Debug: Step Over' }, { '', function() require('dap').step_out() end, desc = 'Debug: Step Out' }, { 'b', function() require('dap').toggle_breakpoint() end, desc = 'Debug: Toggle Breakpoint' }, - { 'B', function() require('dap').set_breakpoint(vim.fn.input 'Breakpoint condition: ') end, desc = 'Debug: Set Breakpoint' }, + { + 'B', + function() + require 'dap.protocol' + local dap = require 'dap' + -- Search for an existing breakpoint on this line in this buffer + ---@return dap.SourceBreakpoint bp that was either found, or an empty placeholder + local function find_bp() + local buf_bps = require('dap.breakpoints').get(vim.fn.bufnr())[vim.fn.bufnr()] + ---@type dap.SourceBreakpoint + for _, candidate in ipairs(buf_bps) do + if candidate.line and candidate.line == vim.fn.line '.' then + return candidate + end + end + return { condition = '', logMessage = '', hitCondition = '', line = vim.fn.line '.' } + end + + -- Elicit customization via a UI prompt + ---@param bp dap.SourceBreakpoint a breakpoint + local function customize_bp(bp) + local props = { + ['Condition'] = { + value = bp.condition, + setter = function(v) + bp.condition = v + end, + }, + ['Hit Condition'] = { + value = bp.hitCondition, + setter = function(v) + bp.hitCondition = v + end, + }, + ['Log Message'] = { + value = bp.logMessage, + setter = function(v) + bp.logMessage = v + end, + }, + } + local menu_options = {} + for k, _ in pairs(props) do + table.insert(menu_options, k) + end + vim.ui.select(menu_options, { + prompt = 'Edit Breakpoint', + format_item = function(item) + return ('%s: %s'):format(item, props[item].value) + end, + }, function(choice) + if choice == nil then + -- User cancelled the selection + return + end + + props[choice].setter(vim.fn.input { + prompt = ('[%s] '):format(choice), + default = props[choice].value, + }) + + -- Set breakpoint for current line, with customizations (see h:dap.set_breakpoint()) + dap.set_breakpoint(bp.condition, bp.hitCondition, bp.logMessage) + end) + end + + customize_bp(find_bp()) + end, + desc = 'Debug: Edit Breakpoint', + }, -- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception. { '', function() require('dapui').toggle() end, desc = 'Debug: See last session result.' }, }, From 10c4a1ce4f72fbd94fa62a09bcec80ba509ee79e Mon Sep 17 00:00:00 2001 From: Arvin Verain Date: Mon, 2 Jun 2025 11:21:51 +0800 Subject: [PATCH 06/15] docs: Add documentation for lazy's `init` key Guide users towards lazy's `init` key for plugins written in VimScript. --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index f613ce138df..540c0d41bef 100644 --- a/init.lua +++ b/init.lua @@ -269,6 +269,10 @@ require('lazy').setup({ -- end, -- } -- + -- For plugins written in VimScript, use `init = function() ... end` to set + -- configuration options, usually in the format `vim.g.*`. This can also + -- contain conditionals or any other setup logic you need for the plugin. + -- -- Here is a more advanced example where we pass configuration -- options to `gitsigns.nvim`. -- From 074198ddc0a8eb5ee4fb4e99998304494ea93477 Mon Sep 17 00:00:00 2001 From: orip Date: Fri, 4 Jul 2025 17:51:56 +0300 Subject: [PATCH 07/15] Fix formatting for https://github.com/oriori1703/kickstart-modular.nvim/pull/10 --- lua/kickstart/plugins/debug.lua | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index a0d1a1b294a..ecfb28fb4ff 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -57,21 +57,15 @@ return { local props = { ['Condition'] = { value = bp.condition, - setter = function(v) - bp.condition = v - end, + setter = function(v) bp.condition = v end, }, ['Hit Condition'] = { value = bp.hitCondition, - setter = function(v) - bp.hitCondition = v - end, + setter = function(v) bp.hitCondition = v end, }, ['Log Message'] = { value = bp.logMessage, - setter = function(v) - bp.logMessage = v - end, + setter = function(v) bp.logMessage = v end, }, } local menu_options = {} @@ -80,9 +74,7 @@ return { end vim.ui.select(menu_options, { prompt = 'Edit Breakpoint', - format_item = function(item) - return ('%s: %s'):format(item, props[item].value) - end, + format_item = function(item) return ('%s: %s'):format(item, props[item].value) end, }, function(choice) if choice == nil then -- User cancelled the selection From 7e60b75908389bb3cb35176207a11517935d13be Mon Sep 17 00:00:00 2001 From: orip Date: Fri, 11 Jul 2025 18:38:30 +0300 Subject: [PATCH 08/15] Update changes to https://github.com/nvim-lua/kickstart.nvim/pull/1534 --- lua/kickstart/plugins/debug.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index ecfb28fb4ff..6c5d9b8610a 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -36,8 +36,8 @@ return { { 'B', function() - require 'dap.protocol' local dap = require 'dap' + -- Search for an existing breakpoint on this line in this buffer ---@return dap.SourceBreakpoint bp that was either found, or an empty placeholder local function find_bp() @@ -48,6 +48,7 @@ return { return candidate end end + return { condition = '', logMessage = '', hitCondition = '', line = vim.fn.line '.' } end @@ -80,7 +81,6 @@ return { -- User cancelled the selection return end - props[choice].setter(vim.fn.input { prompt = ('[%s] '):format(choice), default = props[choice].value, From 63f9087ac3df584bab06986bc5aac3685bb925d6 Mon Sep 17 00:00:00 2001 From: MN-nagy Date: Sun, 13 Jul 2025 23:21:21 +0300 Subject: [PATCH 09/15] Added blink.cmp buffer completions for markdown/text + some useful options/autocommands --- init.lua | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 540c0d41bef..b19f334b8a2 100644 --- a/init.lua +++ b/init.lua @@ -164,6 +164,15 @@ vim.o.scrolloff = 10 -- See `:help 'confirm'` vim.o.confirm = true +-- Enable undo/redo changes even after closing and reopening a file +vim.opt.undofile = true + +-- Enable smooth scrolling +vim.opt.smoothscroll = true + +-- Highlight max chars per line +-- vim.opt.colorcolumn = '100' + -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` @@ -197,6 +206,9 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn -- or just use to exit terminal mode vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) +-- Close current buffer +vim.keymap.set('n', 'Q', ':bd', { desc = 'Close current buffer' }) + -- TIP: Disable arrow keys in normal mode -- vim.keymap.set('n', '', 'echo "Use h to move!!"') -- vim.keymap.set('n', '', 'echo "Use l to move!!"') @@ -227,9 +239,41 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win vim.api.nvim_create_autocmd('TextYankPost', { desc = 'Highlight when yanking (copying) text', group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), - callback = function() vim.hl.on_yank() end, + callback = function() vim.hl.on_yank { timeout = 200 } end, +}) + +-- Restore cursor position on file open +vim.api.nvim_create_autocmd('BufReadPost', { + desc = 'Restore cursor position on file open', + group = vim.api.nvim_create_augroup('kickstart-restore-cursor', { clear = true }), + pattern = '*', + callback = function() + local line = vim.fn.line '\'"' + if line > 1 and line <= vim.fn.line '$' then vim.cmd 'normal! g\'"' end + end, }) +-- auto-create missing dirs when saving a file +vim.api.nvim_create_autocmd('BufWritePre', { + desc = 'Auto-create missing dirs when saving a file', + group = vim.api.nvim_create_augroup('kickstart-auto-create-dir', { clear = true }), + pattern = '*', + callback = function() + local dir = vim.fn.expand ':p:h' + if vim.fn.isdirectory(dir) == 0 then vim.fn.mkdir(dir, 'p') end + end, +}) + +-- disable automatic comment on newline +-- vim.api.nvim_create_autocmd('FileType', { +-- desc = 'Disable automatic comment on newline', +-- group = vim.api.nvim_create_augroup('kickstart-disable-auto-comment', { clear = true }), +-- pattern = '*', +-- callback = function() +-- vim.opt_local.formatoptions:remove { 'c', 'r', 'o' } +-- end, +-- }) + -- [[ Install `lazy.nvim` plugin manager ]] -- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' @@ -838,7 +882,21 @@ require('lazy').setup({ }, sources = { - default = { 'lsp', 'path', 'snippets' }, + default = { 'lsp', 'path', 'snippets', 'buffer' }, + providers = { + buffer = { + score_offset = -1, + filter = function(buffer) + -- Filetypes for which buffer completions are enabled; add filetypes to extend + local enabled_filetypes = { + 'markdown', + 'text', + } + local filetype = vim.bo[buffer].filetype + return vim.tbl_contains(enabled_filetypes, filetype) + end, + }, + }, }, snippets = { preset = 'luasnip' }, From 50eba9108d121443bc772213bb8c1b6574c27526 Mon Sep 17 00:00:00 2001 From: MN-nagy Date: Mon, 14 Jul 2025 00:11:44 +0300 Subject: [PATCH 10/15] Updated filter files func in blink.cmp --- init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index b19f334b8a2..2dda3aa1057 100644 --- a/init.lua +++ b/init.lua @@ -885,14 +885,15 @@ require('lazy').setup({ default = { 'lsp', 'path', 'snippets', 'buffer' }, providers = { buffer = { - score_offset = -1, - filter = function(buffer) - -- Filetypes for which buffer completions are enabled; add filetypes to extend + -- Make buffer compeletions appear at the end. + score_offset = -100, + enabled = function() + -- Filetypes for which buffer completions are enabled; add filetypes to extend: local enabled_filetypes = { 'markdown', 'text', } - local filetype = vim.bo[buffer].filetype + local filetype = vim.bo.filetype return vim.tbl_contains(enabled_filetypes, filetype) end, }, From 552d4fa725f58b1d46f112afaf96b7041bfdb4c4 Mon Sep 17 00:00:00 2001 From: MN-nagy Date: Tue, 15 Jul 2025 15:42:06 +0300 Subject: [PATCH 11/15] Refactor: Use vim.o and adjust scrolling/wrapping options --- init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 2dda3aa1057..f6ab30cc417 100644 --- a/init.lua +++ b/init.lua @@ -165,13 +165,13 @@ vim.o.scrolloff = 10 vim.o.confirm = true -- Enable undo/redo changes even after closing and reopening a file -vim.opt.undofile = true +vim.o.undofile = true --- Enable smooth scrolling -vim.opt.smoothscroll = true +-- Disable line wrapping +vim.o.wrap = false -- Highlight max chars per line --- vim.opt.colorcolumn = '100' +-- vim.o.colorcolumn = '100' -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` From 0062333bdddc72b2f3b0dcd918ef0f93bea2765d Mon Sep 17 00:00:00 2001 From: MN-nagy Date: Wed, 16 Jul 2025 16:36:46 +0300 Subject: [PATCH 12/15] Refactor: Removed duplicated opt; improve clarity with description --- init.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/init.lua b/init.lua index f6ab30cc417..3cdbde41a26 100644 --- a/init.lua +++ b/init.lua @@ -164,9 +164,6 @@ vim.o.scrolloff = 10 -- See `:help 'confirm'` vim.o.confirm = true --- Enable undo/redo changes even after closing and reopening a file -vim.o.undofile = true - -- Disable line wrapping vim.o.wrap = false From fed44dfeec33537844f6f1ba0c7500afa689917a Mon Sep 17 00:00:00 2001 From: MN-nagy Date: Mon, 21 Jul 2025 01:33:07 +0300 Subject: [PATCH 13/15] Refactor: updated colorcolum to a more appropriate value --- init.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/init.lua b/init.lua index 3cdbde41a26..6c62aadf9b7 100644 --- a/init.lua +++ b/init.lua @@ -168,7 +168,7 @@ vim.o.confirm = true vim.o.wrap = false -- Highlight max chars per line --- vim.o.colorcolumn = '100' +-- vim.o.colorcolumn = '120' -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` @@ -261,16 +261,6 @@ vim.api.nvim_create_autocmd('BufWritePre', { end, }) --- disable automatic comment on newline --- vim.api.nvim_create_autocmd('FileType', { --- desc = 'Disable automatic comment on newline', --- group = vim.api.nvim_create_augroup('kickstart-disable-auto-comment', { clear = true }), --- pattern = '*', --- callback = function() --- vim.opt_local.formatoptions:remove { 'c', 'r', 'o' } --- end, --- }) - -- [[ Install `lazy.nvim` plugin manager ]] -- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' From 5a82527a40223b4c31dc3ababba95280b30de8ab Mon Sep 17 00:00:00 2001 From: Ori Perry Date: Sat, 28 Feb 2026 13:32:10 +0200 Subject: [PATCH 14/15] Fix typo --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6c62aadf9b7..951003f38f3 100644 --- a/init.lua +++ b/init.lua @@ -872,7 +872,7 @@ require('lazy').setup({ default = { 'lsp', 'path', 'snippets', 'buffer' }, providers = { buffer = { - -- Make buffer compeletions appear at the end. + -- Make buffer completions appear at the end. score_offset = -100, enabled = function() -- Filetypes for which buffer completions are enabled; add filetypes to extend: From a986422bd0b155c089f2527effb837b198eaad63 Mon Sep 17 00:00:00 2001 From: Ori Perry Date: Sat, 28 Feb 2026 13:52:52 +0200 Subject: [PATCH 15/15] Fix stylua formatting --- lua/kickstart/plugins/debug.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 6c5d9b8610a..5ff1b4b87fd 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -44,9 +44,7 @@ return { local buf_bps = require('dap.breakpoints').get(vim.fn.bufnr())[vim.fn.bufnr()] ---@type dap.SourceBreakpoint for _, candidate in ipairs(buf_bps) do - if candidate.line and candidate.line == vim.fn.line '.' then - return candidate - end + if candidate.line and candidate.line == vim.fn.line '.' then return candidate end end return { condition = '', logMessage = '', hitCondition = '', line = vim.fn.line '.' }