Browse Source

👌 IMPROVE: update

pull/93/head
Xin.Chen 3 years ago
parent
commit
eb1e672191
  1. 21
      init.vim
  2. 9
      lua/basic.lua
  3. 1
      lua/lsp/nvim-cmp-config.lua
  4. 0
      lua/plugin-config/bufferline.lua
  5. 0
      lua/plugin-config/comment.lua
  6. 0
      lua/plugin-config/nvim-autopairs.lua
  7. 0
      lua/plugin-config/nvim-colorizer.lua
  8. 0
      lua/plugin-config/nvim-tree.lua
  9. 0
      lua/plugin-config/nvim-treesitter.lua
  10. 0
      lua/plugin-config/surround.lua
  11. 0
      lua/plugin-config/telescope.lua
  12. 0
      lua/plugin-config/which-key.lua

21
init.vim

@ -1,23 +1,24 @@
" 基础设置
lua require('basic')
" 插件列表
" Packer插件管理
lua require('plugins')
" 快捷键映射
lua require('keybindings')
lua require('which-key-config')
" 皮肤设置
" https://github.com/ellisonleao/gruvbox.nvim
set background=dark " or light if you want light mode
colorscheme gruvbox
" 插件配置
lua require('nvim-treesitter-config')
lua require('telescope-config')
lua require('nvim-autopairs-config')
lua require('nvim-tree-config')
lua require('bufferline-config')
lua require('surround-config')
lua require('comment-config')
lua require('nvim-colorizer-config')
lua require('plugin-config/which-key')
lua require('plugin-config/nvim-treesitter')
lua require('plugin-config/telescope')
lua require('plugin-config/nvim-autopairs')
lua require('plugin-config/nvim-tree')
lua require('plugin-config/bufferline')
lua require('plugin-config/surround')
lua require('plugin-config/comment')
lua require('plugin-config/nvim-colorizer')
" lsp
lua require('lsp/nvim-cmp-config')

9
lua/basic.lua

@ -9,7 +9,7 @@ vim.wo.number = true
vim.wo.relativenumber = true
-- 高亮所在行
vim.wo.cursorline = true
-- 显示指示列
-- 显示左侧图标指示列
vim.wo.signcolumn = "yes"
-- 右侧参考线
vim.wo.colorcolumn = "80"
@ -21,13 +21,13 @@ vim.o.shiftround = true
-- >> << 时长度
vim.o.shiftwidth = 2
vim.bo.shiftwidth = 2
-- 新行对齐当前行,适合空格替代tab
-- 新行对齐当前行,空格替代tab
vim.o.expandtab = true
vim.bo.expandtab = true
vim.o.autoindent = true
vim.bo.autoindent = true
vim.o.smartindent = true
-- 搜索大小写不敏感,除非包含大
-- 搜索大小写不敏感,除非包含大写
vim.o.ignorecase = true
vim.o.smartcase = true
-- 搜索不要高亮
@ -61,7 +61,8 @@ vim.o.timeoutlen = 100
-- split window 从下边和右边出现
vim.o.splitbelow = true
vim.o.splitright = true
-- 自动补全不自动选中
vim.g.completeopt = "menu,menuone,noselect,noinsert"
---------------------------------------------
vim.o.background = "dark"
vim.o.termguicolors = true

1
lua/lsp/nvim-cmp-config.lua

@ -1,5 +1,4 @@
-- https://gitub.com/hrsh7th/nvim-cmph
vim.g.completeopt = "menu,menuone,noselect,noinsert"
-- copy from wiki
-- https://github.com/hrsh7th/nvim-cmp/wiki/Example-mappings#vim-vsnip

0
lua/bufferline-config.lua → lua/plugin-config/bufferline.lua

0
lua/comment-config.lua → lua/plugin-config/comment.lua

0
lua/nvim-autopairs-config.lua → lua/plugin-config/nvim-autopairs.lua

0
lua/nvim-colorizer-config.lua → lua/plugin-config/nvim-colorizer.lua

0
lua/nvim-tree-config.lua → lua/plugin-config/nvim-tree.lua

0
lua/nvim-treesitter-config.lua → lua/plugin-config/nvim-treesitter.lua

0
lua/surround-config.lua → lua/plugin-config/surround.lua

0
lua/telescope-config.lua → lua/plugin-config/telescope.lua

0
lua/which-key-config.lua → lua/plugin-config/which-key.lua

Loading…
Cancel
Save