all repos

init.lua @ ead3e40d491080745cdd797823b66dc313ce0850

my nvim config
3 files changed, 26 insertions(+), 21 deletions(-)
update plugins list

fix cmp
Author: neoteny ss2316544@gmail.com
Committed at: 2021-11-10 18:01:00 +0200
Parent: 27c174c
M lua/lsp/config.lua

@@ -41,6 +41,8 @@ opts = vim.tbl_deep_extend("force", opts, require "lsp.providers.sumneko_lua" or {})

end server:setup(opts) + + require("lsp.null-ls").setup() require("lspconfig")["null-ls"].setup {} vim.cmd [[ do User LspAttachBuffers ]]
M lua/plugin.lua

@@ -5,6 +5,17 @@ use "Mofiqul/vscode.nvim"

use "kyazdani42/nvim-web-devicons" use "romgrk/barbar.nvim" + use { "dstein64/vim-startuptime", cmd = "StartupTime" } + + use { + "pwntester/octo.nvim", + cmd = "Octo", + opt = true, + config = function() + require("octo").setup() + end, + } + use { "numToStr/Comment.nvim", config = function()

@@ -21,21 +32,16 @@ }

use { "neovim/nvim-lspconfig", - requires = "williamboman/nvim-lsp-installer", + requires = { + "williamboman/nvim-lsp-installer", + { "jose-elias-alvarez/null-ls.nvim", after = "nvim-lspconfig" }, + }, config = function() require("lsp.config").setup() end, } use { - "jose-elias-alvarez/null-ls.nvim", - after = "nvim-lspconfig", - config = function() - require("lsp.null-ls").setup() - end, - } - - use { "ahmedkhalf/project.nvim", config = function() require("plugin.project").setup()

@@ -44,9 +50,10 @@ }

use { "mfussenegger/nvim-dap", + module = "dap", requires = { - "Pocco81/DAPInstall.nvim", - "theHamsta/nvim-dap-virtual-text", + { "Pocco81/DAPInstall.nvim", requires = "nvim-dap" }, + { "theHamsta/nvim-dap-virtual-text", after = "nvim-dap", config = [[ require"nvim-dap-virtual-text".setup() ]] }, "nvim-telescope/telescope-dap.nvim", }, config = function()

@@ -57,6 +64,7 @@

use { "ray-x/go.nvim", ft = "go", + opt = true, config = function() require("go").setup { gofmt = "gofumpt" } end,

@@ -87,13 +95,6 @@ end,

} use { - "folke/todo-comments.nvim", - config = function() - require("todo-comments").setup {} - end, - } - - use { "hrsh7th/nvim-cmp", requires = { { "hrsh7th/cmp-nvim-lua", after = "nvim-cmp" },

@@ -101,7 +102,10 @@ { "hrsh7th/cmp-nvim-lsp", after = "nvim-cmp" },

{ "hrsh7th/cmp-buffer", after = "nvim-cmp" }, { "saadparwaiz1/cmp_luasnip", - requires = { { "L3MON4D3/LuaSnip", after = "cmp_luasnip" }, { "rafamadriz/friendly-snippets", after = "LuaSnip" } }, + requires = { + { "L3MON4D3/LuaSnip", after = "cmp_luasnip" }, + { "rafamadriz/friendly-snippets", after = "LuaSnip" }, + }, }, }, config = function()

@@ -119,6 +123,7 @@

use { "nvim-telescope/telescope.nvim", cmd = "Telescope", + module = "telescope", config = function() require("plugin.telescope").setup() end,
M lua/plugin/dap.lua

@@ -1,8 +1,6 @@

local M = {} function M.setup() - require("nvim-dap-virtual-text").setup() - vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "LspDiagnosticsSignError",