@@ -114,9 +114,7 @@ vim.o.showmode = false
114114-- Schedule the setting after `UiEnter` because it can increase startup-time.
115115-- Remove this option if you want your OS clipboard to remain independent.
116116-- See `:help 'clipboard'`
117- vim .schedule (function ()
118- vim .o .clipboard = ' unnamedplus'
119- end )
117+ vim .schedule (function () vim .o .clipboard = ' unnamedplus' end )
120118
121119-- Enable break indent
122120vim .o .breakindent = true
@@ -214,9 +212,7 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
214212vim .api .nvim_create_autocmd (' TextYankPost' , {
215213 desc = ' Highlight when yanking (copying) text' ,
216214 group = vim .api .nvim_create_augroup (' kickstart-highlight-yank' , { clear = true }),
217- callback = function ()
218- vim .hl .on_yank ()
219- end ,
215+ callback = function () vim .hl .on_yank () end ,
220216})
221217
222218-- [[ Install `lazy.nvim` plugin manager ]]
@@ -378,9 +374,7 @@ require('lazy').setup({
378374
379375 -- `cond` is a condition used to determine whether this plugin should be
380376 -- installed and loaded.
381- cond = function ()
382- return vim .fn .executable ' make' == 1
383- end ,
377+ cond = function () return vim .fn .executable ' make' == 1 end ,
384378 },
385379 { ' nvim-telescope/telescope-ui-select.nvim' },
386380
@@ -454,17 +448,20 @@ require('lazy').setup({
454448
455449 -- It's also possible to pass additional configuration options.
456450 -- See `:help telescope.builtin.live_grep()` for information about particular keys
457- vim .keymap .set (' n' , ' <leader>s/' , function ()
458- builtin .live_grep {
459- grep_open_files = true ,
460- prompt_title = ' Live Grep in Open Files' ,
461- }
462- end , { desc = ' [S]earch [/] in Open Files' })
451+ vim .keymap .set (
452+ ' n' ,
453+ ' <leader>s/' ,
454+ function ()
455+ builtin .live_grep {
456+ grep_open_files = true ,
457+ prompt_title = ' Live Grep in Open Files' ,
458+ }
459+ end ,
460+ { desc = ' [S]earch [/] in Open Files' }
461+ )
463462
464463 -- Shortcut for searching your Neovim configuration files
465- vim .keymap .set (' n' , ' <leader>sn' , function ()
466- builtin .find_files { cwd = vim .fn .stdpath ' config' }
467- end , { desc = ' [S]earch [N]eovim files' })
464+ vim .keymap .set (' n' , ' <leader>sn' , function () builtin .find_files { cwd = vim .fn .stdpath ' config' } end , { desc = ' [S]earch [N]eovim files' })
468465 end ,
469466 },
470467
@@ -639,9 +636,7 @@ require('lazy').setup({
639636 --
640637 -- This may be unwanted, since they displace some of your code
641638 if client and client_supports_method (client , vim .lsp .protocol .Methods .textDocument_inlayHint , event .buf ) then
642- map (' <leader>th' , function ()
643- vim .lsp .inlay_hint .enable (not vim .lsp .inlay_hint .is_enabled { bufnr = event .buf })
644- end , ' [T]oggle Inlay [H]ints' )
639+ map (' <leader>th' , function () vim .lsp .inlay_hint .enable (not vim .lsp .inlay_hint .is_enabled { bufnr = event .buf }) end , ' [T]oggle Inlay [H]ints' )
645640 end
646641 end ,
647642 })
@@ -782,9 +777,7 @@ require('lazy').setup({
782777 keys = {
783778 {
784779 ' <leader>f' ,
785- function ()
786- require (' conform' ).format { async = true , lsp_format = ' fallback' }
787- end ,
780+ function () require (' conform' ).format { async = true , lsp_format = ' fallback' } end ,
788781 mode = ' ' ,
789782 desc = ' [F]ormat buffer' ,
790783 },
@@ -979,9 +972,7 @@ require('lazy').setup({
979972 -- default behavior. For example, here we set the section for
980973 -- cursor location to LINE:COLUMN
981974 --- @diagnostic disable-next-line : duplicate-set-field
982- statusline .section_location = function ()
983- return ' %2l:%-2v'
984- end
975+ statusline .section_location = function () return ' %2l:%-2v' end
985976
986977 -- ... and there is more!
987978 -- Check out: https://github.com/echasnovski/mini.nvim
0 commit comments