@@ -114,9 +114,7 @@ vim.o.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 .o .clipboard = ' unnamedplus'
119
- end )
117
+ vim .schedule (function () vim .o .clipboard = ' unnamedplus' end )
120
118
121
119
-- Enable break indent
122
120
vim .o .breakindent = true
@@ -214,9 +212,7 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
214
212
vim .api .nvim_create_autocmd (' TextYankPost' , {
215
213
desc = ' Highlight when yanking (copying) text' ,
216
214
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 ,
220
216
})
221
217
222
218
-- [[ Install `lazy.nvim` plugin manager ]]
@@ -378,9 +374,7 @@ require('lazy').setup({
378
374
379
375
-- `cond` is a condition used to determine whether this plugin should be
380
376
-- 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 ,
384
378
},
385
379
{ ' nvim-telescope/telescope-ui-select.nvim' },
386
380
@@ -454,17 +448,20 @@ require('lazy').setup({
454
448
455
449
-- It's also possible to pass additional configuration options.
456
450
-- 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
+ )
463
462
464
463
-- 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' })
468
465
end ,
469
466
},
470
467
@@ -639,9 +636,7 @@ require('lazy').setup({
639
636
--
640
637
-- This may be unwanted, since they displace some of your code
641
638
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' )
645
640
end
646
641
end ,
647
642
})
@@ -782,9 +777,7 @@ require('lazy').setup({
782
777
keys = {
783
778
{
784
779
' <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 ,
788
781
mode = ' ' ,
789
782
desc = ' [F]ormat buffer' ,
790
783
},
@@ -979,9 +972,7 @@ require('lazy').setup({
979
972
-- default behavior. For example, here we set the section for
980
973
-- cursor location to LINE:COLUMN
981
974
--- @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
985
976
986
977
-- ... and there is more!
987
978
-- Check out: https://github.com/echasnovski/mini.nvim
0 commit comments