@@ -275,7 +275,44 @@ require('lazy').setup({
275275 ' folke/which-key.nvim' ,
276276 event = ' VimEnter' , -- Sets the loading event to 'VimEnter'
277277 config = function () -- This is the function that runs, AFTER loading
278- require (' which-key' ).setup ()
278+ require (' which-key' ).setup {
279+ icons = {
280+ -- set icon mappings to true if you have a Nerd Font
281+ mappings = vim .g .have_nerd_font ,
282+ -- If you are using a Nerd Font: set icons.keys to an empty table which will use the
283+ -- default whick-key.nvim defined Nerd Font icons, otherwise define a string table
284+ keys = vim .g .have_nerd_font and {} or {
285+ Up = ' <Up> ' ,
286+ Down = ' <Down> ' ,
287+ Left = ' <Left> ' ,
288+ Right = ' <Right> ' ,
289+ C = ' <C-…> ' ,
290+ M = ' <M-…> ' ,
291+ D = ' <D-…> ' ,
292+ S = ' <S-…> ' ,
293+ CR = ' <CR> ' ,
294+ Esc = ' <Esc> ' ,
295+ ScrollWheelDown = ' <ScrollWheelDown> ' ,
296+ ScrollWheelUp = ' <ScrollWheelUp> ' ,
297+ NL = ' <NL> ' ,
298+ BS = ' <BS> ' ,
299+ Space = ' <Space> ' ,
300+ Tab = ' <Tab> ' ,
301+ F1 = ' <F1>' ,
302+ F2 = ' <F2>' ,
303+ F3 = ' <F3>' ,
304+ F4 = ' <F4>' ,
305+ F5 = ' <F5>' ,
306+ F6 = ' <F6>' ,
307+ F7 = ' <F7>' ,
308+ F8 = ' <F8>' ,
309+ F9 = ' <F9>' ,
310+ F10 = ' <F10>' ,
311+ F11 = ' <F11>' ,
312+ F12 = ' <F12>' ,
313+ },
314+ },
315+ }
279316
280317 -- Document existing key chains
281318 require (' which-key' ).add {
@@ -849,6 +886,8 @@ require('lazy').setup({
849886 { -- Highlight, edit, and navigate code
850887 ' nvim-treesitter/nvim-treesitter' ,
851888 build = ' :TSUpdate' ,
889+ main = ' nvim-treesitter.configs' , -- Sets main module to use for opts
890+ -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
852891 opts = {
853892 ensure_installed = { ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' },
854893 -- Autoinstall languages that are not installed
@@ -862,19 +901,12 @@ require('lazy').setup({
862901 },
863902 indent = { enable = true , disable = { ' ruby' } },
864903 },
865- config = function (_ , opts )
866- -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
867-
868- --- @diagnostic disable-next-line : missing-fields
869- require (' nvim-treesitter.configs' ).setup (opts )
870-
871- -- There are additional nvim-treesitter modules that you can use to interact
872- -- with nvim-treesitter. You should go explore a few and see what interests you:
873- --
874- -- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
875- -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
876- -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
877- end ,
904+ -- There are additional nvim-treesitter modules that you can use to interact
905+ -- with nvim-treesitter. You should go explore a few and see what interests you:
906+ --
907+ -- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
908+ -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
909+ -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
878910 },
879911
880912 -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
0 commit comments