init
This commit is contained in:
commit
b3efe740e0
11 changed files with 80 additions and 0 deletions
1
.config/nvim/init.lua
Normal file
1
.config/nvim/init.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
require("bumpsoo")
|
||||||
13
.config/nvim/lua/bumpsoo/init.lua
Normal file
13
.config/nvim/lua/bumpsoo/init.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
if vim.fn.has('wsl') == 1 then
|
||||||
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
|
group = vim.api.nvim_create_augroup('Yank', { clear = true }),
|
||||||
|
callback = function()
|
||||||
|
vim.fn.system('clip.exe', vim.fn.getreg('"'))
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
require("bumpsoo.remap")
|
||||||
|
require("bumpsoo.lazy")
|
||||||
|
require("bumpsoo.set")
|
||||||
14
.config/nvim/lua/bumpsoo/lazy.lua
Normal file
14
.config/nvim/lua/bumpsoo/lazy.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
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", -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
require("lazy").setup("bumpsoo.plugins")
|
||||||
|
|
||||||
10
.config/nvim/lua/bumpsoo/plugins/telescope.lua
Normal file
10
.config/nvim/lua/bumpsoo/plugins/telescope.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
'nvim-telescope/telescope.nvim', tag = '0.1.4',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
|
config = function()
|
||||||
|
local builtin = require('telescope.builtin')
|
||||||
|
vim.keymap.set('n', '<leader>fn', builtin.find_files, {})
|
||||||
|
vim.keymap.set('n', '<leader>fs', builtin.live_grep, {})
|
||||||
|
vim.keymap.set('n', '<leader>ft', builtin.help_tags, {})
|
||||||
|
end
|
||||||
|
}
|
||||||
9
.config/nvim/lua/bumpsoo/plugins/treesitter.lua
Normal file
9
.config/nvim/lua/bumpsoo/plugins/treesitter.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
return {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = function()
|
||||||
|
require("nvim-treesitter.install").update({
|
||||||
|
with_sync = true
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
2
.config/nvim/lua/bumpsoo/remap.lua
Normal file
2
.config/nvim/lua/bumpsoo/remap.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.keymap.set("n", "<leader>ex", vim.cmd.Ex)
|
||||||
5
.config/nvim/lua/bumpsoo/set.lua
Normal file
5
.config/nvim/lua/bumpsoo/set.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
vim.opt.nu = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.opt.colorcolumn = "80"
|
||||||
16
.gitconfig
Normal file
16
.gitconfig
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
|
||||||
|
[alias]
|
||||||
|
logs = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
|
||||||
|
co = checkout
|
||||||
|
br = branch
|
||||||
|
|
||||||
|
[user]
|
||||||
|
useConfigOnly = true
|
||||||
|
|
||||||
|
[includeIf "gitdir:~/work/"]
|
||||||
|
path = ~/work/.gitconfig
|
||||||
|
|
||||||
|
[includeIf "gitdir:~/personal/"]
|
||||||
|
path = ~/personal/.gitconfig
|
||||||
6
.profile
Normal file
6
.profile
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
EDITOR=/usr/bin/nvim
|
||||||
|
alias vi=nvim
|
||||||
|
alias vim=nvim
|
||||||
|
|
||||||
|
alias la='ls -a'
|
||||||
|
alias ll='ls -al'
|
||||||
1
.tmux.conf
Normal file
1
.tmux.conf
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
setw -g mode-keys vi
|
||||||
3
personal/.gitconfig
Normal file
3
personal/.gitconfig
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[user]
|
||||||
|
name = bumpsoo
|
||||||
|
email = bumpsoo063@protonmail.ch
|
||||||
Loading…
Add table
Add a link
Reference in a new issue