huge updates

This commit is contained in:
sankalp committed 2024-08-16 22:39:30 +05:45
1 parent a2b0f73e33
commit b5e4ef3bff
54 files changed
+931 -812

No files matched your search

File renamed without changes.
-158
View File
@@ -1,158 +0,0 @@
return {
kind = {
Array = '',
Boolean = '',
Class = '',
Color = '',
Constant = '',
Constructor = '',
Enum = '',
EnumMember = '',
Event = '',
Field = '',
File = '',
Folder = '󰉋',
Function = '',
Interface = '',
Key = '',
Keyword = '',
Method = '',
-- Module = " ",
Module = '',
Namespace = '',
Null = '󰟢',
Number = '',
Object = '',
Operator = '',
Package = '',
Property = '',
Reference = '',
Snippet = '',
String = '',
Struct = '',
Text = '',
TypeParameter = '',
Unit = '',
Value = '',
Variable = '',
},
git = {
LineAdded = '',
LineModified = '',
LineRemoved = '',
FileDeleted = '',
FileIgnored = '◌',
FileRenamed = '',
FileStaged = 'S',
FileUnmerged = '',
FileUnstaged = '',
FileUntracked = 'U',
Diff = '',
Repo = '',
Octoface = '',
Copilot = '',
Branch = '',
},
ui = {
ArrowCircleDown = '',
ArrowCircleLeft = '',
ArrowCircleRight = '',
ArrowCircleUp = '',
BoldArrowDown = '',
BoldArrowLeft = '',
BoldArrowRight = '',
BoldArrowUp = '',
BoldClose = '',
BoldDividerLeft = '',
BoldDividerRight = '',
BoldLineLeft = '▎',
BoldLineMiddle = '┃',
BoldLineDashedMiddle = '┋',
BookMark = '',
BoxChecked = '',
Bug = '',
Stacks = '',
Scopes = '',
Watches = '󰂥',
DebugConsole = '',
Calendar = '',
Check = '',
ChevronRight = '',
ChevronShortDown = '',
ChevronShortLeft = '',
ChevronShortRight = '',
ChevronShortUp = '',
Circle = '',
Close = '󰅖',
CloudDownload = '',
Code = '',
Comment = '',
Dashboard = '',
DividerLeft = '',
DividerRight = '',
DoubleChevronRight = '»',
Ellipsis = '',
EmptyFolder = '',
EmptyFolderOpen = '',
File = '',
FileSymlink = '',
Files = '',
FindFile = '󰈞',
FindText = '󰊄',
Fire = '',
Folder = '󰉋',
FolderOpen = '',
FolderSymlink = '',
Forward = '',
Gear = '',
History = '',
Lightbulb = '',
LineLeft = '▏',
LineMiddle = '│',
List = '',
Lock = '',
NewFile = '',
Note = '',
Package = '',
Pencil = '󰏫',
Plus = '',
Project = '',
Search = '',
SignIn = '',
SignOut = '',
Tab = '󰌒',
Table = '',
Target = '󰀘',
Telescope = '',
Text = '',
Tree = '',
Triangle = '󰐊',
TriangleShortArrowDown = '',
TriangleShortArrowLeft = '',
TriangleShortArrowRight = '',
TriangleShortArrowUp = '',
},
diagnostics = {
BoldError = '',
Error = '',
BoldWarning = '',
Warn = '',
BoldInformation = '',
Info = '',
BoldQuestion = '',
Question = '',
BoldHint = '',
Hint = '󰌶',
Debug = '',
Trace = '✎',
},
misc = {
Robot = '󰚩',
Squirrel = '',
Tag = '',
Watch = '',
Smiley = '',
Package = '',
CircuitBoard = '',
},
}
+25 -9
View File
@@ -8,9 +8,31 @@ vim.keymap.set('n', '<C-a>', 'gg<S-v>G')
-- Replace currently selected text with default register without yanking it
vim.keymap.set('x', '<leader>p', '"_dP')
-- Delete without yanking
vim.keymap.set('n', '<leader>d', '"_d', { desc = 'Delete highlighted text' })
vim.keymap.set('v', '<leader>d', '"_d', { desc = 'Delete highlighted text' })
-- Delete and change without yanking
vim.keymap.set({ 'n', 'x' }, '<A-d>', '"_d', { desc = 'Delete Without Yanking' })
vim.keymap.set({ 'n', 'x' }, '<A-c>', '"_c', { desc = 'Change Without Yanking' })
-- Deleting without yanking empty line
vim.keymap.set('n', 'dd', function()
local is_empty_line = vim.api.nvim_get_current_line():match('^%s*$')
if is_empty_line then
return '"_dd'
else
return 'dd'
end
end, { noremap = true, expr = true, desc = "Don't Yank Empty Line to Clipboard" })
-- Search inside visually highlighted text
vim.keymap.set('x', 'g/', '<esc>/\\%V', { silent = false, desc = 'Search Inside Visual Selection' })
-- Search visually selected text (slightly better than builtins in Neovim>=0.8)
vim.keymap.set('x', '*', [[y/\V<C-R>=escape(@", '/\')<CR><CR>]], { desc = 'Search Selected Text', silent = true })
vim.keymap.set(
'x',
'#',
[[y?\V<C-R>=escape(@", '?\')<CR><CR>]],
{ desc = 'Search Selected Text (Backwards)', silent = true }
)
-- save file
vim.keymap.set('n', '<leader>w', ':w<CR>', { desc = 'Save file' })
@@ -21,12 +43,6 @@ vim.keymap.set('n', '<leader>Q', '<cmd>wq!<CR>', { desc = 'Force save and quit'
-- Clear highlights on search when pressing <Esc> in normal mode
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Resize window using <ctrl> arrow keys
vim.keymap.set('n', '<A-Up>', '<cmd>resize +2<cr>', { desc = 'Increase Window Height' })
vim.keymap.set('n', '<A-Down>', '<cmd>resize -2<cr>', { desc = 'Decrease Window Height' })
vim.keymap.set('n', '<A-Left>', '<cmd>vertical resize -2<cr>', { desc = 'Decrease Window Width' })
vim.keymap.set('n', '<A-Right>', '<cmd>vertical resize +2<cr>', { desc = 'Increase Window Width' })
-- Visual vim.keymap.sets
vim.keymap.set('v', '<leader>r', '"hy:%s/<C-r>h//g<left><left>') -- Replace all instances of highlighted words
vim.keymap.set('v', '<A-s>', ':sort<CR>') -- Sort highlighted text in visual mode with Control+S
+24 -5
View File
@@ -19,10 +19,11 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
spec = {
{ import = 'plugins' },
{ import = 'list' },
},
install = {
missing = true,
colorscheme = { 'onedark' },
colorscheme = { 'moonfly' },
},
checker = {
enabled = true,
@@ -34,10 +35,28 @@ require('lazy').setup({
},
ui = {
icons = {
ft = '',
lazy = '󰂠 ',
loaded = '',
not_loaded = '',
cmd = '',
config = ' ',
event = '',
ft = '',
init = '',
import = '',
keys = '',
lazy = '󰒲 ',
loaded = '●',
not_loaded = '○',
plugin = '',
runtime = '',
require = '󰢱 ',
source = '',
start = '',
task = '✔ ',
list = {
'●',
'➜',
'★',
'‒',
},
},
},
performance = {