@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191vim .g .maplocalleader = ' '
9292
9393-- Set to true if you have a Nerd Font installed and selected in the terminal
94- vim .g .have_nerd_font = false
94+ vim .g .have_nerd_font = true
9595
9696-- [[ Setting options ]]
9797-- See `:help vim.opt`
@@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
102102vim .opt .number = true
103103-- You can also add relative line numbers, to help with jumping.
104104-- Experiment for yourself to see if you like it!
105- -- vim.opt.relativenumber = true
105+ vim .opt .relativenumber = true
106106
107107-- Enable mouse mode, can be useful for resizing splits for example!
108108vim .opt .mouse = ' a'
@@ -155,7 +155,7 @@ vim.opt.inccommand = 'split'
155155vim .opt .cursorline = true
156156
157157-- Minimal number of screen lines to keep above and below the cursor.
158- vim .opt .scrolloff = 10
158+ vim .opt .scrolloff = 4
159159
160160-- [[ Basic Keymaps ]]
161161-- See `:help vim.keymap.set()`
@@ -176,10 +176,10 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
176176vim .keymap .set (' t' , ' <Esc><Esc>' , ' <C-\\ ><C-n>' , { desc = ' Exit terminal mode' })
177177
178178-- TIP: Disable arrow keys in normal mode
179- -- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
180- -- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
181- -- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
182- -- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
179+ vim .keymap .set (' n' , ' <left>' , ' <cmd>echo "Use h to move!!"<CR>' )
180+ vim .keymap .set (' n' , ' <right>' , ' <cmd>echo "Use l to move!!"<CR>' )
181+ vim .keymap .set (' n' , ' <up>' , ' <cmd>echo "Use k to move!!"<CR>' )
182+ vim .keymap .set (' n' , ' <down>' , ' <cmd>echo "Use j to move!!"<CR>' )
183183
184184-- Keybinds to make split navigation easier.
185185-- Use CTRL+<hjkl> to switch between windows
@@ -416,6 +416,7 @@ require('lazy').setup({
416416 -- You can pass additional configuration to Telescope to change the theme, layout, etc.
417417 builtin .current_buffer_fuzzy_find (require (' telescope.themes' ).get_dropdown {
418418 winblend = 10 ,
419+ prompt_title = ' Live Grep in current Buffer' ,
419420 previewer = false ,
420421 })
421422 end , { desc = ' [/] Fuzzily search in current buffer' })
@@ -588,14 +589,14 @@ require('lazy').setup({
588589 })
589590
590591 -- Change diagnostic symbols in the sign column (gutter)
591- -- if vim.g.have_nerd_font then
592- -- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
593- -- local diagnostic_signs = {}
594- -- for type, icon in pairs(signs) do
595- -- diagnostic_signs[vim.diagnostic.severity[type]] = icon
596- -- end
597- -- vim.diagnostic.config { signs = { text = diagnostic_signs } }
598- -- end
592+ if vim .g .have_nerd_font then
593+ local signs = { ERROR = ' ' , WARN = ' ' , INFO = ' ' , HINT = ' ' }
594+ local diagnostic_signs = {}
595+ for type , icon in pairs (signs ) do
596+ diagnostic_signs [vim .diagnostic .severity [type ]] = icon
597+ end
598+ vim .diagnostic .config { signs = { text = diagnostic_signs } }
599+ end
599600
600601 -- LSP servers and clients are able to communicate to each other what features they support.
601602 -- By default, Neovim doesn't support everything that is in the LSP specification.
0 commit comments