update
This commit is contained in:
parent
840422bde1
commit
6abd9e80c4
2
init.lua
2
init.lua
@ -7,7 +7,7 @@ if not G.loop.fs_stat(lazypath) then
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"http://git.qqnewbie.top/newbie/lazy.nvim.git",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
|
11
lua/lsp/basedpyright.lua
Normal file
11
lua/lsp/basedpyright.lua
Normal file
@ -0,0 +1,11 @@
|
||||
return {
|
||||
on_attach = function()
|
||||
G.api.nvim_create_user_command('R', function()
|
||||
G.cmd [[set splitbelow]]
|
||||
G.cmd [[sp]]
|
||||
G.cmd [[term python3 %]]
|
||||
G.cmd [[resize 10]]
|
||||
G.cmd [[startinsert]]
|
||||
end, {})
|
||||
end
|
||||
}
|
@ -1,30 +1,28 @@
|
||||
return {
|
||||
'lilydjwg/colorizer', -- 颜色识别
|
||||
{
|
||||
-- 类似postman的curl工具
|
||||
"rest-nvim/rest.nvim",
|
||||
dependencies = { { "nvim-lua/plenary.nvim" } },
|
||||
config = function()
|
||||
require("rest-nvim").setup({
|
||||
--- Get the same options from Packer setup
|
||||
})
|
||||
end
|
||||
},
|
||||
{
|
||||
-- go开发
|
||||
"ray-x/go.nvim",
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
require("go").setup()
|
||||
end,
|
||||
-- event = { "CmdlineEnter" },
|
||||
ft = { "go", 'gomod' },
|
||||
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||
},
|
||||
-- "rest-nvim/rest.nvim",
|
||||
-- dependencies = { { "nvim-lua/plenary.nvim" } },
|
||||
-- config = function()
|
||||
-- require("rest-nvim").setup({
|
||||
-- --- Get the same options from Packer setup
|
||||
-- })
|
||||
-- end
|
||||
-- },
|
||||
-- {
|
||||
-- -- go开发
|
||||
-- "ray-x/go.nvim",
|
||||
-- dependencies = { -- optional packages
|
||||
-- "ray-x/guihua.lua",
|
||||
-- "neovim/nvim-lspconfig",
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- },
|
||||
-- config = function()
|
||||
-- require("go").setup()
|
||||
-- end,
|
||||
-- -- event = { "CmdlineEnter" },
|
||||
-- ft = { "go", 'gomod' },
|
||||
-- build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||
-- },
|
||||
{
|
||||
-- 终端
|
||||
'akinsho/toggleterm.nvim',
|
||||
|
@ -11,7 +11,7 @@ return {
|
||||
require 'lspconfig'.lua_ls.setup(require('lsp.lua'))
|
||||
require 'lspconfig'.clangd.setup(require('lsp.c'))
|
||||
require 'lspconfig'.bashls.setup(require('lsp.bash'))
|
||||
require 'lspconfig'.pyright.setup(require('lsp.pyright'))
|
||||
require 'lspconfig'.basedpyright.setup(require('lsp.basedpyright'))
|
||||
require 'lspconfig'.yamlls.setup(require('lsp.yaml'))
|
||||
require 'lspconfig'.gopls.setup(require('lsp.go'))
|
||||
require 'lspconfig'.jsonls.setup(require('lsp.json'))
|
||||
|
Loading…
Reference in New Issue
Block a user