dotfiles/.config/nvim/lua/plugins/misc.lua

144 lines
2.9 KiB
Lua
Raw Normal View History

2024-07-29 05:04:34 -05:00
return {
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"gopls",
"rust-analyzer",
"pyright",
"mypy",
"ruff",
"black",
"debugpy",
"powershell-editor-services",
"bash-language-server",
"eslint-lsp",
"js-debug-adapter",
"prettier",
"typescript-language-server",
"stylua",
"shellcheck",
"shfmt",
"flake8",
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
"go",
"terraform",
"c_sharp",
"bash",
},
},
},
{
"christoomey/vim-tmux-navigator",
lazy = false,
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin-mocha",
},
},
{
"catppuccin/nvim",
lazy = false,
name = "catppuccin",
opts = {},
},
{
"folke/trouble.nvim",
opts = { use_diagnostic_signs = true },
},
{
"nvim-telescope/telescope.nvim",
keys = {
{
"<leader>fp",
function()
require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root })
end,
desc = "Find Plugin File",
},
},
-- change some options
opts = {
defaults = {
layout_strategy = "horizontal",
layout_config = { prompt_position = "top" },
sorting_strategy = "ascending",
winblend = 0,
},
},
},
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
servers = {
pyright = {
filetypes = { "python" },
},
gopls = {
cmd = { "gopls" },
filetypes = { "go", "gomod", "gowork", "gotmpl" },
--root_dir = util.root_pattern("go.work", "go.mod", ".git"),
settings = {
gopls = {
completeUnimported = true,
usePlaceholders = true,
analyses = {
unusedparams = true,
},
},
},
},
tsserver = {},
powershell_es = {
bundle_path = vim.fn.stdpath("data") .. "/mason/packages/powershell-editor-services",
},
},
},
},
{
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup()
end,
},
{
"TheLeoP/powershell.nvim",
opts = {
bundle_path = vim.fn.stdpath("data") .. "/man/packages/powershell-editor-services",
},
},
{
"olexsmir/gopher.nvim",
ft = "go",
config = function(_, opts)
require("gopher").setup(opts)
end,
build = function()
vim.cmd([[silent! GoInstallDeps]])
end,
},
}