changes flask

This commit is contained in:
newbieQQ 2023-11-15 23:40:02 +08:00
parent f75aa5ec60
commit 9e72d8a2b6
22 changed files with 51 additions and 84 deletions

View File

@ -2,7 +2,7 @@ G = require('G')
if G.g.vscode then
require('vscode.vscode')
require('vscode')
else
local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not G.loop.fs_stat(lazypath) then
@ -27,15 +27,12 @@ else
end
G.opt.rtp:prepend(lazypath)
require("lazy").setup({
require('normal.plug'),
require('neovim.plug'),
})
require("lazy").setup(require('plugs'))
require('normal.normal')
require('neovim.neovim')
end
require("keymap")
require("options")

View File

@ -35,14 +35,15 @@ G.map({
{'n', '<c-l>', '<c-w>l', opt},
{'n', '<c-c>', ':q<CR>', opt},
{'n', '<c-s>', ':s<CR>', opt},
{'n', '<c-S>', ':w !sudo tee %<CR>', opt},
{'n', '<c-c>', ':q<CR>', opt},
{'n', '<c-S>', ':w !sudo tee %<CR>', opt},
{'n', '<c-q>', ':q!<CR>', opt},
{'n', '<leader><leader>y', 'ggyG', opt},
{'n', '<leader><leader>p', 'ggpG', opt},
{'n', '<leader><leader>v', 'ggVG', opt},
{'n', '<leader>y', 'ggyG', opt},
{'n', '<leader>p', 'ggpG', opt},
{'n', '<leader>v', 'ggVG', opt},
{'n', '<up>', ':res -5<CR>', opt},
{'n', '<down>', ':res +5<CR>', opt},
@ -51,8 +52,3 @@ G.map({
})

View File

@ -1 +0,0 @@

View File

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

View File

@ -1,6 +0,0 @@
G.cmd("colorscheme tokyonight") -- 主题
-- G.api.colorscheme = "tokyonight"
G.opt.background = 'dark' -- 背景

View File

@ -1,24 +0,0 @@
return {
'github/copilot.vim', -- github copilot
'vijaymarupudi/nvim-fzf', -- fzf
'lilydjwg/colorizer', --颜色识别
require('neovim.plugsettings.coc'), -- coc
require('neovim.plugsettings.lualine'), -- lualine
require('neovim.plugsettings.nvimtree'), -- nvimtree
require('neovim.plugsettings.treesitter'), -- treesitter
require('neovim.plugsettings.theme'),
-- nerdtree
-- {
-- 'preservim/nerdtree',
-- dependencies = {
-- 'Xuyuanp/nerdtree-git-plugin',
-- 'ryanoasis/vim-devicons',
-- },
-- cmd = 'NERDTreeToggle',
-- },
}

View File

@ -1,5 +0,0 @@
return {
'shaunsingh/nord.nvim', -- 主题插件
'folke/tokyonight.nvim',
}

View File

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

View File

@ -1,15 +0,0 @@
return {
-- 多光标
'terryma/vim-multiple-cursors',
require("normal.plugsettings.edit-plugs"),
require("normal.plugsettings.hop"),
}

28
lua/plugs.lua Normal file
View File

@ -0,0 +1,28 @@
return {
'github/copilot.vim', -- github copilot
'vijaymarupudi/nvim-fzf', -- fzf
'lilydjwg/colorizer', -- 颜色识别
'terryma/vim-multiple-cursors', -- 多光标
require('plugs.coc'), -- coc
require('plugs.lualine'), -- lualine
require('plugs.nvimtree'), -- nvimtree
require('plugs.treesitter'), -- treesitter
require('plugs.theme'),
require("plugs.edit-plugs"),
require("plugs.hop"),
-- nerdtree
-- {
-- 'preservim/nerdtree',
-- dependencies = {
-- 'Xuyuanp/nerdtree-git-plugin',
-- 'ryanoasis/vim-devicons',
-- },
-- cmd = 'NERDTreeToggle',
-- },
}

12
lua/plugs/theme.lua Normal file
View File

@ -0,0 +1,12 @@
return {
'shaunsingh/nord.nvim', -- 主题插件
{
'folke/tokyonight.nvim',
config = function ()
G.cmd("colorscheme tokyonight") -- 主题
-- G.api.colorscheme = "tokyonight"
G.opt.background = 'dark' -- 背景
end
}
}

View File

@ -1,6 +0,0 @@
local opt = {noremap = true}
G.map({
{'n', 'j', 'gj', opt},
{'n', 'k', 'gk', opt},
})

View File

View File

@ -1 +0,0 @@
require("vscode.keymap")