feat: windows compatible

This commit is contained in:
xuthus5 2023-04-01 02:57:27 +08:00 committed by Young Xu
parent 1f3896974d
commit 1db5944feb
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
6 changed files with 19 additions and 13 deletions

View File

@ -16,10 +16,10 @@ git clone --depth 1 https://github.com/wbthomason/packer.nvim\
```bash ```bash
sudo dnf install fd-find ripgrep ShellCheck -y sudo dnf install fd-find ripgrep ShellCheck -y
go install github.com/jesseduffield/lazygit@latest go install github.com/jesseduffield/lazygit@latest
npm install eslint --global sudo npm install eslint --global
npm install -g typescript typescript-language-server sudo npm install -g typescript typescript-language-server
npm install -g @volar/vue-language-server sudo npm install -g @volar/vue-language-server
npm install -g eslint_d sudo npm install -g eslint_d
go install github.com/yoheimuta/protolint/cmd/protolint@latest go install github.com/yoheimuta/protolint/cmd/protolint@latest
``` ```

View File

@ -32,7 +32,7 @@ vim.o.cmdheight = 1
vim.o.autoread = true vim.o.autoread = true
vim.bo.autoread = true vim.bo.autoread = true
-- 禁止折行 -- 禁止折行
vim.wo.wrap = false vim.wo.wrap = true
-- 光标在行首尾时<Left><Right>可以跳到下一行 -- 光标在行首尾时<Left><Right>可以跳到下一行
vim.o.whichwrap = "<,>,[,]" vim.o.whichwrap = "<,>,[,]"
-- 允许隐藏被修改过的buffer -- 允许隐藏被修改过的buffer

View File

@ -44,4 +44,6 @@ telescope.setup({
}) })
telescope.load_extension("ui-select") telescope.load_extension("ui-select")
telescope.load_extension("fzf") if vim.loop.os_uname().sysname == "Linux" then
telescope.load_extension("fzf")
end

View File

@ -15,7 +15,6 @@ require("nvim-treesitter.configs").setup({
"gomod", "gomod",
"gosum", "gosum",
"gowork", "gowork",
"help",
"html", "html",
"java", "java",
"javascript", "javascript",

0
lua/plugins/utils.lua Normal file
View File

View File

@ -14,6 +14,7 @@ local packer_bootstrap = ensure_packer()
return require("packer").startup(function(use) return require("packer").startup(function(use)
use({ use({
"https://github.com/lewis6991/impatient.nvim", "https://github.com/lewis6991/impatient.nvim",
as = "impatient.nvim",
config = function() config = function()
require("impatient") require("impatient")
end, end,
@ -143,8 +144,7 @@ return require("packer").startup(function(use)
requires = { requires = {
"rafamadriz/friendly-snippets", "rafamadriz/friendly-snippets",
}, },
-- follow latest release. tag = "v1.2.1",
tag = "v<CurrentMajor>.*",
-- install jsregexp (optional!:). -- install jsregexp (optional!:).
run = "make install_jsregexp", run = "make install_jsregexp",
}) })
@ -186,6 +186,7 @@ return require("packer").startup(function(use)
-- LSP 进度同步 -- LSP 进度同步
use({ use({
"https://github.com/j-hui/fidget.nvim", "https://github.com/j-hui/fidget.nvim",
as = "fidget.nvim",
config = function() config = function()
require("fidget").setup({ require("fidget").setup({
text = { text = {
@ -198,16 +199,20 @@ return require("packer").startup(function(use)
use({ use({
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.1", tag = "0.1.1",
as = "telescope.nvim",
requires = { requires = {
{ "nvim-lua/plenary.nvim" }, { "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" }, { "nvim-treesitter/nvim-treesitter" },
{ "kdheepak/lazygit.nvim" }, { "kdheepak/lazygit.nvim" },
}, },
}) })
use({ if vim.loop.os_uname().sysname == "Linux" then
"https://github.com/nvim-telescope/telescope-fzf-native.nvim", use({
run = "make", "https://github.com/nvim-telescope/telescope-fzf-native.nvim",
}) run = "make",
as = "telescope-fzf-native.nvim",
})
end
use({ "nvim-telescope/telescope-ui-select.nvim" }) use({ "nvim-telescope/telescope-ui-select.nvim" })
-- 自定义命令 -- 自定义命令
use({ use({