#W# Initial Commit: No Flake Config
This commit is contained in:
commit
c463cec3e2
74 changed files with 14898 additions and 0 deletions
136
home/config/nvim/init.lua
Normal file
136
home/config/nvim/init.lua
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
-------------------------------------------------------------------------------
|
||||
-- 1. Leader Keys & Timeout Options
|
||||
-------------------------------------------------------------------------------
|
||||
vim.keymap.set("", "<Space>", "Nop")
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- 2. Built-in Plugin Manager (vim.pack)
|
||||
-------------------------------------------------------------------------------
|
||||
vim.pack.add({
|
||||
'https://github.com/RomanAverin/charleston.nvim',
|
||||
'https://github.com/nvim-tree/nvim-web-devicons',
|
||||
'https://github.com/nvim-lualine/lualine.nvim',
|
||||
'https://github.com/stevearc/oil.nvim',
|
||||
'https://github.com/nvim-lua/plenary.nvim',
|
||||
'https://github.com/nvim-telescope/telescope.nvim',
|
||||
'https://github.com/nvimdev/dashboard-nvim',
|
||||
})
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- 3. Options
|
||||
-------------------------------------------------------------------------------
|
||||
local opt = vim.opt
|
||||
|
||||
opt.showmode = false
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.tabstop = 4
|
||||
opt.shiftwidth = 4
|
||||
opt.expandtab = true
|
||||
opt.autoindent = true
|
||||
opt.smartindent = true
|
||||
opt.background = "dark"
|
||||
opt.signcolumn = "yes"
|
||||
opt.cursorline = true
|
||||
opt.listchars = "tab: ,multispace:| ,eol:"
|
||||
opt.list = true
|
||||
opt.clipboard = "unnamedplus"
|
||||
|
||||
opt.timeoutlen = 2000
|
||||
-- opt.timeout = false
|
||||
-------------------------------------------------------------------------------
|
||||
-- 4. Plugin Configurations & Colorscheme
|
||||
-------------------------------------------------------------------------------
|
||||
-- Colorscheme
|
||||
vim.cmd.colorscheme('charleston')
|
||||
|
||||
-- Lualine
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
theme = 'charleston',
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = '' },
|
||||
globalstatus = true,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch', 'diff', 'diagnostics' },
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' },
|
||||
},
|
||||
})
|
||||
|
||||
-- Oil
|
||||
require('oil').setup({
|
||||
default_file_explorer = true,
|
||||
delete_to_trash = true,
|
||||
skip_confirm_for_simple_edits = true,
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
})
|
||||
|
||||
-- Telescope
|
||||
require('telescope').setup({
|
||||
defaults = {
|
||||
path_display = { "smart" },
|
||||
file_ignore_patterns = { "node_modules", ".git/" },
|
||||
},
|
||||
})
|
||||
|
||||
-- Dashboard
|
||||
require('dashboard').setup({
|
||||
theme = 'doom',
|
||||
config = {
|
||||
header = {
|
||||
" ",
|
||||
" ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗",
|
||||
" ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║",
|
||||
" ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║",
|
||||
" ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║",
|
||||
" ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║",
|
||||
" ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
|
||||
" ",
|
||||
},
|
||||
center = {
|
||||
{ icon = ' ', desc = 'Find File ', action = 'Telescope find_files', key = 'f' },
|
||||
{ icon = ' ', desc = 'Find Text ', action = 'Telescope live_grep', key = 't' },
|
||||
{ icon = ' ', desc = 'Recent Files ', action = 'Telescope oldfiles', key = 'r' },
|
||||
{ icon = ' ', desc = 'File Explorer ', action = 'Oil', key = 'e' },
|
||||
{ icon = ' ', desc = 'New File ', action = 'ene | startinsert', key = 'n' },
|
||||
{ icon = ' ', desc = 'Quit Neovim ', action = 'qa', key = 'q' },
|
||||
},
|
||||
footer = { "", "⚡ Neovim 0.12 Minimal Config" },
|
||||
},
|
||||
})
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- 5. Keymaps
|
||||
-------------------------------------------------------------------------------
|
||||
local keymap = vim.keymap.set
|
||||
local opts = { silent = true }
|
||||
|
||||
-- File & Quit shortcuts
|
||||
keymap('n', '<leader>w', '<cmd>write<CR>', opts)
|
||||
keymap('n', '<leader>q', '<cmd>quit<CR>', opts)
|
||||
keymap('n', '<leader>QQ', '<cmd>q!<CR>', opts)
|
||||
keymap('n', '<leader>wq', '<cmd>wq<CR>', opts)
|
||||
|
||||
-- UI Toggles
|
||||
keymap('n', '<leader>r', '<cmd>set wrap!<CR>', opts)
|
||||
keymap('n', '<leader>n', '<cmd>set number! relativenumber!<CR>', opts)
|
||||
|
||||
-- File Explorer (Oil)
|
||||
keymap('n', '-', function() require('oil').open() end, { desc = 'Open parent directory in Oil' })
|
||||
keymap('n', '<leader>e', function() require('oil').open() end, { desc = 'Open parent directory in Oil' })
|
||||
|
||||
-- Telescope Keymaps
|
||||
local builtin = require('telescope.builtin')
|
||||
keymap('n', '<leader>ff', builtin.find_files, { desc = 'Find files' })
|
||||
keymap('n', '<leader>fg', builtin.live_grep, { desc = 'Live grep search' })
|
||||
keymap('n', '<leader>fb', builtin.buffers, { desc = 'Find open buffers' })
|
||||
keymap('n', '<leader>fh', builtin.help_tags, { desc = 'Find help tags' })
|
||||
40
home/config/nvim/nvim-pack-lock.json
Normal file
40
home/config/nvim/nvim-pack-lock.json
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"plugins": {
|
||||
"blink.cmp": {
|
||||
"rev": "d26c6b0a4ea9188b9d10fdd5b180deba7675e3cd",
|
||||
"src": "https://github.com/Saghen/blink.cmp"
|
||||
},
|
||||
"blink.lib": {
|
||||
"rev": "2789206e10a0e4880f808c2aaf52bc57d876b481",
|
||||
"src": "https://github.com/Saghen/blink.lib"
|
||||
},
|
||||
"charleston.nvim": {
|
||||
"rev": "363cb2bbca78c353bb0a2014d3b160db18c9c2a8",
|
||||
"src": "https://github.com/RomanAverin/charleston.nvim"
|
||||
},
|
||||
"dashboard-nvim": {
|
||||
"rev": "f787e3462c2ee2b6117b17c1aa4ddf66cb6f57fe",
|
||||
"src": "https://github.com/nvimdev/dashboard-nvim"
|
||||
},
|
||||
"lualine.nvim": {
|
||||
"rev": "221ce6b2d999187044529f49da6554a92f740a96",
|
||||
"src": "https://github.com/nvim-lualine/lualine.nvim"
|
||||
},
|
||||
"nvim-web-devicons": {
|
||||
"rev": "2ae6958df7ced50baac5035cec0c15799eedfbf7",
|
||||
"src": "https://github.com/nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
"oil.nvim": {
|
||||
"rev": "b73018b75affd13fa38e2fc94ef753b465f770d7",
|
||||
"src": "https://github.com/stevearc/oil.nvim"
|
||||
},
|
||||
"plenary.nvim": {
|
||||
"rev": "74b06c6c75e4eeb3108ec01852001636d85a932b",
|
||||
"src": "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
"telescope.nvim": {
|
||||
"rev": "427b576c16792edad01a92b89721d923c19ad60f",
|
||||
"src": "https://github.com/nvim-telescope/telescope.nvim"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue