@@ -133,8 +133,8 @@ vim.opt.splitright = true
133133vim .opt .splitbelow = true
134134
135135-- Sets how neovim will display certain whitespace in the editor.
136- -- See :help 'list'
137- -- and :help 'listchars'
136+ -- See ` :help 'list'`
137+ -- and ` :help 'listchars'`
138138vim .opt .list = true
139139vim .opt .listchars = { tab = ' » ' , trail = ' ·' , nbsp = ' ␣' }
140140
@@ -183,6 +183,9 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
183183vim .keymap .set (' n' , ' <C-j>' , ' <C-w><C-j>' , { desc = ' Move focus to the lower window' })
184184vim .keymap .set (' n' , ' <C-k>' , ' <C-w><C-k>' , { desc = ' Move focus to the upper window' })
185185
186+ -- [[ Basic Autocommands ]]
187+ -- See `:help lua-guide-autocommands`
188+
186189-- Highlight when yanking (copying) text
187190-- Try it with `yap` in normal mode
188191-- See `:help vim.highlight.on_yank()`
@@ -259,7 +262,7 @@ require('lazy').setup {
259262 -- event = 'VeryLazy'
260263 --
261264 -- which loads which-key after all the UI elements are loaded. Events can be
262- -- normal autocommands events (:help autocomd -events).
265+ -- normal autocommands events (` :help autocmd -events` ).
263266 --
264267 -- Then, because we use the `config` key, the configuration only runs
265268 -- after the plugin has been loaded:
@@ -432,7 +435,7 @@ require('lazy').setup {
432435 -- Neovim. This is where `mason` and related plugins come into play.
433436 --
434437 -- If you're wondering about lsp vs treesitter, you can check out the wonderfully
435- -- and elegantly composed help section, :help lsp-vs-treesitter
438+ -- and elegantly composed help section, ` :help lsp-vs-treesitter`
436439
437440 -- This function gets run when an LSP attaches to a particular buffer.
438441 -- That is to say, every time a new file is opened that is associated with
@@ -741,7 +744,7 @@ require('lazy').setup {
741744 -- Better Around/Inside textobjects
742745 --
743746 -- Examples:
744- -- - va) - [V]isually select [A]round [)]parenthen
747+ -- - va) - [V]isually select [A]round [)]paren
745748 -- - yinq - [Y]ank [I]nside [N]ext [']quote
746749 -- - ci' - [C]hange [I]nside [']quote
747750 require (' mini.ai' ).setup { n_lines = 500 }
@@ -756,7 +759,16 @@ require('lazy').setup {
756759 -- Simple and easy statusline.
757760 -- You could remove this setup call if you don't like it,
758761 -- and try some other statusline plugin
759- require (' mini.statusline' ).setup ()
762+ local statusline = require ' mini.statusline'
763+ statusline .setup ()
764+
765+ -- You can configure sections in the statusline by overriding their
766+ -- default behavior. For example, here we disable the section for
767+ -- cursor information because line numbers are already enabled
768+ --- @diagnostic disable-next-line : duplicate-set-field
769+ statusline .section_location = function ()
770+ return ' '
771+ end
760772
761773 -- ... and there is more!
762774 -- Check out: https://github.com/echasnovski/mini.nvim
@@ -781,7 +793,7 @@ require('lazy').setup {
781793 -- There are additional nvim-treesitter modules that you can use to interact
782794 -- with nvim-treesitter. You should go explore a few and see what interests you:
783795 --
784- -- - Incremental selection: Included, see :help nvim-treesitter-incremental-selection-mod
796+ -- - Incremental selection: Included, see ` :help nvim-treesitter-incremental-selection-mod`
785797 -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
786798 -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
787799 end ,
0 commit comments