@@ -90,6 +90,9 @@ P.S. You can delete this when you're done too. It's your config now! :)
9090vim .g .mapleader = ' '
9191vim .g .maplocalleader = ' '
9292
93+ -- Set to true if you have a Nerd Font installed
94+ vim .g .have_nerd_font = false
95+
9396-- [[ Setting options ]]
9497-- See `:help vim.opt`
9598-- NOTE: You can change these options as you wish!
@@ -146,8 +149,8 @@ vim.opt.splitright = true
146149vim .opt .splitbelow = true
147150
148151-- Sets how neovim will display certain whitespace in the editor.
149- -- See :help 'list'
150- -- and :help 'listchars'
152+ -- See ` :help 'list'`
153+ -- and ` :help 'listchars'`
151154vim .opt .list = true
152155vim .opt .listchars = { tab = ' » ' , trail = ' ·' , nbsp = ' ␣' }
153156
@@ -201,7 +204,7 @@ vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower win
201204vim .keymap .set (' n' , ' <C-k>' , ' <C-w><C-k>' , { desc = ' Move focus to the upper window' })
202205
203206-- [[ Basic Autocommands ]]
204- -- See :help lua-guide-autocommands
207+ -- See ` :help lua-guide-autocommands`
205208
206209-- Highlight when yanking (copying) text
207210-- Try it with `yap` in normal mode
@@ -234,7 +237,7 @@ vim.opt.rtp:prepend(lazypath)
234237-- :Lazy update
235238--
236239-- NOTE: Here is where you install your plugins.
237- require (' lazy' ).setup {
240+ require (' lazy' ).setup ( {
238241 -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
239242 ' tpope/vim-sleuth' , -- Detect tabstop and shiftwidth automatically
240243
@@ -274,18 +277,18 @@ require('lazy').setup {
274277 -- lazy loading plugins that don't need to be loaded immediately at startup.
275278 --
276279 -- For example, in the following configuration, we use:
277- -- event = 'VeryLazy '
280+ -- event = 'VimEnter '
278281 --
279- -- which loads which-key after all the UI elements are loaded. Events can be
280- -- normal autocommands events (:help autocomd -events).
282+ -- which loads which-key before all the UI elements are loaded. Events can be
283+ -- normal autocommands events (` :help autocmd -events` ).
281284 --
282285 -- Then, because we use the `config` key, the configuration only runs
283286 -- after the plugin has been loaded:
284287 -- config = function() ... end
285288
286289 { -- Useful plugin to show you pending keybinds.
287290 ' folke/which-key.nvim' ,
288- event = ' VeryLazy ' , -- Sets the loading event to 'VeryLazy '
291+ event = ' VimEnter ' , -- Sets the loading event to 'VimEnter '
289292 config = function () -- This is the function that runs, AFTER loading
290293 require (' which-key' ).setup ()
291294
@@ -309,7 +312,7 @@ require('lazy').setup {
309312
310313 { -- Fuzzy Finder (files, lsp, etc)
311314 ' nvim-telescope/telescope.nvim' ,
312- event = ' VeryLazy ' ,
315+ event = ' VimEnter ' ,
313316 branch = ' 0.1.x' ,
314317 dependencies = {
315318 ' nvim-lua/plenary.nvim' ,
@@ -328,10 +331,15 @@ require('lazy').setup {
328331 },
329332 { ' nvim-telescope/telescope-ui-select.nvim' },
330333
334+ <<<<<<< HEAD
331335 -- Useful for getting pretty icons, but requires special font.
332336 -- If you already have a Nerd Font, or terminal set up with fallback fonts
333337 -- you can enable this
334338 { ' nvim-tree/nvim-web-devicons' },
339+ =======
340+ -- Useful for getting pretty icons, but requires a Nerd Font.
341+ { ' nvim-tree/nvim-web-devicons' , enabled = vim .g .have_nerd_font },
342+ >>>>>>> upstream / master
335343 },
336344 config = function ()
337345 -- Telescope is a fuzzy finder that comes with a lot of different things that
@@ -450,7 +458,7 @@ require('lazy').setup {
450458 -- Neovim. This is where `mason` and related plugins come into play.
451459 --
452460 -- If you're wondering about lsp vs treesitter, you can check out the wonderfully
453- -- and elegantly composed help section, :help lsp-vs-treesitter
461+ -- and elegantly composed help section, ` :help lsp-vs-treesitter`
454462
455463 -- This function gets run when an LSP attaches to a particular buffer.
456464 -- That is to say, every time a new file is opened that is associated with
@@ -741,7 +749,9 @@ require('lazy').setup {
741749 lazy = false , -- make sure we load this during startup if it is your main colorscheme
742750 priority = 1000 , -- make sure to load this before all the other start plugins
743751 config = function ()
744- -- Load the colorscheme here
752+ -- Load the colorscheme here.
753+ -- Like many other themes, this one has different styles, and you could load
754+ -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
745755 vim .cmd .colorscheme ' tokyonight-night'
746756
747757 -- You can configure highlights by doing something like
@@ -750,15 +760,15 @@ require('lazy').setup {
750760 },
751761
752762 -- Highlight todo, notes, etc in comments
753- { ' folke/todo-comments.nvim' , dependencies = { ' nvim-lua/plenary.nvim' }, opts = { signs = false } },
763+ { ' folke/todo-comments.nvim' , event = ' VimEnter ' , dependencies = { ' nvim-lua/plenary.nvim' }, opts = { signs = false } },
754764
755765 { -- Collection of various small independent plugins/modules
756766 ' echasnovski/mini.nvim' ,
757767 config = function ()
758768 -- Better Around/Inside textobjects
759769 --
760770 -- Examples:
761- -- - va) - [V]isually select [A]round [)]parenthen
771+ -- - va) - [V]isually select [A]round [)]paren
762772 -- - yinq - [Y]ank [I]nside [N]ext [']quote
763773 -- - ci' - [C]hange [I]nside [']quote
764774 require (' mini.ai' ).setup { n_lines = 500 }
@@ -774,14 +784,15 @@ require('lazy').setup {
774784 -- You could remove this setup call if you don't like it,
775785 -- and try some other statusline plugin
776786 local statusline = require ' mini.statusline'
777- statusline .setup ()
787+ -- set use_icons to true if you have a Nerd Font
788+ statusline .setup { use_icons = vim .g .have_nerd_font }
778789
779- -- You can confiure sections in the statusline by overriding their
780- -- default behavior. For example, here we disable the section for
781- -- cursor information because line numbers are already enabled
790+ -- You can configure sections in the statusline by overriding their
791+ -- default behavior. For example, here we set the section for
792+ -- cursor location to LINE:COLUMN
782793 --- @diagnostic disable-next-line : duplicate-set-field
783794 statusline .section_location = function ()
784- return ' '
795+ return ' %2l:%-2v '
785796 end
786797
787798 -- ... and there is more!
@@ -807,7 +818,7 @@ require('lazy').setup {
807818 -- There are additional nvim-treesitter modules that you can use to interact
808819 -- with nvim-treesitter. You should go explore a few and see what interests you:
809820 --
810- -- - Incremental selection: Included, see :help nvim-treesitter-incremental-selection-mod
821+ -- - Incremental selection: Included, see ` :help nvim-treesitter-incremental-selection-mod`
811822 -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
812823 -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
813824 end ,
@@ -829,9 +840,35 @@ require('lazy').setup {
829840 -- This is the easiest way to modularize your config.
830841 --
831842 -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
843+ <<<<<<< HEAD
832844 -- For additional information see: :help lazy.nvim-lazy.nvim-structuring-your-plugins
833845 { import = ' custom.plugins' },
834846}
847+ =======
848+ -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
849+ -- { import = 'custom.plugins' },
850+ }, {
851+ ui = {
852+ -- If you have a Nerd Font, set icons to an empty table which will use the
853+ -- default lazy.nvim defined Nerd Font icons otherwise define a unicode icons table
854+ icons = vim .g .have_nerd_font and {} or {
855+ cmd = ' ⌘' ,
856+ config = ' 🛠' ,
857+ event = ' 📅' ,
858+ ft = ' 📂' ,
859+ init = ' ⚙' ,
860+ keys = ' 🗝' ,
861+ plugin = ' 🔌' ,
862+ runtime = ' 💻' ,
863+ require = ' 🌙' ,
864+ source = ' 📄' ,
865+ start = ' 🚀' ,
866+ task = ' 📌' ,
867+ lazy = ' 💤 ' ,
868+ },
869+ },
870+ })
871+ >>>>>>> upstream / master
835872
836873-- The line beneath this is called `modeline`. See `:help modeline`
837874-- vim: ts=2 sts=2 sw=2 et
0 commit comments