@@ -689,6 +689,15 @@ require('lazy').setup({
689689 end ,
690690 })
691691
692+ -- Change diagnostic symbols in the sign column (gutter)
693+ -- if vim.g.have_nerd_font then
694+ -- local signs = { Error = '', Warn = '', Hint = '', Info = '' }
695+ -- for type, icon in pairs(signs) do
696+ -- local hl = 'DiagnosticSign' .. type
697+ -- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
698+ -- end
699+ -- end
700+
692701 -- LSP servers and clients are able to communicate to each other what features they support.
693702 -- By default, Neovim doesn't support everything that is in the LSP specification.
694703 -- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
@@ -1009,10 +1018,15 @@ require('lazy').setup({
10091018 -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
10101019 },
10111020
1012- -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
1013- -- These are some example plugins that I've included in the kickstart repository.
1014- -- Uncomment any of the lines below to enable them.
1015- -- require 'kickstart.plugins.autoformat',
1021+ -- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
1022+ -- init.lua. If you want these files, they are in the repository, so you can just download them and
1023+ -- place them in the correct locations.
1024+
1025+ -- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart
1026+ --
1027+ -- Here are some example plugins that I've included in the Kickstart repository.
1028+ -- Uncomment any of the lines below to enable them (you will need to restart nvim).
1029+ --
10161030 -- require 'kickstart.plugins.debug',
10171031 -- require 'kickstart.plugins.indent_line',
10181032 -- require 'kickstart.plugins.lint',
@@ -1025,100 +1039,31 @@ require('lazy').setup({
10251039 -- up-to-date with whatever is in the kickstart repo.
10261040 -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
10271041 --
1028- -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
1042+ -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
10291043 -- { import = 'custom.plugins' },
1030- }, {})
1031-
1032- -- [[ Setting options ]]
1033- -- See `:help vim.o`
1034- -- NOTE: You can change these options as you wish!
1035-
1036- -- Set highlight on search
1037- vim .o .hlsearch = false
1038-
1039- -- Set relative line number default
1040- vim .wo .relativenumber = true
1041-
1042- -- Make line numbers default
1043- vim .wo .number = true
1044-
1045- -- Enable mouse mode
1046- vim .o .mouse = ' a'
1047-
1048- -- Sync clipboard between OS and Neovim.
1049- -- Remove this option if you want your OS clipboard to remain independent.
1050- -- See `:help 'clipboard'`
1051- vim .o .clipboard = ' unnamedplus'
1052-
1053- -- Enable break indent
1054- vim .o .breakindent = true
1055-
1056- -- Save undo history
1057- vim .o .undofile = true
1058-
1059- -- Case-insensitive searching UNLESS \C or capital in search
1060- vim .o .ignorecase = true
1061- vim .o .smartcase = true
1062-
1063- -- Keep signcolumn on by default
1064- vim .wo .signcolumn = ' yes'
1065-
1066- -- Decrease update time
1067- vim .o .updatetime = 250
1068- vim .o .timeoutlen = 300
1069-
1070- -- Set completeopt to have a better completion experience
1071- vim .o .completeopt = ' menuone,noselect'
1072-
1073- -- NOTE: You should make sure your terminal supports this
1074- vim .o .termguicolors = true
1075-
1076- -- [[ Basic Keymaps ]]
1077-
1078- -- Keymaps for better default experience
1079- -- See `:help vim.keymap.set()`
1080- vim .keymap .set ({ ' n' , ' v' }, ' <Space>' , ' <Nop>' , { silent = true })
1081-
1082- -- Remap for dealing with word wrap
1083- vim .keymap .set (' n' , ' k' , " v:count == 0 ? 'gk' : 'k'" , { expr = true , silent = true })
1084- vim .keymap .set (' n' , ' j' , " v:count == 0 ? 'gj' : 'j'" , { expr = true , silent = true })
1085-
1086- -- Diagnostic keymaps
1087- vim .keymap .set (' n' , ' [d' , vim .diagnostic .goto_prev , { desc = ' Go to previous diagnostic message' })
1088- vim .keymap .set (' n' , ' ]d' , vim .diagnostic .goto_next , { desc = ' Go to next diagnostic message' })
1089- vim .keymap .set (' n' , ' <leader>e' , vim .diagnostic .open_float , { desc = ' Open floating diagnostic message' })
1090- vim .keymap .set (' n' , ' <leader>q' , vim .diagnostic .setloclist , { desc = ' Open diagnostics list' })
1091-
1092- -- [[ Highlight on yank ]]
1093- -- See `:help vim.highlight.on_yank()`
1094- local highlight_group = vim .api .nvim_create_augroup (' YankHighlight' , { clear = true })
1095- vim .api .nvim_create_autocmd (' TextYankPost' , {
1096- callback = function ()
1097- vim .highlight .on_yank ()
1098- end ,
1099- group = highlight_group ,
1100- pattern = ' *' ,
1101- })
1102-
1103- vim .api .nvim_create_autocmd (" LspAttach" , {
1104- group = vim .api .nvim_create_augroup (" UserLspConfig" , {}),
1105- callback = function (args )
1106- local client = vim .lsp .get_client_by_id (args .data .client_id )
1107- if client .server_capabilities .inlayHintProvider then
1108- vim .lsp .inlay_hint .enable (args .buf , true )
1109- end
1110- -- whatever other lsp config you want
1111- end
1112- })
1113- -- [[ Configure Telescope ]]
1114- -- See `:help telescope` and `:help telescope.setup()`
1115- require (' telescope' ).setup {
1116- defaults = {
1117- mappings = {
1118- i = {
1119- [' <C-u>' ] = false ,
1120- [' <C-d>' ] = false ,
1121- },
1044+ --
1045+ -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
1046+ -- Or use telescope!
1047+ -- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
1048+ -- you can continue same window with `<space>sr` which resumes last telescope search
1049+ }, {
1050+ ui = {
1051+ -- If you are using a Nerd Font: set icons to an empty table which will use the
1052+ -- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
1053+ icons = vim .g .have_nerd_font and {} or {
1054+ cmd = ' ⌘' ,
1055+ config = ' 🛠' ,
1056+ event = ' 📅' ,
1057+ ft = ' 📂' ,
1058+ init = ' ⚙' ,
1059+ keys = ' 🗝' ,
1060+ plugin = ' 🔌' ,
1061+ runtime = ' 💻' ,
1062+ require = ' 🌙' ,
1063+ source = ' 📄' ,
1064+ start = ' 🚀' ,
1065+ task = ' 📌' ,
1066+ lazy = ' 💤 ' ,
11221067 },
11231068 },
11241069}
0 commit comments