From 33094f882bb7778ea621eafc4c883d3b565ff522 Mon Sep 17 00:00:00 2001 From: ZaneFerns360 Date: Sun, 28 Apr 2024 11:39:28 +0530 Subject: [PATCH] changes --- init.lua | 44 +++++++++++++++--------------- lua/custom/plugins/dashboard.lua | 14 ++++++---- lua/custom/plugins/keybindings.lua | 3 ++ 3 files changed, 33 insertions(+), 28 deletions(-) diff --git a/init.lua b/init.lua index b6e972a4..d7b68a0d 100644 --- a/init.lua +++ b/init.lua @@ -238,6 +238,26 @@ require('lazy').setup({ -- require('Comment').setup({}) -- "gc" to comment visual regions/lines + + { -- You can easily change to a different colorscheme. + -- Change the name of the colorscheme plugin below, and then + -- change the command in the config to whatever the name of that colorscheme is. + -- + -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. + 'folke/tokyonight.nvim', + priority = 1000, -- Make sure to load this before all the other start plugins. + lazy = false, + init = function() + -- 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' + + -- You can configure highlights by doing something like: + vim.cmd.hi 'Comment gui=none' + end, + }, + { 'numToStr/Comment.nvim', opts = {} }, -- Here is a more advanced example where we pass configuration @@ -659,7 +679,7 @@ require('lazy').setup({ { -- Autoformat 'stevearc/conform.nvim', - lazy = false, + lazy = true, keys = { { 'f', @@ -696,7 +716,7 @@ require('lazy').setup({ css = { { 'prettierd', 'prettier' } }, scc = { { 'prettierd', 'prettier' } }, html = { { 'prettierd', 'prettier' } }, - python = { { 'ruff' } }, + python = { { 'ruff_format' } }, c = { { 'clang_format' } }, cpp = { { 'clang_format' } }, }, @@ -813,26 +833,6 @@ require('lazy').setup({ } end, }, - - { -- You can easily change to a different colorscheme. - -- Change the name of the colorscheme plugin below, and then - -- change the command in the config to whatever the name of that colorscheme is. - -- - -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', - priority = 1000, -- Make sure to load this before all the other start plugins. - lazy = false, - init = function() - -- 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' - - -- You can configure highlights by doing something like: - vim.cmd.hi 'Comment gui=none' - end, - }, - -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, diff --git a/lua/custom/plugins/dashboard.lua b/lua/custom/plugins/dashboard.lua index 18e31629..ba109c40 100644 --- a/lua/custom/plugins/dashboard.lua +++ b/lua/custom/plugins/dashboard.lua @@ -4,12 +4,14 @@ local dash = { event = 'VimEnter', opts = function() local logo = [[ - ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z - ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z - ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z - ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z - ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ - ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ + + ██████╗ ██████╗ ███████╗ ██████╗ +██╔════╝ ██╔══██╗██╔════╝██╔════╝ +██║ ███╗██║ ██║███████╗██║ +██║ ██║██║ ██║╚════██║██║ +╚██████╔╝██████╔╝███████║╚██████╗ + ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ + ]] logo = string.rep('\n', 8) .. logo .. '\n\n' diff --git a/lua/custom/plugins/keybindings.lua b/lua/custom/plugins/keybindings.lua index 64ee53d5..c760bc1a 100644 --- a/lua/custom/plugins/keybindings.lua +++ b/lua/custom/plugins/keybindings.lua @@ -1,5 +1,8 @@ local keybinds = { vim.api.nvim_set_keymap('n', ';', ':', { noremap = true }), + vim.cmd 'command! QQ q!', + vim.cmd 'command! Q q', + vim.cmd 'command! WQ wq', } return keybinds