Remove .config/nvim/colors/colibri-transparent.lua
Remove .config/nvim/colors/colibri.lua Remove .config/nvim/.luarc.json Remove .config/nvim/init.lua Remove .config/nvim/lazy-lock.json Remove .config/nvim/lua/config/00_lazy.lua Remove .config/nvim/lua/config/10_opts.lua Remove .config/nvim/lua/config/20_keymaps.lua Remove .config/nvim/lua/config/30_autocmds.lua Remove .config/nvim/lua/config/40_statusline.lua Remove .config/nvim/lua/plugin/00_treesitter.lua Remove .config/nvim/lua/plugin/01_lsp.lua Remove .config/nvim/lua/plugin/02_completion.lua Remove .config/nvim/lua/plugin/03_tmux.lua Remove .config/nvim/lua/plugin/04_fzflua.lua Remove .config/nvim/lua/plugin/05_whichkey.lua Remove .config/nvim/lua/plugin/06_leap.lua Remove .config/nvim/lua/plugin/07_oil.lua Remove .config/nvim/lua/plugin/09_gitsigns.lua Remove .config/nvim/lua/plugin/10_conform.lua Remove .config/nvim/lua/plugin/11_yanky.lua Remove .config/nvim/lua/plugin/12_neoscroll.lua Remove .config/nvim/lua/plugin/13_easyalign.lua Remove .config/nvim/lua/plugin/14_trouble.lua Remove .config/nvim/lua/plugins/dankcolors.lua Remove .config/nvim/snippets/global.json Remove .config/nvim/snippets/lua.json Remove .config/nvim/snippets/package.json Remove .config/nvim/stylua.toml
This commit is contained in:
parent
e92f93cf58
commit
7292ce5d4a
29 changed files with 0 additions and 1198 deletions
|
|
@ -1,29 +0,0 @@
|
|||
-- 00_lazy.lua
|
||||
-- Bootstraps lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
{ import = "plugin" },
|
||||
{ import = "plugins" },
|
||||
},
|
||||
install = { colorscheme = { "habamax" } },
|
||||
checker = { enabled = true, notify = false },
|
||||
})
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
-- 10_opts.lua
|
||||
-- stylua: ignore start
|
||||
-- General ===================================
|
||||
vim.g.mapleader = " "
|
||||
vim.o.mouse = ""
|
||||
vim.o.mousescroll = "ver:25,hor:6"
|
||||
vim.o.switchbuf = "usetab"
|
||||
vim.o.undofile = true
|
||||
-- UI ========================================
|
||||
vim.o.breakindent = true
|
||||
vim.o.breakindentopt = "list:-1"
|
||||
vim.o.colorcolumn = "+1"
|
||||
vim.o.cursorline = true
|
||||
vim.o.linebreak = true
|
||||
vim.o.list = true
|
||||
vim.o.number = true
|
||||
vim.o.relativenumber = true
|
||||
vim.o.pumheight = 10
|
||||
vim.o.ruler = false
|
||||
vim.o.signcolumn = "yes"
|
||||
vim.o.splitbelow = true
|
||||
vim.o.splitright = true
|
||||
vim.o.winborder = "single"
|
||||
vim.o.wrap = false
|
||||
vim.o.cursorlineopt = "screenline,number"
|
||||
-- Folds =====================================
|
||||
vim.o.foldlevel = 10
|
||||
vim.o.foldmethod = "indent"
|
||||
vim.o.foldnestmax = 10
|
||||
vim.o.foldtext = ""
|
||||
-- Editing ===================================
|
||||
vim.o.autoindent = true
|
||||
vim.o.expandtab = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.incsearch = true
|
||||
vim.o.infercase = true
|
||||
vim.o.smartcase = true
|
||||
vim.o.smartindent = true
|
||||
vim.o.virtualedit = "block"
|
||||
vim.o.iskeyword = "@,48-57,_,192-255,-"
|
||||
vim.o.tabstop = 2
|
||||
vim.o.shiftwidth = 2
|
||||
-- Diagnostic ================================
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
-- 20_keymaps.lua
|
||||
---@diagnostic disable: unused-local, unused-function
|
||||
-- stylua: ignore start
|
||||
|
||||
local map = function(mode, lhs, rhs, desc)
|
||||
vim.keymap.set(mode, lhs, rhs, { noremap = true, desc = desc })
|
||||
end
|
||||
|
||||
local nop = function(lhs) map({ "n", "v" }, lhs, "<nop>", "") end
|
||||
local nmap = function(lhs, rhs, desc) map("n", lhs, rhs, desc) end
|
||||
local xmap = function(lhs, rhs, desc) map("x", lhs, rhs, desc) end
|
||||
|
||||
local nmap_leader = function(lhs, rhs, desc) nmap("<Leader>" .. lhs, rhs, desc) end
|
||||
|
||||
nop('<C-w>s')
|
||||
nop('<C-w>v')
|
||||
|
||||
nmap_leader(';', '<Cmd>vsplit<CR>', 'vsplit')
|
||||
nmap_leader('-', '<Cmd>split<CR>', 'hsplit')
|
||||
|
||||
nmap_leader('ca', '<Cmd>lua vim.lsp.buf.code_action()<CR>', 'lsp code action')
|
||||
nmap_leader('ci', '<Cmd>lua vim.lsp.buf.implementation()<CR>', 'lsp find implementation')
|
||||
nmap_leader('cr', '<Cmd>lua vim.lsp.buf.references()<CR>', 'lsp find references')
|
||||
nmap_leader('cR', '<Cmd>lua vim.lsp.buf.rename()<CR>', 'lsp rename')
|
||||
|
||||
local c = function(rhs)
|
||||
return function()
|
||||
local count = vim.v.count1
|
||||
for _ = 1, count do
|
||||
vim.cmd(rhs)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
nmap(">", c("normal! >>"), "indent")
|
||||
nmap("<", c("normal! <<"), "dedent")
|
||||
xmap(">", ">gv", "indent and reselect")
|
||||
xmap("<", "<gv", "dedent and reselect")
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
-- 30_autocmds.lua
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
desc = 'Highlight when yanking text',
|
||||
group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }),
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
end,
|
||||
})
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
-- 40_statusline.lua
|
||||
|
||||
local cmp = {}
|
||||
|
||||
function _G._statusline_component(name)
|
||||
return cmp[name]()
|
||||
end
|
||||
|
||||
function cmp.window()
|
||||
return vim.api.nvim_win_get_number(0)
|
||||
end
|
||||
|
||||
local statusline = {
|
||||
"%r",
|
||||
"%m",
|
||||
"%=",
|
||||
}
|
||||
|
||||
vim.o.statusline = table.concat(statusline, "")
|
||||
Loading…
Add table
Add a link
Reference in a new issue