This commit is contained in:
ZaneFerns360 2024-04-28 11:39:28 +05:30
parent 45bb16f283
commit 33094f882b
3 changed files with 33 additions and 28 deletions

View File

@ -238,6 +238,26 @@ require('lazy').setup({
-- require('Comment').setup({}) -- require('Comment').setup({})
-- "gc" to comment visual regions/lines -- "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 = {} }, { 'numToStr/Comment.nvim', opts = {} },
-- Here is a more advanced example where we pass configuration -- Here is a more advanced example where we pass configuration
@ -659,7 +679,7 @@ require('lazy').setup({
{ -- Autoformat { -- Autoformat
'stevearc/conform.nvim', 'stevearc/conform.nvim',
lazy = false, lazy = true,
keys = { keys = {
{ {
'<leader>f', '<leader>f',
@ -696,7 +716,7 @@ require('lazy').setup({
css = { { 'prettierd', 'prettier' } }, css = { { 'prettierd', 'prettier' } },
scc = { { 'prettierd', 'prettier' } }, scc = { { 'prettierd', 'prettier' } },
html = { { 'prettierd', 'prettier' } }, html = { { 'prettierd', 'prettier' } },
python = { { 'ruff' } }, python = { { 'ruff_format' } },
c = { { 'clang_format' } }, c = { { 'clang_format' } },
cpp = { { 'clang_format' } }, cpp = { { 'clang_format' } },
}, },
@ -813,26 +833,6 @@ require('lazy').setup({
} }
end, 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 -- Highlight todo, notes, etc in comments
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },

View File

@ -4,12 +4,14 @@ local dash = {
event = 'VimEnter', event = 'VimEnter',
opts = function() opts = function()
local logo = [[ local logo = [[
Z
Z
z
z
]] ]]
logo = string.rep('\n', 8) .. logo .. '\n\n' logo = string.rep('\n', 8) .. logo .. '\n\n'

View File

@ -1,5 +1,8 @@
local keybinds = { local keybinds = {
vim.api.nvim_set_keymap('n', ';', ':', { noremap = true }), 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 return keybinds