dotfiles/nvim/lua/plugins.lua

118 lines
2.4 KiB
Lua
Raw Normal View History

2023-07-10 13:46:48 +02:00
return {
2023-07-10 22:33:59 +02:00
-- Telescope
2023-07-10 13:46:48 +02:00
{
"nvim-telescope/telescope.nvim",
2023-07-11 22:41:32 +02:00
dependencies = {
"nvim-lua/plenary.nvim",
},
2023-07-10 13:46:48 +02:00
},
2023-07-10 22:33:59 +02:00
-- Treesitter
2023-07-10 15:18:34 +02:00
{
"nvim-treesitter/nvim-treesitter",
2023-07-11 22:41:32 +02:00
config = function()
local configs = require("nvim-treesitter.configs");
configs.setup({
ensure_installed = {
-- nvim
"vim", "vimdoc", "lua",
-- shell
"bash", "fish", -- "nu",
-- rust
"rust", "toml",
-- python
"python",
-- webdev
"html", "css", "scss", "javascript", "jsdoc", "typescript", "tsx", "astro", "svelte", "vue",
-- markdown
"markdown", "markdown_inline",
-- nix
"nix",
-- haskell
"haskell",
-- latex
"latex", "bibtex",
-- misc
"gitignore", "diff", "dockerfile", "json", "yaml", "regex",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end,
2023-07-10 15:18:34 +02:00
build = ":TSUpdate",
init = function()
vim.treesitter.language.register("markdown", "mdx")
2023-07-11 22:41:32 +02:00
end,
2023-07-10 15:18:34 +02:00
},
2023-07-10 22:33:59 +02:00
-- LSP Configs
2023-07-10 13:46:48 +02:00
{
"neovim/nvim-lspconfig",
config = require "configs/lspconfig",
2023-07-10 22:33:59 +02:00
},
-- Snippet engine
{
"saadparwaiz1/cmp_luasnip",
2023-07-11 22:41:32 +02:00
dependencies = {
"L3MON4D3/LuaSnip",
}
2023-07-10 22:33:59 +02:00
},
-- Completion
{
"hrsh7th/nvim-cmp",
config = require "configs/cmp",
dependencies = {
2023-07-11 22:41:32 +02:00
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
2023-07-10 22:33:59 +02:00
"saadparwaiz1/cmp_luasnip",
},
2023-07-10 13:46:48 +02:00
},
2023-07-11 22:41:32 +02:00
{
"hrsh7th/cmp-nvim-lsp",
},
2023-07-10 22:33:59 +02:00
-- Rust tools
2023-07-10 14:30:11 +02:00
{
"simrat39/rust-tools.nvim",
config = require "configs/rust-tools",
},
2023-07-10 22:33:59 +02:00
-- Haskell tools
2023-07-10 13:46:48 +02:00
{
2023-07-10 15:18:34 +02:00
"mrcjkb/haskell-tools.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
},
branch = "1.x.x",
2023-07-10 13:46:48 +02:00
},
2023-07-10 22:33:59 +02:00
-- Discord presence
2023-07-10 13:46:48 +02:00
{
"andweeb/presence.nvim",
2023-07-11 22:41:32 +02:00
config = function()
local configs = require("presence").setup({
main_image = "file",
buttons = false,
show_time = false,
})
end,
2023-07-10 13:46:48 +02:00
},
2023-07-10 22:33:59 +02:00
-- Status line
2023-07-10 13:46:48 +02:00
{
"nvim-lualine/lualine.nvim",
2023-07-11 22:41:32 +02:00
config = function()
local config = require("lualine")
config.setup({})
end,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
2023-07-10 13:46:48 +02:00
},
2023-07-10 22:33:59 +02:00
-- Editor theme
2023-07-10 13:46:48 +02:00
{
"rebelot/kanagawa.nvim",
init = function()
vim.cmd("colorscheme kanagawa")
2023-07-11 22:41:32 +02:00
end,
2023-07-10 13:46:48 +02:00
}
}