diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-03-12 22:50:12 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-03-12 22:50:12 +0800 |
commit | 3ad034a1b5755bd5d8ebed71637dedb9089a7dce (patch) | |
tree | 228aed35af429f3819b897da2dd3b12742063f7d /store/home/config/nvim/init.lua | |
parent | 117afbc9af2cd4fd515d7fdbda8a1fa44c3d8a74 (diff) | |
download | crupest-3ad034a1b5755bd5d8ebed71637dedb9089a7dce.tar.gz crupest-3ad034a1b5755bd5d8ebed71637dedb9089a7dce.tar.bz2 crupest-3ad034a1b5755bd5d8ebed71637dedb9089a7dce.zip |
Diffstat (limited to 'store/home/config/nvim/init.lua')
-rw-r--r-- | store/home/config/nvim/init.lua | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/store/home/config/nvim/init.lua b/store/home/config/nvim/init.lua index d9349e1..881ce15 100644 --- a/store/home/config/nvim/init.lua +++ b/store/home/config/nvim/init.lua @@ -7,35 +7,6 @@ if vim.g.neovide then 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({ @@ -48,14 +19,9 @@ if not vim.uv.fs_stat(lazy_path) then }) 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() +require("setup").setup() -vim.cmd("autocmd FileType gitcommit,gitrebase,gitconfig set bufhidden=delete") |