@@ -113,7 +113,7 @@ require('lazy').setup({
113113 },
114114
115115 -- Useful plugin to show you pending keybinds.
116- { ' folke/which-key.nvim' , opts = {} },
116+ { ' folke/which-key.nvim' , opts = {} },
117117 {
118118 -- Adds git related signs to the gutter, as well as utilities for managing changes
119119 ' lewis6991/gitsigns.nvim' ,
@@ -153,29 +153,37 @@ require('lazy').setup({
153153 },
154154 },
155155
156- {
157- -- Theme inspired by Atom
158- ' shatur/neovim-ayu' ,
159- priority = 1000 ,
160- config = function ()
161- vim .cmd .colorscheme ' ayu-dark'
162- end ,
163- },
164-
165156 {
166157 -- Set lualine as statusline
167158 ' nvim-lualine/lualine.nvim' ,
159+ dependencies = {
160+ ' nvim-tree/nvim-web-devicons'
161+ },
168162 -- See `:help lualine.txt`
163+
169164 opts = {
170165 options = {
171- icons_enabled = false ,
172- theme = ' ayu ' ,
166+ icons_enabled = true ,
167+ theme = ' powerline_dark ' ,
173168 component_separators = ' |' ,
174169 section_separators = ' ' ,
175170 },
176171 },
177172 },
178173
174+ {
175+ " tiagovla/tokyodark.nvim" ,
176+ opts = {
177+ -- custom options here
178+ },
179+ config = function (_ , opts )
180+ require (" tokyodark" ).setup (opts ) -- calling setup is optional
181+ vim .cmd [[ colorscheme tokyodark]]
182+ end ,
183+
184+
185+
186+ },
179187 {
180188 -- Add indentation guides even on blank lines
181189 ' lukas-reineke/indent-blankline.nvim' ,
@@ -221,16 +229,16 @@ require('lazy').setup({
221229 -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
222230 -- These are some example plugins that I've included in the kickstart repository.
223231 -- Uncomment any of the lines below to enable them.
224- -- require 'kickstart.plugins.autoformat',
225- -- require 'kickstart.plugins.debug',
232+ require ' kickstart.plugins.autoformat' ,
233+ require ' kickstart.plugins.debug' ,
226234
227235 -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
228236 -- You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping
229237 -- up-to-date with whatever is in the kickstart repo.
230238 -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
231239 --
232240 -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
233- -- { import = 'custom.plugins' },
241+ { import = ' custom.plugins' },
234242}, {})
235243
236244-- [[ Setting options ]]
@@ -241,7 +249,8 @@ require('lazy').setup({
241249vim .o .hlsearch = false
242250
243251-- Make line numbers default
244- vim .wo .number = true
252+ vim .wo .relativenumber = true
253+ vim .wo .cursorline = true
245254
246255-- Enable mouse mode
247256vim .o .mouse = ' a'
@@ -290,6 +299,11 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnos
290299vim .keymap .set (' n' , ' <leader>e' , vim .diagnostic .open_float , { desc = ' Open floating diagnostic message' })
291300vim .keymap .set (' n' , ' <leader>q' , vim .diagnostic .setloclist , { desc = ' Open diagnostics list' })
292301
302+ -- Set up number line
303+
304+
305+
306+
293307-- [[ Highlight on yank ]]
294308-- See `:help vim.highlight.on_yank()`
295309local highlight_group = vim .api .nvim_create_augroup (' YankHighlight' , { clear = true })
@@ -346,7 +360,7 @@ local function live_grep_git_root()
346360 local git_root = find_git_root ()
347361 if git_root then
348362 require (' telescope.builtin' ).live_grep ({
349- search_dirs = {git_root },
363+ search_dirs = { git_root },
350364 })
351365 end
352366end
@@ -364,6 +378,8 @@ vim.keymap.set('n', '<leader>/', function()
364378 })
365379end , { desc = ' [/] Fuzzily search in current buffer' })
366380
381+
382+
367383vim .keymap .set (' n' , ' <leader>gf' , require (' telescope.builtin' ).git_files , { desc = ' Search [G]it [F]iles' })
368384vim .keymap .set (' n' , ' <leader>sf' , require (' telescope.builtin' ).find_files , { desc = ' [S]earch [F]iles' })
369385vim .keymap .set (' n' , ' <leader>sh' , require (' telescope.builtin' ).help_tags , { desc = ' [S]earch [H]elp' })
@@ -605,5 +621,46 @@ cmp.setup {
605621 },
606622}
607623
624+ require (' lualine' ).setup {
625+ options = {
626+ icons_enabled = true ,
627+ theme = ' auto' ,
628+ component_separators = { left = ' >' , right = ' <' },
629+ section_separators = { left = ' ' , right = ' ' },
630+ disabled_filetypes = {
631+ statusline = {},
632+ winbar = {},
633+ },
634+ ignore_focus = {},
635+ always_divide_middle = true ,
636+ globalstatus = false ,
637+ refresh = {
638+ statusline = 1000 ,
639+ tabline = 1000 ,
640+ winbar = 1000 ,
641+ }
642+ },
643+ sections = {
644+ lualine_a = { ' mode' },
645+ lualine_b = { ' branch' , ' diff' , ' diagnostics' },
646+ lualine_c = { ' filename' },
647+ lualine_x = { ' encoding' , ' fileformat' , ' filetype' },
648+ lualine_y = { ' progress' },
649+ lualine_z = { ' location' }
650+ },
651+ inactive_sections = {
652+ lualine_a = {},
653+ lualine_b = {},
654+ lualine_c = { ' filename' },
655+ lualine_x = { ' location' },
656+ lualine_y = {},
657+ lualine_z = {}
658+ },
659+ tabline = {},
660+ winbar = {},
661+ inactive_winbar = {},
662+ extensions = {}
663+ }
664+
608665-- The line beneath this is called `modeline`. See `:help modeline`
609666-- vim: ts=2 sts=2 sw=2 et
0 commit comments