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
sudo dnf install fd-find ripgrep ShellCheck -y
go install github.com/jesseduffield/lazygit@latest
npm install eslint --global
npm install -g typescript typescript-language-server
npm install -g @volar/vue-language-server
npm install -g eslint_d
sudo npm install eslint --global
sudo npm install -g typescript typescript-language-server
sudo npm install -g @volar/vue-language-server
sudo npm install -g eslint_d
go install github.com/yoheimuta/protolint/cmd/protolint@latest
```

View File

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

View File

@ -44,4 +44,6 @@ telescope.setup({
})
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",
"gosum",
"gowork",
"help",
"html",
"java",
"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)
use({
"https://github.com/lewis6991/impatient.nvim",
as = "impatient.nvim",
config = function()
require("impatient")
end,
@ -143,8 +144,7 @@ return require("packer").startup(function(use)
requires = {
"rafamadriz/friendly-snippets",
},
-- follow latest release.
tag = "v<CurrentMajor>.*",
tag = "v1.2.1",
-- install jsregexp (optional!:).
run = "make install_jsregexp",
})
@ -186,6 +186,7 @@ return require("packer").startup(function(use)
-- LSP 进度同步
use({
"https://github.com/j-hui/fidget.nvim",
as = "fidget.nvim",
config = function()
require("fidget").setup({
text = {
@ -198,16 +199,20 @@ return require("packer").startup(function(use)
use({
"nvim-telescope/telescope.nvim",
tag = "0.1.1",
as = "telescope.nvim",
requires = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
{ "kdheepak/lazygit.nvim" },
},
})
use({
"https://github.com/nvim-telescope/telescope-fzf-native.nvim",
run = "make",
})
if vim.loop.os_uname().sysname == "Linux" then
use({
"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({