Add old dotfiles
This commit is contained in:
commit
1cace80e48
192 files changed
+13538
No files matched your search
@@ -0,0 +1,14 @@
|
||||
vim.cmd('set clipboard+=unnamedplus')
|
||||
|
||||
function CopyToClipboard()
|
||||
local selected_text = vim.fn.getline("'<,'>")
|
||||
vim.fn.setreg("+", selected_text)
|
||||
end
|
||||
|
||||
function PasteFromClipboard()
|
||||
local clipboard_text = vim.fn.getreg("+")
|
||||
vim.fn.setline('.', clipboard_text)
|
||||
end
|
||||
|
||||
vim.api.nvim_set_keymap('x', '<Leader>y', [[:lua CopyToClipboard()<CR>]], { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<Leader>p', [[:lua PasteFromClipboard()<CR>]], { noremap = true, silent = true })
|
||||
@@ -0,0 +1,41 @@
|
||||
vim.opt.nu = true
|
||||
vim.opt.rnu = true
|
||||
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.autoindent = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
|
||||
vim.opt.wrap = false
|
||||
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
vim.opt.undofile = true
|
||||
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.scrolloff = 5
|
||||
|
||||
vim.opt.updatetime = 50
|
||||
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
|
||||
vim.opt.encoding = "utf-8"
|
||||
|
||||
vim.opt.shell = "bash"
|
||||
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.opt.title = true
|
||||
|
||||
vim.cmd "set showtabline=0 | set laststatus=0"
|
||||
@@ -0,0 +1,5 @@
|
||||
require("venomade.remap")
|
||||
require("venomade.lazy")
|
||||
require("venomade.config")
|
||||
require("venomade.clipboard")
|
||||
require("venomade.neovide")
|
||||
@@ -0,0 +1,44 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
-- Telescope Fuzzy Finder
|
||||
{'nvim-telescope/telescope.nvim', tag = '0.1.3', dependencies = {'nvim-lua/plenary.nvim'}},
|
||||
-- Catppuccin color scheme
|
||||
{"catppuccin/nvim", name = "catppuccin", priority = 1000},
|
||||
-- Treesitter syntax highlighting
|
||||
{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"},
|
||||
-- Harpoon bookmarking
|
||||
{"theprimeagen/harpoon"},
|
||||
-- LSP ZERO
|
||||
{'VonHeikemen/lsp-zero.nvim', branch = 'v3.x'},
|
||||
{'neovim/nvim-lspconfig', dependencies = {'hrsh7th/cmp-nvim-lsp'}},
|
||||
{'hrsh7th/nvim-cmp', dependencies = {'L3MON4D3/LuaSnip'}},
|
||||
-- Codeium AI Completion
|
||||
{'Exafunction/codeium.nvim', dependencies = {'nvim-lua/plenary.nvim', 'hrsh7th/nvim-cmp'}},
|
||||
-- Dashboard
|
||||
{'goolord/alpha-nvim', dependencies = {'nvim-tree/nvim-web-devicons'}},
|
||||
-- LSP Icons
|
||||
{'onsails/lspkind.nvim'},
|
||||
-- Bufferline
|
||||
{'nvim-lualine/lualine.nvim', dependencies = {'nvim-tree/nvim-web-devicons'}},
|
||||
-- Autoparis
|
||||
{'windwp/nvim-autopairs'},
|
||||
-- Color Highlighting
|
||||
{'norcalli/nvim-colorizer.lua'},
|
||||
-- Return to last edit position
|
||||
{'ethanholz/nvim-lastplace'},
|
||||
-- Org Mode in Neovim
|
||||
{'nvim-neorg/neorg', dependencies = {'vhyrro/luarocks.nvim'}},
|
||||
})
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
if vim.g.neovide then
|
||||
vim.opt.guifont = { "FantasqueSansM Nerd Font", ":h12" }
|
||||
|
||||
vim.g.neovide_scale_factor = 1.0
|
||||
|
||||
--Transparency
|
||||
-- Helper function for transparency formatting
|
||||
local alpha = function()
|
||||
return string.format("%x", math.floor(255 * vim.g.transparency or 0.8))
|
||||
end
|
||||
|
||||
vim.g.neovide_transparency = 0.92
|
||||
vim.g.transparency = 0.92
|
||||
-- vim.g.neovide_background_color = "#1e1e2e" .. alpha()
|
||||
|
||||
vim.g.neovide_window_blurred = true
|
||||
vim.g.neovide_floating_blur_amount_x = 2.0
|
||||
vim.g.neovide_floating_blur_amount_y = 2.0
|
||||
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
||||
|
||||
-- Buffers
|
||||
vim.keymap.set("n", "<leader>bk", vim.cmd.bdelete)
|
||||
vim.keymap.set("n", "<leader>bn", vim.cmd.bnext)
|
||||
vim.keymap.set("n", "<leader>bp", vim.cmd.bprev)
|
||||
Reference in new issue
Block a user