diff --git a/init.lua b/init.lua index 8a4a776b..b465baf2 100644 --- a/init.lua +++ b/init.lua @@ -25,7 +25,7 @@ What is Kickstart? Kickstart.nvim is *not* a distribution. Kickstart.nvim is a starting point for your own configuration. - The goal is that you can read every line of code, top-to-bottom, understand + /// goal is that you can read every line of code, top-to-bottom, understand what your configuration is doing, and modify it to suit your needs. Once you've done that, you can start exploring, configuring and tinkering to @@ -94,7 +94,14 @@ P.S. You can delete this when you're done too. It's your config now! :) -- vim.api.nvim_set_hl(0, 'ReturnKeyword', { fg = '#FF0000', bold = true }) -- vim.cmd [[syntax match ReturnKeyword /\/]] - +-- +--AUTO RELOAD ON SAVE +vim.api.nvim_create_autocmd('BufWritePost', { + pattern = '*', -- For all files + callback = function() + vim.cmd [[silent edit]] -- Reload the buffer silently + end, +}) -- Your existing Neovim configurations.. vim.opt.autoread = true vim.cmd 'autocmd VimResume * checktime' @@ -123,6 +130,7 @@ vim.api.nvim_create_autocmd({ 'FileChangedShellPost' }, { -- end, -- }) -- +-- -- -- Notification after file change -- vim.api.nvim_create_autocmd('FileChangedShellPost', { -- callback = function() @@ -131,14 +139,14 @@ vim.api.nvim_create_autocmd({ 'FileChangedShellPost' }, { -- }) vim.lsp.inlay_hint.enable() -vim.opt.tabstop = 2 -vim.opt.shiftwidth = 2 -vim.opt.softtabstop = 2 +-- vim.opt.tabstop = 2 +-- vim.opt.shiftwidth = 2 +-- vim.opt.softtabstop = 2 vim.opt.expandtab = true -- Function to toggle transparency function ToggleTransparency() if vim.g.transparency_enabled then - vim.cmd 'hi Normal guibg=#000000 ctermbg=NONE' -- Replace with your preferred background color + vim.cmd 'hi Normal guibg=NONE ctermbg=NONE' -- Replace with your preferred background color vim.cmd 'hi NormalNC guibg=#000000 ctermbg=NONE' -- Replace with your preferred background color vim.g.transparency_enabled = false else @@ -188,9 +196,14 @@ vim.api.nvim_set_keymap('i', '', '^', { noremap = true }) vim.api.nvim_set_keymap('i', '', 'opi', { noremap = true }) vim.api.nvim_set_keymap('i', '', 'oPi', { noremap = true }) -- Block cursor -vim.opt.guicursor = - 'n-v-c:block,i-ci-ve:block,r-cr:hor20,o:hor50,i-ci-ve:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175' +-- vim.opt.guicursor = 'n-v-c:block,i:block-blinkwait700-blinkoff400-blinkon250,sm:block' +-- vim.opt.guicursor = 'n-v-c:block,i:ver25-blinkon250-blinkoff400-blinkwait700,r:hor20,o:hor50,sm:block-blinkwait175-blinkoff150-blinkon175' +vim.api.nvim_create_autocmd('VimEnter', { + callback = function() + vim.opt.guicursor = 'n-v-c:ver90,i:block-blinkwait400-blinkoff200-blinkon250,sm:block' + end, +}) -------------------------------------------------------------------- if vim.fn.has 'termguicolors' == 1 then @@ -718,7 +731,7 @@ require('lazy').setup({ -- https://github.com/pmizio/typescript-tools.nvim -- -- But for many setups, the LSP (`tsserver`) will work just fine - ts_ls = {}, + -- ts_ls = {}, -- lua_ls = { @@ -933,9 +946,9 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + -- vim.cmd.colorscheme 'tokyonight-night' -- vim.cmd.colorscheme 'kanagawa' - -- vim.cmd.colorscheme 'material-palenight' + vim.cmd.colorscheme 'material-palenight' -- vim.cmd.colorscheme 'obscure' -- vim.cmd.colorscheme 'rose-pine' -- You can configure highlights by doing something like: diff --git a/lua/custom/plugins/auto-save.lua b/lua/custom/plugins/auto-save.lua new file mode 100644 index 00000000..272421c5 --- /dev/null +++ b/lua/custom/plugins/auto-save.lua @@ -0,0 +1,27 @@ +return { + 'okuuva/auto-save.nvim', + version = '^1.0.0', -- see https://devhints.io/semver, alternatively use '*' to use the latest tagged release + cmd = 'ASToggle', -- optional for lazy loading on command + event = { 'InsertLeave', 'TextChanged' }, -- optional for lazy loading on trigger events + opts = { + -- your config goes here + -- or just leave it empty :) + enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it) + trigger_events = { -- See :h events + immediate_save = { 'BufLeave', 'FocusLost', 'QuitPre', 'VimSuspend' }, -- vim events that trigger an immediate save + defer_save = { 'InsertLeave', 'TextChanged' }, -- vim events that trigger a deferred save (saves after `debounce_delay`) + cancel_deferred_save = { 'InsertEnter' }, -- vim events that cancel a pending deferred save + }, + -- function that takes the buffer handle and determines whether to save the current buffer or not + -- return true: if buffer is ok to be saved + -- return false: if it's not ok to be saved + -- if set to `nil` then no specific condition is applied + condition = nil, + write_all_buffers = false, -- write all buffers when the current one meets `condition` + noautocmd = false, -- do not execute autocmds when saving + lockmarks = false, -- lock marks when saving, see `:h lockmarks` for more details + debounce_delay = 1000, -- delay after which a pending save is executed + -- log debug messages to 'auto-save.log' file in neovim cache directory, set to `true` to enable + debug = false, + }, +} diff --git a/lua/custom/plugins/ayu.lua b/lua/custom/plugins/ayu.lua deleted file mode 100644 index 27ba4e94..00000000 --- a/lua/custom/plugins/ayu.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - 'ayu-theme/ayu-vim', -- or other package manager - config = function() - vim.o.termguicolors = true -- enable true colors support - local ayucolor = 'light' -- for light version of theme - -- local ayucolor = 'mirage' -- for mirage version of theme - -- local ayucolor = 'dark' -- for dark version of theme - end, -} diff --git a/lua/custom/plugins/bamboo.lua b/lua/custom/plugins/bamboo.lua deleted file mode 100644 index c71c25f8..00000000 --- a/lua/custom/plugins/bamboo.lua +++ /dev/null @@ -1,10 +0,0 @@ -return -- Using lazy.nvim -{ - 'ribru17/bamboo.nvim', - lazy = false, - config = function() - require('bamboo').setup { - -- optional configuration here - } - end, -} diff --git a/lua/custom/plugins/bore.lua b/lua/custom/plugins/bore.lua deleted file mode 100644 index d2a0c660..00000000 --- a/lua/custom/plugins/bore.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'sixfourtwelve/bore.vim' } diff --git a/lua/custom/plugins/catppuccin.lua b/lua/custom/plugins/catppuccin.lua deleted file mode 100644 index cada0631..00000000 --- a/lua/custom/plugins/catppuccin.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'catppuccin/nvim', name = 'catppuccin', priority = 1000 } diff --git a/lua/custom/plugins/cyberdream.lua b/lua/custom/plugins/cyberdream.lua deleted file mode 100644 index 65fc02df..00000000 --- a/lua/custom/plugins/cyberdream.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - 'scottmckendry/cyberdream.nvim', - lazy = false, - priority = 1000, - options = { - theme = 'auto', -- "auto" will set the theme dynamically based on the colorscheme - }, -} diff --git a/lua/custom/plugins/darkrose.lua b/lua/custom/plugins/darkrose.lua deleted file mode 100644 index 0e42e228..00000000 --- a/lua/custom/plugins/darkrose.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'water-sucks/darkrose.nvim' } diff --git a/lua/custom/plugins/gotham.lua b/lua/custom/plugins/gotham.lua deleted file mode 100644 index d1e209f2..00000000 --- a/lua/custom/plugins/gotham.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'whatyouhide/vim-gotham' } diff --git a/lua/custom/plugins/lillilac.lua b/lua/custom/plugins/lillilac.lua deleted file mode 100644 index 1aa36091..00000000 --- a/lua/custom/plugins/lillilac.lua +++ /dev/null @@ -1 +0,0 @@ -return {'Love-Pengy/lillilac.nvim'} diff --git a/lua/custom/plugins/mellow.lua b/lua/custom/plugins/mellow.lua deleted file mode 100644 index 77f93f1e..00000000 --- a/lua/custom/plugins/mellow.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'mellow-theme/mellow.nvim' } diff --git a/lua/custom/plugins/miasma.lua b/lua/custom/plugins/miasma.lua deleted file mode 100644 index 59e499d2..00000000 --- a/lua/custom/plugins/miasma.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - 'xero/miasma.nvim', - -- lazy = false, - -- priority = 1000, - -- config = function() - -- vim.cmd 'colorscheme miasma' - -- end, -} diff --git a/lua/custom/plugins/miramare.lua b/lua/custom/plugins/miramare.lua deleted file mode 100644 index 7c6846f4..00000000 --- a/lua/custom/plugins/miramare.lua +++ /dev/null @@ -1,2 +0,0 @@ --- theme -return { 'franbach/miramare' } diff --git a/lua/custom/plugins/nightfox.lua b/lua/custom/plugins/nightfox.lua deleted file mode 100644 index af0402c5..00000000 --- a/lua/custom/plugins/nightfox.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'EdenEast/nightfox.nvim' } diff --git a/lua/custom/plugins/oceanic-material.lua b/lua/custom/plugins/oceanic-material.lua deleted file mode 100644 index 0165a96d..00000000 --- a/lua/custom/plugins/oceanic-material.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'nvimdev/oceanic-material' } diff --git a/lua/custom/plugins/smoke.lua b/lua/custom/plugins/smoke.lua deleted file mode 100644 index 6f0a6082..00000000 --- a/lua/custom/plugins/smoke.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'austinliuigi/smoke.nvim' } diff --git a/lua/custom/plugins/tairiki.lua b/lua/custom/plugins/tairiki.lua deleted file mode 100644 index 860e5ba1..00000000 --- a/lua/custom/plugins/tairiki.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - 'deparr/tairiki.nvim', - lazy = false, - priority = 1000, -- only necessary if you use tairiki as default theme - config = function() - require('tairiki').setup { - style = 'dark', - } - end, -} diff --git a/lua/custom/plugins/typescript-tools.lua b/lua/custom/plugins/typescript-tools.lua deleted file mode 100644 index ba7fb204..00000000 --- a/lua/custom/plugins/typescript-tools.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'pmizio/typescript-tools.nvim', - dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' }, - opts = {}, -} diff --git a/lua/custom/plugins/vim-mellow.lua b/lua/custom/plugins/vim-mellow.lua deleted file mode 100644 index 1e545c55..00000000 --- a/lua/custom/plugins/vim-mellow.lua +++ /dev/null @@ -1 +0,0 @@ -return { 'adigitoleo/vim-mellow' } diff --git a/lua/custom/plugins/vim-visual-multi.lua b/lua/custom/plugins/vim-visual-multi.lua new file mode 100644 index 00000000..91ddf10b --- /dev/null +++ b/lua/custom/plugins/vim-visual-multi.lua @@ -0,0 +1 @@ +return { 'mg979/vim-visual-multi', branch = 'master' } diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 72f5d3b8..7268d1fd 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -102,7 +102,7 @@ return { executable = { command = 'node', -- Update the path below to point to your `dapDebugServer.js` - args = { '/home/tawfeeq/.config/nvim/.debuggers/vscode-js-debug/js-debug/src/dapDebugServer.js', '${port}' }, + args = { '/home/tawfeeq/.config/nvim/debuggers/vscode-js-debug/js-debug/src/dapDebugServer.js', '${port}' }, }, }