Skip to content

Commit d8ecfda

Browse files
committed
chore: upstream sync til f230905
1 parent 6c49976 commit d8ecfda

8 files changed

Lines changed: 54 additions & 48 deletions

File tree

lua/keymaps.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
3838
desc = 'Highlight when yanking (copying) text',
3939
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
4040
callback = function()
41-
vim.highlight.on_yank()
41+
vim.hl.on_yank()
4242
end,
4343
})
4444

lua/kickstart/plugins/debug.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ return {
1818
'nvim-neotest/nvim-nio',
1919

2020
-- Installs the debug adapters for you
21-
'williamboman/mason.nvim',
21+
'mason-org/mason.nvim',
2222
'jay-babu/mason-nvim-dap.nvim',
2323

2424
-- Add your own debuggers here

lua/kickstart/plugins/lint.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ return {
4747
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
4848
group = lint_augroup,
4949
callback = function()
50-
if vim.opt_local.modifiable:get() then
50+
if vim.bo.modifiable then
5151
lint.try_lint()
5252
end
5353
end,

lua/kickstart/plugins/lspconfig.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ return {
4646
'neovim/nvim-lspconfig',
4747
dependencies = {
4848
-- Automatically install LSPs and related tools to stdpath for Neovim
49-
{ 'williamboman/mason.nvim', opts = {} },
50-
'williamboman/mason-lspconfig.nvim',
49+
{ 'mason-org/mason.nvim', opts = {} },
50+
'mason-org/mason-lspconfig.nvim',
5151
'WhoIsSethDaniel/mason-tool-installer.nvim',
5252

5353
-- Useful status updates for LSP.
@@ -331,6 +331,7 @@ return {
331331
require('mason-lspconfig').setup {
332332
ensure_installed = {},
333333
automatic_installation = false,
334+
automatic_enable = true,
334335
handlers = {
335336
function(server_name)
336337
local server = servers[server_name] or {}

lua/kickstart/plugins/which-key.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ return {
1919
'folke/which-key.nvim',
2020
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
2121
opts = {
22-
-- additional delay after timeoutlen
22+
-- delay between pressing a key and opening which-key (milliseconds)
23+
-- this setting is independent of vim.o.timeoutlen
2324
delay = 0,
2425
icons = {
2526
-- set icon mappings to true if you have a Nerd Font

lua/lazy-bootstrap.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
44
if not (vim.uv or vim.loop).fs_stat(lazypath) then
55
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
66
vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
7-
end ---@diagnostic disable-next-line: undefined-field
8-
vim.opt.rtp:prepend(lazypath)
7+
end
8+
9+
---@type vim.Option
10+
local rtp = vim.opt.rtp
11+
rtp:prepend(lazypath)
912

1013
-- vim: ts=2 sts=2 sw=2 et

lua/lazy-plugins.lua

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
require('lazy').setup({
2-
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
2+
'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
33

44
-- Use `opts = {}` to force a plugin to be loaded.
55

6-
-- modular approach: using `require 'path/name'` will
6+
-- modular approach: using `require 'path.name'` will
77
-- include a plugin definition from file lua/path/name.lua
88

9-
require 'custom/plugins/colorschemes',
9+
require 'custom.plugins.colorschemes',
1010

1111
-- Honestly I'm better off without cluttering my F-key space for now.
12-
-- require 'kickstart/plugins/debug',
12+
-- require 'kickstart.plugins.debug',
1313

14-
require 'kickstart/plugins/gitsigns',
14+
require 'kickstart.plugins.gitsigns',
1515

16-
require 'kickstart/plugins/which-key',
16+
require 'kickstart.plugins.which-key',
1717

18-
require 'kickstart/plugins/telescope',
18+
require 'kickstart.plugins.telescope',
1919

20-
require 'kickstart/plugins/lspconfig',
20+
require 'kickstart.plugins.lspconfig',
2121

22-
require 'kickstart/plugins/conform',
22+
require 'kickstart.plugins.conform',
2323

24-
require 'kickstart/plugins/cmp',
24+
require 'kickstart.plugins.cmp',
2525

26-
require 'kickstart/plugins/todo-comments',
26+
require 'kickstart.plugins.todo-comments',
2727

28-
require 'kickstart/plugins/mini',
28+
require 'kickstart.plugins.mini',
2929

30-
require 'kickstart/plugins/treesitter',
30+
require 'kickstart.plugins.treesitter',
3131

3232
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
3333
-- init.lua. If you want these files, they are in the repository, so you can just download them and

lua/options.lua

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,77 @@
11
-- [[ Setting options ]]
2-
-- See `:help vim.opt`
2+
-- See `:help vim.o`
33
-- NOTE: You can change these options as you wish!
44
-- For more options, you can see `:help option-list`
55

6-
vim.opt.termguicolors = true
6+
vim.o.termguicolors = true
77

88
vim.g.loaded_netrw = 1
99
vim.g.loaded_netrwPlugin = 1
1010

1111
-- Make line numbers default
12-
vim.opt.number = true
13-
vim.opt.relativenumber = true
12+
vim.o.number = true
13+
vim.o.relativenumber = true
1414

1515
-- Enable mouse mode, can be useful for resizing splits for example!
16-
vim.opt.mouse = 'a'
16+
vim.o.mouse = 'a'
1717

1818
-- Don't show the mode, since it's already in the status line
19-
vim.opt.showmode = false
19+
vim.o.showmode = false
2020

2121
-- Sync clipboard between OS and Neovim.
2222
-- Remove this option if you want your OS clipboard to remain independent.
2323
-- See `:help 'clipboard'`
2424
vim.schedule(function()
25-
vim.opt.clipboard = 'unnamedplus'
25+
vim.o.clipboard = 'unnamedplus'
2626
end)
2727

2828
-- Enable break indent
29-
vim.opt.breakindent = true
30-
vim.opt.tabstop = 4
29+
vim.o.breakindent = true
30+
vim.o.tabstop = 4
3131

32-
vim.opt.wrap = true
32+
vim.o.wrap = true
3333

3434
-- Save undo history
35-
vim.opt.undofile = true
35+
vim.o.undofile = true
3636

3737
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
38-
vim.opt.ignorecase = true
39-
vim.opt.smartcase = true
38+
vim.o.ignorecase = true
39+
vim.o.smartcase = true
4040

4141
-- Keep signcolumn on by default
42-
vim.opt.signcolumn = 'yes'
42+
vim.o.signcolumn = 'yes'
4343

4444
-- Decrease update time
45-
vim.opt.updatetime = 250
45+
vim.o.updatetime = 250
4646

4747
-- Decrease mapped sequence wait time
4848
-- Displays which-key popup sooner
49-
vim.opt.timeoutlen = 300
49+
vim.o.timeoutlen = 300
5050

5151
-- Configure how new splits should be opened
52-
vim.opt.splitright = true
53-
vim.opt.splitbelow = true
54-
55-
-- Sets how neovim will display certain whitespace characters in the editor.
56-
-- See `:help 'list'`
57-
-- and `:help 'listchars'`
58-
vim.opt.list = true
52+
vim.o.splitright = true
53+
vim.o.splitbelow = true
54+
55+
-- Notice listchars is set using `vim.opt` instead of `vim.o`.
56+
-- It is very similar to `vim.o` but offers an interface for conveniently interacting with tables.
57+
-- See `:help lua-options`
58+
-- and `:help lua-options-guide`
59+
vim.o.list = true
5960
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
6061

6162
-- Preview substitutions live, as you type!
62-
vim.opt.inccommand = 'split'
63+
vim.o.inccommand = 'split'
6364

6465
-- Show which line your cursor is on
65-
vim.opt.cursorline = true
66+
vim.o.cursorline = true
6667

6768
-- Minimal number of screen lines to keep above and below the cursor.
68-
vim.opt.scrolloff = 10
69+
vim.o.scrolloff = 10
6970

7071
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
7172
-- instead raise a dialog asking if you wish to save the current file(s)
7273
-- See `:help 'confirm'`
73-
vim.opt.confirm = true
74+
vim.o.confirm = true
7475

7576
vim.o.winborder = 'rounded'
7677

0 commit comments

Comments
 (0)