194 lines
5.7 KiB
Lua
194 lines
5.7 KiB
Lua
-- NOTE: Here is where you install your plugins.
|
|
-- You can configure plugins using the `config` key.
|
|
--
|
|
-- You can also configure plugins after the setup call,
|
|
-- as they will be available in your neovim runtime.
|
|
require('lazy').setup({
|
|
-- NOTE: First, some plugins that don't require any configuration
|
|
|
|
-- Git related plugins
|
|
'tpope/vim-fugitive',
|
|
'tpope/vim-rhubarb',
|
|
|
|
-- Detect tabstop and shiftwidth automatically
|
|
'tpope/vim-sleuth',
|
|
|
|
-- NOTE: This is where your plugins related to LSP can be installed.
|
|
-- The configuration is done below. Search for lspconfig to find it below.
|
|
{
|
|
-- LSP Configuration & Plugins
|
|
'neovim/nvim-lspconfig',
|
|
dependencies = {
|
|
-- Automatically install LSPs to stdpath for neovim
|
|
{ 'williamboman/mason.nvim', config = true },
|
|
'williamboman/mason-lspconfig.nvim',
|
|
|
|
-- Useful status updates for LSP
|
|
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
|
{ 'j-hui/fidget.nvim', opts = {} },
|
|
|
|
-- Additional lua configuration, makes nvim stuff amazing!
|
|
'folke/neodev.nvim',
|
|
},
|
|
},
|
|
|
|
{
|
|
-- Autocompletion
|
|
'hrsh7th/nvim-cmp',
|
|
dependencies = {
|
|
-- Snippet Engine & its associated nvim-cmp source
|
|
'L3MON4D3/LuaSnip',
|
|
'saadparwaiz1/cmp_luasnip',
|
|
|
|
-- Adds LSP completion capabilities
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'hrsh7th/cmp-path',
|
|
|
|
-- Adds a number of user-friendly snippets
|
|
'rafamadriz/friendly-snippets',
|
|
},
|
|
},
|
|
|
|
-- Useful plugin to show you pending keybinds.
|
|
{ 'folke/which-key.nvim', opts = {} },
|
|
{
|
|
-- Adds git releated signs to the gutter, as well as utilities for managing changes
|
|
'lewis6991/gitsigns.nvim',
|
|
opts = {
|
|
-- See `:help gitsigns.txt`
|
|
signs = {
|
|
add = { text = '+' },
|
|
change = { text = '~' },
|
|
delete = { text = '_' },
|
|
topdelete = { text = '‾' },
|
|
changedelete = { text = '~' },
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
-- Theme inspired by Atom
|
|
'navarasu/onedark.nvim',
|
|
priority = 1000,
|
|
config = function()
|
|
vim.cmd.colorscheme 'onedark'
|
|
end,
|
|
},
|
|
|
|
{
|
|
-- Set lualine as statusline
|
|
'nvim-lualine/lualine.nvim',
|
|
-- See `:help lualine.txt`
|
|
opts = {
|
|
options = {
|
|
icons_enabled = false,
|
|
theme = 'onedark',
|
|
component_separators = '|',
|
|
section_separators = '',
|
|
},
|
|
},
|
|
},
|
|
|
|
{ "lukas-reineke/indent-blankline.nvim", main = "ibl", opts = {} },
|
|
-- "gc" to comment visual regions/lines
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
|
|
-- Fuzzy Finder (files, lsp, etc)
|
|
{ 'nvim-telescope/telescope.nvim',
|
|
version = '*',
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
"nvim-telescope/telescope-live-grep-args.nvim",
|
|
},
|
|
|
|
config = function ()
|
|
require("telescope").load_extension("live_grep_args")
|
|
end
|
|
},
|
|
|
|
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
|
|
-- Only load if `make` is available. Make sure you have the system
|
|
-- requirements installed.
|
|
{
|
|
'nvim-telescope/telescope-fzf-native.nvim',
|
|
-- NOTE: If you are having trouble with this installation,
|
|
-- refer to the README for telescope-fzf-native for more instructions.
|
|
build = 'make',
|
|
cond = function()
|
|
return vim.fn.executable 'make' == 1
|
|
end,
|
|
},
|
|
|
|
{
|
|
-- Highlight, edit, and navigate code
|
|
'nvim-treesitter/nvim-treesitter',
|
|
dependencies = {
|
|
'nvim-treesitter/nvim-treesitter-textobjects',
|
|
},
|
|
build = ":TSUpdate",
|
|
},
|
|
|
|
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
|
|
-- These are some example plugins that I've included in the kickstart repository.
|
|
-- Uncomment any of the lines below to enable them.
|
|
-- require 'kickstart.plugins.autoformat',
|
|
-- require 'kickstart.plugins.debug',
|
|
|
|
-- NOTE: The import below automatically adds your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
|
-- You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping
|
|
-- up-to-date with whatever is in the kickstart repo.
|
|
--
|
|
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
|
|
--
|
|
-- An additional note is that if you only copied in the `init.lua`, you can just comment this line
|
|
-- to get rid of the warning telling you that there are not plugins in `lua/custom/plugins/`.
|
|
{ 'towolf/vim-helm' },
|
|
{ 'nvim-tree/nvim-tree.lua' },
|
|
{ 'nvim-tree/nvim-web-devicons' },
|
|
|
|
{ 'neovim/nvim-lspconfig' },
|
|
{ 'MunifTanjim/prettier.nvim' },
|
|
{ 'f-person/git-blame.nvim' },
|
|
{
|
|
'ldelossa/gh.nvim',
|
|
dependencies = {
|
|
'ldelossa/litee.nvim' }
|
|
},
|
|
{ 'tpope/vim-abolish' },
|
|
{
|
|
"kdheepak/lazygit.nvim",
|
|
-- optional for floating window border decoration
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
},
|
|
{ "almo7aya/openingh.nvim" },
|
|
{
|
|
"epwalsh/obsidian.nvim",
|
|
version = "*", -- recommended, use latest release instead of latest commit
|
|
ft = "markdown",
|
|
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
|
-- event = {
|
|
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
|
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md"
|
|
-- "BufReadPre path/to/my-vault/**.md",
|
|
-- "BufNewFile path/to/my-vault/**.md",
|
|
-- },
|
|
dependencies = {
|
|
-- Required.
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
-- see below for full list of optional dependencies 👇
|
|
},
|
|
opts = {
|
|
workspaces = {
|
|
{
|
|
name = "personal",
|
|
path = "~/Documents/Projects/notes",
|
|
},
|
|
},
|
|
}
|
|
},
|
|
{ "vim-test/vim-test" }
|
|
}, {})
|