@@ -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 ]]
@@ -372,9 +368,7 @@ require('lazy').setup({
372
368
373
369
-- `cond` is a condition used to determine whether this plugin should be
374
370
-- installed and loaded.
375
- cond = function ()
376
- return vim .fn .executable ' make' == 1
377
- end ,
371
+ cond = function () return vim .fn .executable ' make' == 1 end ,
378
372
},
379
373
{ ' nvim-telescope/telescope-ui-select.nvim' },
380
374
@@ -448,17 +442,20 @@ require('lazy').setup({
448
442
449
443
-- It's also possible to pass additional configuration options.
450
444
-- See `:help telescope.builtin.live_grep()` for information about particular keys
451
- vim .keymap .set (' n' , ' <leader>s/' , function ()
452
- builtin .live_grep {
453
- grep_open_files = true ,
454
- prompt_title = ' Live Grep in Open Files' ,
455
- }
456
- end , { desc = ' [S]earch [/] in Open Files' })
445
+ vim .keymap .set (
446
+ ' n' ,
447
+ ' <leader>s/' ,
448
+ function ()
449
+ builtin .live_grep {
450
+ grep_open_files = true ,
451
+ prompt_title = ' Live Grep in Open Files' ,
452
+ }
453
+ end ,
454
+ { desc = ' [S]earch [/] in Open Files' }
455
+ )
457
456
458
457
-- Shortcut for searching your Neovim configuration files
459
- vim .keymap .set (' n' , ' <leader>sn' , function ()
460
- builtin .find_files { cwd = vim .fn .stdpath ' config' }
461
- end , { desc = ' [S]earch [N]eovim files' })
458
+ vim .keymap .set (' n' , ' <leader>sn' , function () builtin .find_files { cwd = vim .fn .stdpath ' config' } end , { desc = ' [S]earch [N]eovim files' })
462
459
end ,
463
460
},
464
461
@@ -619,9 +616,7 @@ require('lazy').setup({
619
616
--
620
617
-- This may be unwanted, since they displace some of your code
621
618
if client and client_supports_method (client , vim .lsp .protocol .Methods .textDocument_inlayHint , event .buf ) then
622
- map (' <leader>th' , function ()
623
- vim .lsp .inlay_hint .enable (not vim .lsp .inlay_hint .is_enabled { bufnr = event .buf })
624
- end , ' [T]oggle Inlay [H]ints' )
619
+ 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' )
625
620
end
626
621
end ,
627
622
})
@@ -743,9 +738,7 @@ require('lazy').setup({
743
738
keys = {
744
739
{
745
740
' <leader>f' ,
746
- function ()
747
- require (' conform' ).format { async = true , lsp_format = ' fallback' }
748
- end ,
741
+ function () require (' conform' ).format { async = true , lsp_format = ' fallback' } end ,
749
742
mode = ' ' ,
750
743
desc = ' [F]ormat buffer' ,
751
744
},
@@ -930,9 +923,7 @@ require('lazy').setup({
930
923
-- default behavior. For example, here we set the section for
931
924
-- cursor location to LINE:COLUMN
932
925
--- @diagnostic disable-next-line : duplicate-set-field
933
- statusline .section_location = function ()
934
- return ' %2l:%-2v'
935
- end
926
+ statusline .section_location = function () return ' %2l:%-2v' end
936
927
937
928
-- ... and there is more!
938
929
-- Check out: https://github.com/echasnovski/mini.nvim
0 commit comments