dotfiles/.config/nvim/lua/config/plugins/init.lua

81 lines
1.8 KiB
Lua
Raw Normal View History

2022-12-27 18:36:38 +01:00
return {
2022-12-27 18:49:51 +01:00
"hashivim/vim-terraform",
2022-12-30 11:48:44 +01:00
"jose-elias-alvarez/typescript.nvim",
2022-12-27 18:49:51 +01:00
"tjdevries/colorbuddy.vim",
"wbthomason/packer.nvim",
"jose-elias-alvarez/nvim-lsp-ts-utils",
"jjo/vim-cue",
"ckipp01/stylua-nvim",
2022-12-27 18:36:38 +01:00
2022-12-30 11:48:44 +01:00
{
"smjonas/inc-rename.nvim",
cmd = "IncRename",
config = true,
keys = {
{ "<Leader>rn", ":IncRename " },
},
},
2022-12-27 18:49:51 +01:00
{
"SmiteshP/nvim-navic",
config = function()
vim.g.navic_silence = true
require("nvim-navic").setup({ separator = " ", highlight = true, depth_limit = 5 })
end,
},
2022-12-27 18:36:38 +01:00
2022-12-27 18:49:51 +01:00
{
"numToStr/Comment.nvim",
keys = {
{ "<C-_>", "<Plug>(comment_toggle_linewise_current)" },
{ "<C-_>", "<Plug>(comment_toggle_linewise_visual)", mode = "v" },
},
dependencies = {
"JoosepAlviste/nvim-ts-context-commentstring",
},
config = function()
require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
})
end,
},
2022-12-27 18:36:38 +01:00
2022-12-27 18:49:51 +01:00
{
"L3MON4D3/LuaSnip",
config = function()
require("luasnip/loaders/from_vscode").lazy_load()
end,
},
2022-12-27 18:36:38 +01:00
2022-12-27 18:49:51 +01:00
{
"ray-x/go.nvim",
config = function()
require("go").setup({
comment_placeholder = "",
icons = { breakpoint = "🧘", currentpos = "🏃" },
dap_debug_gui = false,
})
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,
},
2022-12-27 18:36:38 +01:00
2022-12-27 18:49:51 +01:00
{
"onsails/lspkind-nvim",
config = function()
require("lspkind").init({})
end,
},
{
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
config = function()
require("lsp_lines").setup()
vim.diagnostic.config({
virtual_text = false,
})
end,
},
2022-12-27 18:36:38 +01:00
}