This commit is contained in:
qcloud 2023-09-30 20:08:03 +08:00
parent 4a7393a1ea
commit e6c75ed341
7 changed files with 23 additions and 70 deletions

View File

@ -17,28 +17,4 @@ sudo apt-get install neovim
## 文件结构
```
.
├── coc-settings.json
├── init.lua
├── lua
│   ├── core
│   │   ├── filetype.lua
│   │   ├── keymap.lua
│   │   ├── options.lua
│   │   └── plug.lua
│   ├── Filetype
│   │   ├── c.lua
│   │   ├── markdown.lua
│   │   └── vue.lua
│   ├── G.lua
│   └── Plugin
│   ├── ale.lua
│   ├── coc.lua
│   ├── hlchunk.lua
│   ├── Imchange.lua
│   ├── lualine.lua
│   └── treesitter.lua
├── plugin
│   └── packer_compiled.lua
└── README.md
```

View File

@ -1,9 +1,7 @@
require('core.plug')
require('core.options')
require('core.keymap')
require('core.filetype')
require ('normal.normal')
require('Plugin.coc')
-- require('vscode')
-- require('Plugin.coc')
require('Plugin.lualine')
require('Plugin.Imchange')
require('Plugin.NERDTree')

View File

@ -1,26 +0,0 @@
local G = require("G")
G.api.nvim_create_autocmd( {"FileType"}, {
pattern = "markdown",
callback = function()
require('Filetype.markdown')
--G.cmd('MarkdownPreview')
end
}
)
G.api.nvim_create_autocmd( {"FileType"}, {
pattern = {"c", "cpp"},
callback = function()
require('Filetype.c')
end
}
)
G.api.nvim_create_autocmd( {"FileType"}, {
pattern = "vue",
callback = function()
require('Filetype.vue')
end
}
)

View File

@ -1,3 +1,4 @@
local G, opt = require('G'), {noremap = true}
-- base

4
lua/normal/normal.lua Normal file
View File

@ -0,0 +1,4 @@
require('normal.plug')
require('normal.keymap')
require('normal.options')

View File

@ -39,7 +39,6 @@ G.opt.wrap = false
-- 背景
G.opt.background = 'dark'
-- 主题
G.cmd("colorscheme nord")

View File

@ -1,3 +1,4 @@
local G = require('G')
local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim"
@ -26,8 +27,8 @@ lockfile = false,
'yaocccc/nvim-hlchunk',
-- lsp 补全以及语法高亮
{'neoclide/coc.nvim', branch = 'release'},
'nvim-treesitter/nvim-treesitter',
-- {'neoclide/coc.nvim', branch = 'release'},
-- 'nvim-treesitter/nvim-treesitter',
-- surround 和 wildfire 配合有神奇的效果
'tpope/vim-surround',
@ -49,13 +50,13 @@ lockfile = false,
},
-- 文件搜索
'junegunn/fzf',
-- 'junegunn/fzf',
-- 多光标
'terryma/vim-multiple-cursors',
-- 'terryma/vim-multiple-cursors',
-- github copilot
'github/copilot.vim',
-- 'github/copilot.vim',
-- fzf
'vijaymarupudi/nvim-fzf',
@ -78,16 +79,16 @@ lockfile = false,
-- }
-- },
{
'glepnir/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup {
--{
-- 'glepnir/dashboard-nvim',
-- event = 'VimEnter',
-- config = function()
-- require('dashboard').setup {
-- config
}
end,
dependencies = { {'nvim-tree/nvim-web-devicons'}}
}
-- }
-- end,
-- dependencies = { {'nvim-tree/nvim-web-devicons'}}
-- }
})