Skip to content

Commit 726fabc

Browse files
committed
Merge 'upstream': various changes 2025-05-10
- fix: rename vim.highlight.on_yank to vim.hl.on_yank - README: mention fd-find in requirements - don't lazy-load neo-tree so netrw hijacking on startup works - Replace vim.opt with vim.o - feat: switch vim-sleuth for guess-indent.nvim - Change to Mason's new address
2 parents f872737 + 6ba2408 commit 726fabc

9 files changed

Lines changed: 40 additions & 31 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ If you are experiencing issues, please make sure you have the latest versions.
2525

2626
External Requirements:
2727
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
28-
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
28+
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation),
29+
[fd-find](https://github.com/sharkdp/fd#installation)
2930
- Clipboard tool (xclip/xsel/win32yank or other depending on the platform)
3031
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
3132
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true

lua/keymaps.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
4242

4343
-- Highlight when yanking (copying) text
4444
-- Try it with `yap` in normal mode
45-
-- See `:help vim.highlight.on_yank()`
45+
-- See `:help vim.hl.on_yank()`
4646
vim.api.nvim_create_autocmd('TextYankPost', {
4747
desc = 'Highlight when yanking (copying) text',
4848
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
4949
callback = function()
50-
vim.highlight.on_yank()
50+
vim.hl.on_yank()
5151
end,
5252
})
5353

lua/kickstart/plugins/lint.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ return {
5050
-- Only run the linter in buffers that you can modify in order to
5151
-- avoid superfluous noise, notably within the handy LSP pop-ups that
5252
-- describe the hovered symbol using Markdown.
53-
if vim.opt_local.modifiable:get() then
53+
if vim.bo.modifiable then
5454
lint.try_lint()
5555
end
5656
end,

lua/kickstart/plugins/lspconfig.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ return {
1919
-- Automatically install LSPs and related tools to stdpath for Neovim
2020
-- Mason must be loaded before its dependents so we need to set it up here.
2121
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
22-
{ 'williamboman/mason.nvim', opts = {} },
23-
'williamboman/mason-lspconfig.nvim',
22+
{ 'mason-org/mason.nvim', opts = {} },
23+
'mason-org/mason-lspconfig.nvim',
2424
'WhoIsSethDaniel/mason-tool-installer.nvim',
2525

2626
-- Useful status updates for LSP.

lua/kickstart/plugins/neo-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ return {
99
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
1010
'MunifTanjim/nui.nvim',
1111
},
12-
cmd = 'Neotree',
12+
lazy = false,
1313
keys = {
1414
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
1515
},

lua/kickstart/plugins/which-key.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ return {
1818
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
1919
opts = {
2020
-- delay between pressing a key and opening which-key (milliseconds)
21-
-- this setting is independent of vim.opt.timeoutlen
21+
-- this setting is independent of vim.o.timeoutlen
2222
delay = 0,
2323
icons = {
2424
-- 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
@@ -7,7 +7,10 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
77
if vim.v.shell_error ~= 0 then
88
error('Error cloning lazy.nvim:\n' .. out)
99
end
10-
end ---@diagnostic disable-next-line: undefined-field
11-
vim.opt.rtp:prepend(lazypath)
10+
end
11+
12+
---@type vim.Option
13+
local rtp = vim.opt.rtp
14+
rtp:prepend(lazypath)
1215

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

lua/lazy-plugins.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
-- NOTE: Here is where you install your plugins.
1212
require('lazy').setup({
1313
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
14-
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
14+
'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
1515

1616
-- NOTE: Plugins can also be added by using a table,
1717
-- with the first argument being the link and the following

lua/options.lua

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,74 @@
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

66
-- Make line numbers default
7-
vim.opt.number = true
7+
vim.o.number = true
88
-- You can also add relative line numbers, to help with jumping.
99
-- Experiment for yourself to see if you like it!
10-
-- vim.opt.relativenumber = true
10+
-- vim.o.relativenumber = true
1111

1212
-- Enable mouse mode, can be useful for resizing splits for example!
13-
vim.opt.mouse = 'a'
13+
vim.o.mouse = 'a'
1414

1515
-- Don't show the mode, since it's already in the status line
16-
vim.opt.showmode = false
16+
vim.o.showmode = false
1717

1818
-- Sync clipboard between OS and Neovim.
1919
-- Schedule the setting after `UiEnter` because it can increase startup-time.
2020
-- Remove this option if you want your OS clipboard to remain independent.
2121
-- See `:help 'clipboard'`
2222
vim.schedule(function()
23-
vim.opt.clipboard = 'unnamedplus'
23+
vim.o.clipboard = 'unnamedplus'
2424
end)
2525

2626
-- Enable break indent
27-
vim.opt.breakindent = true
27+
vim.o.breakindent = true
2828

2929
-- Save undo history
30-
vim.opt.undofile = true
30+
vim.o.undofile = true
3131

3232
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
33-
vim.opt.ignorecase = true
34-
vim.opt.smartcase = true
33+
vim.o.ignorecase = true
34+
vim.o.smartcase = true
3535

3636
-- Keep signcolumn on by default
37-
vim.opt.signcolumn = 'yes'
37+
vim.o.signcolumn = 'yes'
3838

3939
-- Decrease update time
40-
vim.opt.updatetime = 250
40+
vim.o.updatetime = 250
4141

4242
-- Decrease mapped sequence wait time
43-
vim.opt.timeoutlen = 300
43+
vim.o.timeoutlen = 300
4444

4545
-- Configure how new splits should be opened
46-
vim.opt.splitright = true
47-
vim.opt.splitbelow = true
46+
vim.o.splitright = true
47+
vim.o.splitbelow = true
4848

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

5560
-- Preview substitutions live, as you type!
56-
vim.opt.inccommand = 'split'
61+
vim.o.inccommand = 'split'
5762

5863
-- Show which line your cursor is on
59-
vim.opt.cursorline = true
64+
vim.o.cursorline = true
6065

6166
-- Minimal number of screen lines to keep above and below the cursor.
62-
vim.opt.scrolloff = 10
67+
vim.o.scrolloff = 10
6368

6469
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
6570
-- instead raise a dialog asking if you wish to save the current file(s)
6671
-- See `:help 'confirm'`
67-
vim.opt.confirm = true
72+
vim.o.confirm = true
6873

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

0 commit comments

Comments
 (0)