@@ -219,9 +219,6 @@ vim.opt.rtp:prepend(lazypath)
219219--
220220-- NOTE: Here is where you install your plugins.
221221require (' lazy' ).setup {
222-
223- -- [[ Plugin Specs list ]]
224-
225222 -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
226223 ' tpope/vim-sleuth' , -- Detect tabstop and shiftwidth automatically
227224
@@ -592,15 +589,11 @@ require('lazy').setup {
592589 handlers = {
593590 function (server_name )
594591 local server = servers [server_name ] or {}
595- require (' lspconfig' )[server_name ].setup {
596- cmd = server .cmd ,
597- settings = server .settings ,
598- filetypes = server .filetypes ,
599- -- This handles overriding only values explicitly passed
600- -- by the server configuration above. Useful when disabling
601- -- certain features of an LSP (for example, turning off formatting for tsserver)
602- capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server .capabilities or {}),
603- }
592+ -- This handles overriding only values explicitly passed
593+ -- by the server configuration above. Useful when disabling
594+ -- certain features of an LSP (for example, turning off formatting for tsserver)
595+ server .capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server .capabilities or {})
596+ require (' lspconfig' )[server_name ].setup (server )
604597 end ,
605598 },
606599 }
@@ -761,9 +754,15 @@ require('lazy').setup {
761754 -- Simple and easy statusline.
762755 -- You could remove this setup call if you don't like it,
763756 -- and try some other statusline plugin
764- require (' mini.statusline' ).setup ()
765- MiniStatusline .section_location = function ()
766- return ' %2l:%-2v'
757+ local statusline = require ' mini.statusline'
758+ statusline .setup ()
759+
760+ -- You can confiure sections in the statusline by overriding their
761+ -- default behavior. For example, here we disable the section for
762+ -- cursor information because line numbers are already enabled
763+ --- @diagnostic disable-next-line : duplicate-set-field
764+ statusline .section_location = function ()
765+ return ' '
767766 end
768767
769768 -- ... and there is more!
0 commit comments