fix: add new snippets plugin
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
require("toggleterm").setup{
|
||||
require("toggleterm").setup {
|
||||
-- size can be a number or function which is passed the current terminal
|
||||
size = function(term)
|
||||
if term.direction == "horizontal" then
|
||||
return 15
|
||||
elseif term.direction == "vertical" then
|
||||
return vim.o.columns * 0.4
|
||||
end
|
||||
if term.direction == "horizontal" then
|
||||
return 15
|
||||
elseif term.direction == "vertical" then
|
||||
return vim.o.columns * 0.4
|
||||
end
|
||||
end,
|
||||
open_mapping = [[<c-\>]],
|
||||
hide_numbers = true, -- hide the number column in toggleterm buffers
|
||||
shade_filetypes = {},
|
||||
shade_terminals = true,
|
||||
shading_factor = '<number>', -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
|
||||
shading_factor = '1', -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
|
||||
start_in_insert = true,
|
||||
insert_mappings = true, -- whether or not the open mapping applies in insert mode
|
||||
persist_size = true,
|
||||
@@ -21,21 +21,21 @@ require("toggleterm").setup{
|
||||
shell = vim.o.shell, -- change the default shell
|
||||
-- This field is only relevant if direction is set to 'float'
|
||||
float_opts = {
|
||||
-- The border key is *almost* the same as 'nvim_open_win'
|
||||
-- see :h nvim_open_win for details on borders however
|
||||
-- the 'curved' border is a custom border type
|
||||
-- not natively supported but implemented in this plugin.
|
||||
-- border = 'single' | 'double' | 'shadow' | 'curved' -- ... other options supported by win open
|
||||
border = 'single',
|
||||
-- width = <value>,
|
||||
-- height = <value>,
|
||||
winblend = 3,
|
||||
highlights = {
|
||||
border = "Normal",
|
||||
background = "Normal",
|
||||
}
|
||||
-- The border key is *almost* the same as 'nvim_open_win'
|
||||
-- see :h nvim_open_win for details on borders however
|
||||
-- the 'curved' border is a custom border type
|
||||
-- not natively supported but implemented in this plugin.
|
||||
-- border = 'single' | 'double' | 'shadow' | 'curved' -- ... other options supported by win open
|
||||
border = 'single',
|
||||
-- width = <value>,
|
||||
-- height = <value>,
|
||||
winblend = 3,
|
||||
highlights = {
|
||||
border = "Normal",
|
||||
background = "Normal",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- function _G.set_terminal_keymaps()
|
||||
-- local opts = {noremap = true}
|
||||
|
||||
@@ -226,7 +226,7 @@ local mappings = {
|
||||
name = "+Test",
|
||||
a = { "<cmd>TestSuite -v -cover<cr>", "TestSuite" },
|
||||
t = { "<cmd>lua require('neotest').run.run() <cr>", "TestNearest" },
|
||||
f = { "<cmd>TestFile -v -cover<cr>", "TestFile" },
|
||||
f = { '<cmd>lua require("neotest").run.run(vim.fn.expand("%"))<cr>', "TestFile" },
|
||||
c = { "<cmd>GoCover<cr>", "go coverage" },
|
||||
C = { "<cmd>GoCoverClear<cr>", "go coverage clear" },
|
||||
b = { "<cmd>lua require'dap'.toggle_breakpoint()<cr>", "set break point" },
|
||||
|
||||
@@ -62,8 +62,6 @@ return require("packer").startup(function(use)
|
||||
|
||||
-- Autocomplete
|
||||
use { "hrsh7th/nvim-compe", opt = true }
|
||||
use { "hrsh7th/vim-vsnip", opt = true }
|
||||
use { "rafamadriz/friendly-snippets", opt = true }
|
||||
|
||||
-- Treesitter
|
||||
use { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" }
|
||||
@@ -103,6 +101,8 @@ return require("packer").startup(function(use)
|
||||
use { "glepnir/galaxyline.nvim", opt = true }
|
||||
use { "romgrk/barbar.nvim", opt = true }
|
||||
|
||||
use({ "L3MON4D3/LuaSnip", tag = "v1.0.0", opt = true })
|
||||
|
||||
-- Go plugin
|
||||
-- use {"fatih/vim-go", run= ":GoUpdateBinaries"}
|
||||
-- use {"fatih/vim-go", run = ":GoUpdateBinaries", ft = "go"}
|
||||
@@ -150,15 +150,12 @@ return require("packer").startup(function(use)
|
||||
require_plugin("lspsaga.nvim")
|
||||
require_plugin("nvim-lsp-installer")
|
||||
require_plugin('trouble.nvim')
|
||||
require_plugin("friendly-snippets")
|
||||
require_plugin("popup.nvim")
|
||||
require_plugin("plenary.nvim")
|
||||
require_plugin("telescope.nvim")
|
||||
require_plugin('telescope-project.nvim')
|
||||
require_plugin("nvim-dap")
|
||||
require_plugin("nvim-compe")
|
||||
require_plugin("vim-vsnip")
|
||||
-- require_plugin("nvim-treesitter")
|
||||
require_plugin("nvim-ts-autotag")
|
||||
require_plugin('vim-matchup')
|
||||
require_plugin("nvim-tree.lua")
|
||||
@@ -185,7 +182,9 @@ return require("packer").startup(function(use)
|
||||
use 'fratajczak/one-monokai-vim'
|
||||
use { "npxbr/glow.nvim", run = "GlowInstall" }
|
||||
|
||||
use { "akinsho/nvim-toggleterm.lua" }
|
||||
use { "akinsho/toggleterm.nvim", tag = '*', config = function()
|
||||
require("toggleterm").setup()
|
||||
end }
|
||||
use { "Pocco81/DAPInstall.nvim", opt = true }
|
||||
require_plugin("DAPInstall.nvim")
|
||||
|
||||
@@ -228,8 +227,6 @@ return require("packer").startup(function(use)
|
||||
|
||||
use { 'norcalli/nvim-colorizer.lua', opt = true }
|
||||
require_plugin('nvim-colorizer.lua')
|
||||
use { 'windwp/nvim-spectre', opt = true }
|
||||
require_plugin('nvim-spectre')
|
||||
use { 'nvim-treesitter/playground', opt = true }
|
||||
require_plugin('playground')
|
||||
-- folke/todo-comments.nvim
|
||||
|
||||
Reference in New Issue
Block a user