@@ -114,9 +114,7 @@ vim.opt.showmode = false
114
114
-- Schedule the setting after `UiEnter` because it can increase startup-time.
115
115
-- Remove this option if you want your OS clipboard to remain independent.
116
116
-- See `:help 'clipboard'`
117
- vim .schedule (function ()
118
- vim .opt .clipboard = ' unnamedplus'
119
- end )
117
+ vim .schedule (function () vim .opt .clipboard = ' unnamedplus' end )
120
118
121
119
-- Enable break indent
122
120
vim .opt .breakindent = true
@@ -209,9 +207,7 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
209
207
vim .api .nvim_create_autocmd (' TextYankPost' , {
210
208
desc = ' Highlight when yanking (copying) text' ,
211
209
group = vim .api .nvim_create_augroup (' kickstart-highlight-yank' , { clear = true }),
212
- callback = function ()
213
- vim .highlight .on_yank ()
214
- end ,
210
+ callback = function () vim .highlight .on_yank () end ,
215
211
})
216
212
217
213
-- [[ Install `lazy.nvim` plugin manager ]]
@@ -364,9 +360,7 @@ require('lazy').setup({
364
360
365
361
-- `cond` is a condition used to determine whether this plugin should be
366
362
-- installed and loaded.
367
- cond = function ()
368
- return vim .fn .executable ' make' == 1
369
- end ,
363
+ cond = function () return vim .fn .executable ' make' == 1 end ,
370
364
},
371
365
{ ' nvim-telescope/telescope-ui-select.nvim' },
372
366
@@ -440,17 +434,20 @@ require('lazy').setup({
440
434
441
435
-- It's also possible to pass additional configuration options.
442
436
-- See `:help telescope.builtin.live_grep()` for information about particular keys
443
- vim .keymap .set (' n' , ' <leader>s/' , function ()
444
- builtin .live_grep {
445
- grep_open_files = true ,
446
- prompt_title = ' Live Grep in Open Files' ,
447
- }
448
- end , { desc = ' [S]earch [/] in Open Files' })
437
+ vim .keymap .set (
438
+ ' n' ,
439
+ ' <leader>s/' ,
440
+ function ()
441
+ builtin .live_grep {
442
+ grep_open_files = true ,
443
+ prompt_title = ' Live Grep in Open Files' ,
444
+ }
445
+ end ,
446
+ { desc = ' [S]earch [/] in Open Files' }
447
+ )
449
448
450
449
-- Shortcut for searching your Neovim configuration files
451
- vim .keymap .set (' n' , ' <leader>sn' , function ()
452
- builtin .find_files { cwd = vim .fn .stdpath ' config' }
453
- end , { desc = ' [S]earch [N]eovim files' })
450
+ vim .keymap .set (' n' , ' <leader>sn' , function () builtin .find_files { cwd = vim .fn .stdpath ' config' } end , { desc = ' [S]earch [N]eovim files' })
454
451
end ,
455
452
},
456
453
@@ -611,9 +608,7 @@ require('lazy').setup({
611
608
--
612
609
-- This may be unwanted, since they displace some of your code
613
610
if client and client_supports_method (client , vim .lsp .protocol .Methods .textDocument_inlayHint , event .buf ) then
614
- map (' <leader>th' , function ()
615
- vim .lsp .inlay_hint .enable (not vim .lsp .inlay_hint .is_enabled { bufnr = event .buf })
616
- end , ' [T]oggle Inlay [H]ints' )
611
+ 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' )
617
612
end
618
613
end ,
619
614
})
@@ -735,9 +730,7 @@ require('lazy').setup({
735
730
keys = {
736
731
{
737
732
' <leader>f' ,
738
- function ()
739
- require (' conform' ).format { async = true , lsp_format = ' fallback' }
740
- end ,
733
+ function () require (' conform' ).format { async = true , lsp_format = ' fallback' } end ,
741
734
mode = ' ' ,
742
735
desc = ' [F]ormat buffer' ,
743
736
},
@@ -922,9 +915,7 @@ require('lazy').setup({
922
915
-- default behavior. For example, here we set the section for
923
916
-- cursor location to LINE:COLUMN
924
917
--- @diagnostic disable-next-line : duplicate-set-field
925
- statusline .section_location = function ()
926
- return ' %2l:%-2v'
927
- end
918
+ statusline .section_location = function () return ' %2l:%-2v' end
928
919
929
920
-- ... and there is more!
930
921
-- Check out: https://github.com/echasnovski/mini.nvim
0 commit comments