@@ -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 ]]
@@ -381,9 +377,7 @@ require('lazy').setup({
381377
382378 -- `cond` is a condition used to determine whether this plugin should be
383379 -- installed and loaded.
384- cond = function ()
385- return vim .fn .executable ' make' == 1
386- end ,
380+ cond = function () return vim .fn .executable ' make' == 1 end ,
387381 },
388382 { ' nvim-telescope/telescope-ui-select.nvim' },
389383
@@ -458,17 +452,20 @@ require('lazy').setup({
458452
459453 -- It's also possible to pass additional configuration options.
460454 -- See `:help telescope.builtin.live_grep()` for information about particular keys
461- vim .keymap .set (' n' , ' <leader>s/' , function ()
462- builtin .live_grep {
463- grep_open_files = true ,
464- prompt_title = ' Live Grep in Open Files' ,
465- }
466- end , { desc = ' [S]earch [/] in Open Files' })
455+ vim .keymap .set (
456+ ' n' ,
457+ ' <leader>s/' ,
458+ function ()
459+ builtin .live_grep {
460+ grep_open_files = true ,
461+ prompt_title = ' Live Grep in Open Files' ,
462+ }
463+ end ,
464+ { desc = ' [S]earch [/] in Open Files' }
465+ )
467466
468467 -- Shortcut for searching your Neovim configuration files
469- vim .keymap .set (' n' , ' <leader>sn' , function ()
470- builtin .find_files { cwd = vim .fn .stdpath ' config' }
471- end , { desc = ' [S]earch [N]eovim files' })
468+ vim .keymap .set (' n' , ' <leader>sn' , function () builtin .find_files { cwd = vim .fn .stdpath ' config' } end , { desc = ' [S]earch [N]eovim files' })
472469 end ,
473470 },
474471
@@ -643,9 +640,7 @@ require('lazy').setup({
643640 --
644641 -- This may be unwanted, since they displace some of your code
645642 if client and client_supports_method (client , vim .lsp .protocol .Methods .textDocument_inlayHint , event .buf ) then
646- map (' <leader>th' , function ()
647- vim .lsp .inlay_hint .enable (not vim .lsp .inlay_hint .is_enabled { bufnr = event .buf })
648- end , ' [T]oggle Inlay [H]ints' )
643+ 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' )
649644 end
650645 end ,
651646 })
@@ -808,9 +803,7 @@ require('lazy').setup({
808803 keys = {
809804 {
810805 ' <leader>f' ,
811- function ()
812- require (' conform' ).format { async = true , lsp_format = ' fallback' }
813- end ,
806+ function () require (' conform' ).format { async = true , lsp_format = ' fallback' } end ,
814807 mode = ' ' ,
815808 desc = ' [F]ormat buffer' ,
816809 },
@@ -1043,9 +1036,7 @@ require('lazy').setup({
10431036 -- default behavior. For example, here we set the section for
10441037 -- cursor location to LINE:COLUMN
10451038 --- @diagnostic disable-next-line : duplicate-set-field
1046- statusline .section_location = function ()
1047- return ' %2l:%-2v'
1048- end
1039+ statusline .section_location = function () return ' %2l:%-2v' end
10491040
10501041 -- ... and there is more!
10511042 -- Check out: https://github.com/echasnovski/mini.nvim
0 commit comments