@@ -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'
@@ -253,16 +253,16 @@ require('lazy').setup({
253253 --
254254 -- See `:help gitsigns` to understand what the configuration keys do
255255 { -- Adds git related signs to the gutter, as well as utilities for managing changes
256- ' lewis6991/gitsigns.nvim' ,
257- opts = {
258- signs = {
259- add = { text = ' +' },
260- change = { text = ' ~' },
261- delete = { text = ' _' },
262- topdelete = { text = ' ‾' },
263- changedelete = { text = ' ~' },
264- },
265- },
256+ -- 'lewis6991/gitsigns.nvim',
257+ -- opts = {
258+ -- signs = {
259+ -- add = { text = '+' },
260+ -- change = { text = '~' },
261+ -- delete = { text = '_' },
262+ -- topdelete = { text = '‾' },
263+ -- changedelete = { text = '~' },
264+ -- },
265+ -- },
266266 },
267267
268268 -- NOTE: Plugins can also be configured to run Lua code when they are loaded.
@@ -658,9 +658,9 @@ require('lazy').setup({
658658 -- - settings (table): Override the default settings passed when initializing the server.
659659 -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
660660 local servers = {
661- -- clangd = {},
661+ clangd = {" --offset-encoding=utf-16 " },
662662 -- gopls = {},
663- -- pyright = {},
663+ pyright = {},
664664 -- rust_analyzer = {},
665665 -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
666666 --
@@ -758,7 +758,7 @@ require('lazy').setup({
758758 formatters_by_ft = {
759759 lua = { ' stylua' },
760760 -- Conform can also run multiple formatters sequentially
761- -- python = { "isort", "black" },
761+ python = { " isort" , " black" },
762762 --
763763 -- You can use 'stop_after_first' to run the first available formatter from the list
764764 -- javascript = { "prettierd", "prettier", stop_after_first = true },
@@ -834,13 +834,13 @@ require('lazy').setup({
834834 -- Accept ([y]es) the completion.
835835 -- This will auto-import if your LSP supports it.
836836 -- This will expand snippets if the LSP sent a snippet.
837- [' <C-y>' ] = cmp .mapping .confirm { select = true },
837+ -- ['<C-y>'] = cmp.mapping.confirm { select = true },
838838
839839 -- If you prefer more traditional completion keymaps,
840840 -- you can uncomment the following lines
841- -- ['<CR>'] = cmp.mapping.confirm { select = true },
842- -- ['<Tab>'] = cmp.mapping.select_next_item(),
843- -- ['<S-Tab>'] = cmp.mapping.select_prev_item(),
841+ [' <CR>' ] = cmp .mapping .confirm { select = true },
842+ -- ['<Tab>'] = cmp.mapping.select_next_item(),
843+ -- ['<S-Tab>'] = cmp.mapping.select_prev_item(),
844844
845845 -- Manually trigger a completion from nvim-cmp.
846846 -- Generally you don't need this, because nvim-cmp will display
@@ -889,22 +889,76 @@ require('lazy').setup({
889889 -- change the command in the config to whatever the name of that colorscheme is.
890890 --
891891 -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
892- ' folke/tokyonight .nvim' ,
892+ ' navarasu/onedark .nvim' ,
893893 priority = 1000 , -- Make sure to load this before all the other start plugins.
894894 config = function ()
895895 --- @diagnostic disable-next-line : missing-fields
896- require (' tokyonight' ).setup {
897- styles = {
898- comments = { italic = false }, -- Disable italics in comments
899- },
900- }
901-
896+ -- require('tokyonight').setup {
897+ -- styles = {
898+ -- comments = { italic = false }, -- Disable italics in comments
899+ -- },
900+ -- }
902901 -- Load the colorscheme here.
903902 -- Like many other themes, this one has different styles, and you could load
904903 -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
905- vim .cmd .colorscheme ' tokyonight-night'
904+
905+
906+ require (' onedark' ).setup {
907+ -- Main options --
908+ style = ' darker' , -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
909+ transparent = false , -- Show/hide background
910+ term_colors = true , -- Change terminal color as per the selected theme style
911+ ending_tildes = false , -- Show the end-of-buffer tildes. By default they are hidden
912+ cmp_itemkind_reverse = false , -- reverse item kind highlights in cmp menu
913+
914+ -- toggle theme style ---
915+ toggle_style_key = ' <leader>ts' , -- keybind to toggle theme style. Leave it nil to disable it, or set it to a string, for example "<leader>ts"
916+ toggle_style_list = {' dark' , ' darker' , ' cool' , ' deep' , ' warm' , ' warmer' , ' light' }, -- List of styles to toggle between
917+
918+ -- Change code style ---
919+ -- Options are italic, bold, underline, none
920+ -- You can configure multiple style with comma separated, For e.g., keywords = 'italic,bold'
921+ code_style = {
922+ comments = ' italic' ,
923+ keywords = ' none' ,
924+ functions = ' none' ,
925+ strings = ' none' ,
926+ variables = ' none'
927+ },
928+
929+ -- Lualine options --
930+ lualine = {
931+ transparent = false , -- lualine center bar transparency
932+ },
933+
934+ -- Custom Highlights --
935+ colors = {}, -- Override default colors
936+ highlights = {}, -- Override highlight groups
937+
938+ -- Plugins Config --
939+ diagnostics = {
940+ darker = true , -- darker colors for diagnostic
941+ undercurl = true , -- use undercurl instead of underline for diagnostics
942+ background = true , -- use background color for virtual text
943+ },
944+ }
945+
946+ -- vim.cmd.colorscheme 'onedark'
906947 end ,
907948 },
949+ {
950+ ' sainnhe/sonokai' ,
951+ lazy = false ,
952+ priority = 1000 ,
953+ config = function ()
954+ -- Optionally configure and load the colorscheme
955+ -- directly inside the plugin declaration.
956+ vim .g .sonokai_enable_italic = true
957+ -- vim.g.sonokai_transparent_background = 1
958+ vim .cmd .colorscheme (' sonokai' )
959+ end
960+ },
961+
908962
909963 -- Highlight todo, notes, etc in comments
910964 { ' folke/todo-comments.nvim' , event = ' VimEnter' , dependencies = { ' nvim-lua/plenary.nvim' }, opts = { signs = false } },
@@ -921,7 +975,7 @@ require('lazy').setup({
921975 require (' mini.ai' ).setup { n_lines = 500 }
922976
923977 -- Add/delete/replace surroundings (brackets, quotes, etc.)
924- --
978+
925979 -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
926980 -- - sd' - [S]urround [D]elete [']quotes
927981 -- - sr)' - [S]urround [R]eplace [)] [']
@@ -981,18 +1035,18 @@ require('lazy').setup({
9811035 -- Here are some example plugins that I've included in the Kickstart repository.
9821036 -- Uncomment any of the lines below to enable them (you will need to restart nvim).
9831037 --
984- -- require 'kickstart.plugins.debug',
985- -- require 'kickstart.plugins.indent_line',
986- -- require 'kickstart.plugins.lint',
987- -- require 'kickstart.plugins.autopairs',
988- -- require 'kickstart.plugins.neo-tree',
989- -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
1038+ require ' kickstart.plugins.debug' ,
1039+ require ' kickstart.plugins.indent_line' ,
1040+ require ' kickstart.plugins.lint' ,
1041+ require ' kickstart.plugins.autopairs' ,
1042+ require ' kickstart.plugins.neo-tree' ,
1043+ require ' kickstart.plugins.gitsigns' , -- adds gitsigns recommend keymaps
9901044
9911045 -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
9921046 -- This is the easiest way to modularize your config.
9931047 --
9941048 -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
995- -- { import = 'custom.plugins' },
1049+ { import = ' custom.plugins' },
9961050 --
9971051 -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
9981052 -- Or use telescope!
@@ -1003,19 +1057,19 @@ require('lazy').setup({
10031057 -- If you are using a Nerd Font: set icons to an empty table which will use the
10041058 -- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
10051059 icons = vim .g .have_nerd_font and {} or {
1006- cmd = ' ⌘' ,
1007- config = ' 🛠' ,
1008- event = ' 📅' ,
1009- ft = ' 📂' ,
1010- init = ' ⚙' ,
1011- keys = ' 🗝' ,
1012- plugin = ' 🔌' ,
1013- runtime = ' 💻' ,
1014- require = ' 🌙' ,
1015- source = ' 📄' ,
1016- start = ' 🚀' ,
1017- task = ' 📌' ,
1018- lazy = ' 💤 ' ,
1060+ -- cmd = '⌘',
1061+ -- config = '🛠',
1062+ -- event = '📅',
1063+ -- ft = '📂',
1064+ -- init = '⚙',
1065+ -- keys = '🗝',
1066+ -- plugin = '🔌',
1067+ -- runtime = '💻',
1068+ -- require = '🌙',
1069+ -- source = '📄',
1070+ -- start = '🚀',
1071+ -- task = '📌',
1072+ -- lazy = '💤 ',
10191073 },
10201074 },
10211075})
0 commit comments