aboutsummaryrefslogtreecommitdiff
path: root/configs/nvim/config-root/init.lua
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-28 23:13:39 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-28 23:13:39 +0800
commit99e2e923d0c77b02f3fb4ff648ea916954868606 (patch)
treeec8e03f6f2cd1ce43990fb4fe6cd631967d0237e /configs/nvim/config-root/init.lua
parent1cee979f5d36b311a03cc7397a036ba11caf3d42 (diff)
downloadcrupest-99e2e923d0c77b02f3fb4ff648ea916954868606.tar.gz
crupest-99e2e923d0c77b02f3fb4ff648ea916954868606.tar.bz2
crupest-99e2e923d0c77b02f3fb4ff648ea916954868606.zip
chore(store): move everything to store.
Diffstat (limited to 'configs/nvim/config-root/init.lua')
-rw-r--r--configs/nvim/config-root/init.lua63
1 files changed, 0 insertions, 63 deletions
diff --git a/configs/nvim/config-root/init.lua b/configs/nvim/config-root/init.lua
deleted file mode 100644
index 9de0b2c..0000000
--- a/configs/nvim/config-root/init.lua
+++ /dev/null
@@ -1,63 +0,0 @@
-if vim.g.neovide then
- -- spellchecker: disable-next-line
- vim.opt.guifont = "FiraCode Nerd Font";
- vim.g.neovide_window_blurred = true;
- vim.g.neovide_transparency = 0.9;
- vim.g.neovide_input_ime = false;
- vim.g.neovide_cursor_animate_in_insert_mode = false
- vim.g.neovide_cursor_vfx_mode = "pixiedust";
- vim.g.neovide_input_macos_option_key_is_meta = 'only_left'
-end
-
-local is_win = vim.fn.has("win32") ~= 0
-
--- spellchecker: disable
-if is_win then
- vim.cmd([[
- let &shell = executable('pwsh') ? 'pwsh' : 'powershell'
- let &shellcmdflag = '-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';Remove-Alias -Force -ErrorAction SilentlyContinue tee;'
- let &shellredir = '2>&1 | %%{ "$_" } | Out-File %s; exit $LastExitCode'
- let &shellpipe = '2>&1 | %%{ "$_" } | tee %s; exit $LastExitCode'
- set shellquote= shellxquote=
- ]])
- vim.opt.completeslash = 'slash'
-end
--- spellchecker: enable
-
--- spellchecker: disable
-vim.opt.termguicolors = true;
-vim.opt.fileformats = "unix,dos";
-vim.opt.softtabstop = 4;
-vim.opt.shiftwidth = 4;
-vim.opt.expandtab = true;
-vim.opt.wrap = false;
-vim.opt.number = true;
--- spellchecker: enable
-
-vim.g.load_doxygen_syntax = true;
-vim.g.doxygen_javadoc_autobrief = false;
-
--- Init lazy.nvim
-local lazy_path = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-if not vim.uv.fs_stat(lazy_path) then
- vim.fn.system({
- "git",
- "clone",
- "--filter=blob:none",
- "https://github.com/folke/lazy.nvim.git",
- "--branch=stable", -- latest stable release
- lazy_path,
- })
-end
-vim.opt.rtp:prepend(lazy_path)
-
--- Use lazy.nvim
-require("lazy").setup("plugins")
-
-vim.cmd("colorscheme catppuccin-macchiato")
-
-require("crupest.nvim.lsp").setup()
-require("crupest.nvim.plugins").setup()
-require("crupest.nvim.keymap").setup()
-
-vim.cmd("autocmd FileType gitcommit,gitrebase,gitconfig set bufhidden=delete")