2021-04-18 18:51:03 +02:00
|
|
|
|
return require('packer').startup(function()
|
2021-06-17 11:29:04 +02:00
|
|
|
|
use 'hashivim/vim-terraform'
|
|
|
|
|
use 'pierreglaser/folding-nvim'
|
2021-04-18 18:51:03 +02:00
|
|
|
|
use 'tjdevries/colorbuddy.vim'
|
|
|
|
|
use 'wbthomason/packer.nvim'
|
2022-01-09 22:42:43 +01:00
|
|
|
|
use 'ray-x/lsp_signature.nvim'
|
|
|
|
|
use 'jose-elias-alvarez/nvim-lsp-ts-utils'
|
|
|
|
|
use 'rafamadriz/friendly-snippets'
|
2022-02-15 23:37:36 +01:00
|
|
|
|
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} }
|
2022-03-04 12:11:26 +01:00
|
|
|
|
use {'ray-x/guihua.lua', run = 'cd lua/fzy && make'}
|
2022-06-07 09:46:58 +02:00
|
|
|
|
use 'jjo/vim-cue'
|
2021-04-18 18:51:03 +02:00
|
|
|
|
|
2022-02-14 14:15:32 +01:00
|
|
|
|
use {
|
|
|
|
|
'theHamsta/nvim-dap-virtual-text',
|
|
|
|
|
config = function()
|
|
|
|
|
require("nvim-dap-virtual-text").setup {
|
|
|
|
|
commented = true,
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-04 12:11:26 +01:00
|
|
|
|
use({
|
|
|
|
|
"jose-elias-alvarez/null-ls.nvim",
|
|
|
|
|
requires = { "nvim-lua/plenary.nvim" },
|
|
|
|
|
config = function()
|
|
|
|
|
require("plugins/null-ls")
|
|
|
|
|
end,
|
|
|
|
|
})
|
|
|
|
|
|
2021-04-18 18:51:03 +02:00
|
|
|
|
use {
|
2022-01-09 22:42:43 +01:00
|
|
|
|
'b3nj5m1n/kommentary',
|
|
|
|
|
config = function()
|
|
|
|
|
require('kommentary.config').use_extended_mappings()
|
|
|
|
|
vim.api.nvim_set_keymap("n", "", "<Plug>kommentary_line_default", {}) -- C-/
|
|
|
|
|
vim.api.nvim_set_keymap("v", "", "<Plug>kommentary_visual_default", {}) -- C-/
|
2021-08-01 15:22:41 +02:00
|
|
|
|
|
2022-01-09 22:42:43 +01:00
|
|
|
|
require('kommentary.config').configure_language("default", {
|
|
|
|
|
prefer_single_line_comments = true,
|
|
|
|
|
})
|
|
|
|
|
end
|
2021-04-18 18:51:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
use {
|
2022-01-09 22:42:43 +01:00
|
|
|
|
'L3MON4D3/LuaSnip',
|
|
|
|
|
config = function()
|
|
|
|
|
require("luasnip/loaders/from_vscode").lazy_load()
|
|
|
|
|
end
|
|
|
|
|
}
|
2021-04-18 18:51:03 +02:00
|
|
|
|
|
2022-04-16 14:46:37 +02:00
|
|
|
|
|
|
|
|
|
-- cmp
|
2022-01-09 22:42:43 +01:00
|
|
|
|
use {
|
|
|
|
|
'hrsh7th/nvim-cmp',
|
|
|
|
|
requires = {
|
|
|
|
|
'andersevenrud/cmp-tmux',
|
|
|
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
|
|
|
'hrsh7th/cmp-buffer',
|
|
|
|
|
'hrsh7th/cmp-path',
|
|
|
|
|
'hrsh7th/cmp-cmdline',
|
|
|
|
|
'L3MON4D3/LuaSnip',
|
|
|
|
|
'saadparwaiz1/cmp_luasnip',
|
|
|
|
|
},
|
2022-04-16 14:46:37 +02:00
|
|
|
|
config = function() require("plugins/nvim-cmp") end,
|
2022-01-09 22:42:43 +01:00
|
|
|
|
}
|
2021-04-18 18:51:03 +02:00
|
|
|
|
|
2021-04-19 20:42:04 +02:00
|
|
|
|
use {
|
2022-01-09 22:42:43 +01:00
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/plenary.nvim'
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require('gitsigns').setup {
|
|
|
|
|
numhl = true,
|
|
|
|
|
signs = {
|
|
|
|
|
add = {hl = 'GitSignsAdd' , text = '▌', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
|
|
|
|
|
change = {hl = 'GitSignsChange', text = '▌', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
|
|
|
|
delete = {hl = 'GitSignsDelete', text = '▖', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
|
|
|
|
topdelete = {hl = 'GitSignsDelete', text = '▘', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
|
|
|
|
changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
end
|
2021-04-19 20:42:04 +02:00
|
|
|
|
}
|
2021-04-18 18:51:03 +02:00
|
|
|
|
|
|
|
|
|
use {
|
|
|
|
|
"lukas-reineke/indent-blankline.nvim",
|
2021-07-22 10:32:46 +02:00
|
|
|
|
branch = "master",
|
2021-04-18 18:51:03 +02:00
|
|
|
|
config = function()
|
|
|
|
|
-- vim.wo.colorcolumn = "100"
|
|
|
|
|
vim.g.indent_blankline_char = "│"
|
|
|
|
|
vim.g.indent_blankline_space_char = "⬝"
|
|
|
|
|
vim.g.indent_blankline_space_char_highlight_list = { 'IndentSpace' }
|
|
|
|
|
-- vim.g.indent_blankline_char_list = {'|', '¦', '┆', '┊'}
|
|
|
|
|
vim.g.indent_blankline_buftype_exclude = {"help", "terminal"}
|
|
|
|
|
vim.g.indent_blankline_filetype_exclude = {"text", "markdown"}
|
|
|
|
|
-- vim.g.indent_blankline_show_end_of_line = true
|
|
|
|
|
vim.g.indent_blankline_show_first_indent_level = true
|
|
|
|
|
vim.g.indent_blankline_show_trailing_blankline_indent = true
|
2021-04-20 18:10:56 +02:00
|
|
|
|
vim.g.indent_blankline_char_highlight_list = { 'Indent1', 'Indent2', 'Indent3', 'Indent4', 'Indent5', 'Indent6'}
|
2021-04-18 18:51:03 +02:00
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
use {
|
|
|
|
|
'neovim/nvim-lspconfig',
|
|
|
|
|
config = function()
|
|
|
|
|
require('dln.lsp-config')
|
|
|
|
|
local map = require('dln.utils').map
|
|
|
|
|
map('n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>')
|
|
|
|
|
map('i', '<C-k>', '<Cmd>lua vim.lsp.buf.signature_help()<CR>')
|
|
|
|
|
map('n', '1gd', '<Cmd>lua vim.lsp.buf.type_definition()<CR>')
|
|
|
|
|
map('n', 'gf', '<Cmd>lua vim.lsp.buf.formatting()<CR>')
|
2021-04-19 20:22:00 +02:00
|
|
|
|
map('n', 'rn', '<Cmd>lua vim.lsp.buf.rename()<CR>')
|
|
|
|
|
map('n', '[d', '<Cmd>lua vim.lsp.diagnostic.goto_prev()<CR>')
|
|
|
|
|
map('n', ']d', '<Cmd>lua vim.lsp.diagnostic.goto_next()<CR>')
|
2021-04-20 18:10:56 +02:00
|
|
|
|
map('n', 'gwa', '<Cmd>lua vim.lsp.buf.add_workspace_folder()<CR>')
|
|
|
|
|
map('n', 'gwr', '<Cmd>lua vim.lsp.buf.add_workspace_folder()<CR>')
|
|
|
|
|
map('n', 'gwl', '<Cmd>lua vim.lsp.buf.add_workspace_folder()<CR>')
|
2021-04-18 18:51:03 +02:00
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
use {
|
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/popup.nvim',
|
|
|
|
|
'nvim-lua/plenary.nvim',
|
|
|
|
|
'nvim-telescope/telescope-fzy-native.nvim',
|
2022-02-15 17:50:54 +01:00
|
|
|
|
'nvim-telescope/telescope-github.nvim',
|
|
|
|
|
'nvim-telescope/telescope-dap.nvim'
|
2021-04-18 18:51:03 +02:00
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require('dln.telescope')
|
|
|
|
|
local map = require('dln.utils').map
|
|
|
|
|
map('n', '<leader>b', '<cmd>lua require("telescope.builtin").buffers()<CR>')
|
|
|
|
|
map('n', '<leader>f', '<cmd>lua require("telescope.builtin").oldfiles()<CR>')
|
2021-04-19 20:22:00 +02:00
|
|
|
|
map('n', '<space>', '<cmd>lua require("telescope.builtin").oldfiles()<CR>')
|
2021-04-18 18:51:03 +02:00
|
|
|
|
map('n', '<leader>e', '<cmd>lua require("telescope.builtin").git_files()<CR>')
|
2021-04-19 20:22:00 +02:00
|
|
|
|
map('n', '<leader>g', '<cmd>lua require("telescope.builtin").git_status()<CR>')
|
2021-07-22 10:32:46 +02:00
|
|
|
|
map('n', '<leader>a', '<cmd>lua require("telescope.builtin").lsp_code_actions()<CR>')
|
2022-02-15 23:37:36 +01:00
|
|
|
|
map('n', '<leader>m', '<cmd>lua require("telescope.builtin").marks()<CR>')
|
2021-04-18 18:51:03 +02:00
|
|
|
|
map('n', '<leader>s', '<cmd>lua require("telescope.builtin").lsp_document_symbols()<CR>')
|
|
|
|
|
map('n', '<leader>t', '<cmd>lua require("telescope.builtin").treesitter()<CR>')
|
2021-04-19 19:18:59 +02:00
|
|
|
|
map('n', '<leader>/', '<cmd>lua require("telescope.builtin").live_grep()<CR>')
|
|
|
|
|
map('n', '<leader>.', '<cmd>lua require("telescope.builtin").file_browser()<CR>')
|
2021-07-22 10:32:46 +02:00
|
|
|
|
map('n', '<leader>p', '<cmd>lua require("telescope.builtin").registers()<CR>')
|
2021-04-19 19:18:59 +02:00
|
|
|
|
map('n', 'gr', '<cmd>lua require("telescope.builtin").lsp_references()<CR>')
|
|
|
|
|
map('n', 'gd', '<cmd>lua require("telescope.builtin").lsp_definitions()<CR>')
|
|
|
|
|
map('n', 'g/', '<cmd>lua require("telescope.builtin").lsp_document_symbols()<CR>')
|
|
|
|
|
map('n', 'g?', '<cmd>lua require("telescope.builtin").lsp_workspace_symbols()<CR>')
|
|
|
|
|
map('n', 'ge', '<cmd>lua require("telescope.builtin").lsp_document_diagnostics()<CR>')
|
2022-02-15 17:50:54 +01:00
|
|
|
|
map('n', 'Db', '<cmd>lua require("telescope").extensions.dap.list_breakpoints()<CR>')
|
2022-03-04 12:11:26 +01:00
|
|
|
|
map('n', 'Dcc', '<cmd>lua require("telescope").extensions.dap.commands()<CR>')
|
2022-02-15 17:50:54 +01:00
|
|
|
|
map('n', 'Df', '<cmd>lua require("telescope").extensions.dap.frames()<CR>')
|
|
|
|
|
map('n', 'Dv', '<cmd>lua require("telescope").extensions.dap.variables()<CR>')
|
2021-04-18 18:51:03 +02:00
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 09:57:02 +02:00
|
|
|
|
-- treesitter
|
2021-04-18 18:51:03 +02:00
|
|
|
|
use {
|
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
|
requires = {
|
2021-04-19 20:22:00 +02:00
|
|
|
|
"nvim-treesitter/playground",
|
2021-04-18 18:51:03 +02:00
|
|
|
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
|
|
|
|
"windwp/nvim-ts-autotag"
|
|
|
|
|
},
|
2022-04-19 09:57:02 +02:00
|
|
|
|
run = ":TSUpdate",
|
|
|
|
|
config = function() require("plugins/treesitter") end,
|
2021-04-18 18:51:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-09 22:42:43 +01:00
|
|
|
|
use {
|
|
|
|
|
"ray-x/go.nvim",
|
|
|
|
|
config = function()
|
|
|
|
|
require('go').setup({
|
2022-02-15 17:50:54 +01:00
|
|
|
|
comment_placeholder = '',
|
|
|
|
|
icons = {breakpoint = '🧘', currentpos = '🏃'},
|
2022-03-04 12:11:26 +01:00
|
|
|
|
dap_debug_gui = false
|
2022-01-09 22:42:43 +01:00
|
|
|
|
})
|
|
|
|
|
vim.cmd("autocmd FileType go nmap <Leader>c :lua require('go.comment').gen()<cr>")
|
|
|
|
|
vim.cmd("autocmd BufWritePre *.go :silent! lua require('go.format').gofmt()")
|
|
|
|
|
vim.cmd('autocmd BufWritePre (InsertLeave?) <buffer> lua vim.lsp.buf.formatting_sync(nil,500)')
|
|
|
|
|
end
|
|
|
|
|
}
|
2021-07-22 10:32:46 +02:00
|
|
|
|
|
2022-07-08 11:03:49 +02:00
|
|
|
|
use({
|
|
|
|
|
"nvim-treesitter/nvim-treesitter-context",
|
|
|
|
|
requires = {
|
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require("plugins/treesitter-context")
|
|
|
|
|
end,
|
|
|
|
|
})
|
|
|
|
|
|
2021-04-19 20:25:48 +02:00
|
|
|
|
use {
|
2022-01-09 22:42:43 +01:00
|
|
|
|
"onsails/lspkind-nvim",
|
|
|
|
|
config = function()
|
|
|
|
|
require('lspkind').init({
|
|
|
|
|
})
|
|
|
|
|
end
|
2021-04-19 20:25:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
2022-02-15 23:37:36 +01:00
|
|
|
|
-- marks
|
|
|
|
|
use {
|
2022-06-07 09:46:58 +02:00
|
|
|
|
"chentoast/marks.nvim",
|
2022-02-15 23:37:36 +01:00
|
|
|
|
config = function() require("plugins/marks") end,
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-04 12:11:26 +01:00
|
|
|
|
-- dap
|
|
|
|
|
use {
|
|
|
|
|
'mfussenegger/nvim-dap',
|
|
|
|
|
config = function() require("plugins/dap") end,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-- go
|
|
|
|
|
use {
|
|
|
|
|
"leoluz/nvim-dap-go",
|
|
|
|
|
config = function() require("plugins/nvim-dap-go") end,
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-16 12:21:41 +01:00
|
|
|
|
-- zenbones
|
|
|
|
|
use {
|
|
|
|
|
"mcchrish/zenbones.nvim",
|
|
|
|
|
requires = {
|
|
|
|
|
"rktjmp/lush.nvim",
|
|
|
|
|
},
|
|
|
|
|
config = function() require("plugins/zenbones") end,
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 09:27:30 +02:00
|
|
|
|
-- copilot
|
2022-07-08 11:03:49 +02:00
|
|
|
|
-- use({
|
|
|
|
|
-- "github/copilot.vim",
|
|
|
|
|
-- config = function()
|
|
|
|
|
-- require("plugins/copilot")
|
|
|
|
|
-- end,
|
|
|
|
|
-- })
|
2022-04-19 09:27:30 +02:00
|
|
|
|
|
2022-02-16 12:21:41 +01:00
|
|
|
|
end)
|