115 lines
2.7 KiB
Lua
115 lines
2.7 KiB
Lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
vim.fn.system({
|
|
"git",
|
|
"clone",
|
|
"--filter=blob:none",
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
"--branch=stable", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
--require("lazy").setup(plugins, opts)
|
|
|
|
|
|
require("lazy").setup({
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
lazy = false,
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
config = function()
|
|
local builtin = require('telescope.builtin')
|
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
|
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
|
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
|
vim.keymap.set('n', '<leader>\\', builtin.buffers, {})
|
|
end,
|
|
},
|
|
|
|
|
|
{ "folke/tokyonight.nvim", lazy = false, priority = 1000, opts = {} },
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
lazy = false,
|
|
config = function()
|
|
vim.cmd('TSUpdate')
|
|
end,
|
|
},
|
|
|
|
|
|
{
|
|
"folke/trouble.nvim",
|
|
lazy = false,
|
|
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
|
cmd = "Trouble",
|
|
keys = {
|
|
{
|
|
"<leader>xx",
|
|
"<cmd>Trouble diagnostics toggle<cr>",
|
|
desc = "Diagnostics (Trouble)",
|
|
},
|
|
{
|
|
"<leader>xX",
|
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
|
desc = "Buffer Diagnostics (Trouble)",
|
|
},
|
|
{
|
|
"<leader>cs",
|
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
|
desc = "Symbols (Trouble)",
|
|
},
|
|
{
|
|
"<leader>cl",
|
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
|
desc = "LSP Definitions / references / ... (Trouble)",
|
|
},
|
|
{
|
|
"<leader>xL",
|
|
"<cmd>Trouble loclist toggle<cr>",
|
|
desc = "Location List (Trouble)",
|
|
},
|
|
{
|
|
"<leader>xQ",
|
|
"<cmd>Trouble qflist toggle<cr>",
|
|
desc = "Quickfix List (Trouble)",
|
|
},
|
|
},
|
|
},
|
|
|
|
{ "mbbill/undotree", lazy = false },
|
|
|
|
{ "tpope/vim-fugitive", lazy = false },
|
|
|
|
{ "ntpeters/vim-better-whitespace", lazy = false },
|
|
|
|
{
|
|
'nvim-lualine/lualine.nvim',
|
|
lazy = false,
|
|
dependencies = {
|
|
'nvim-tree/nvim-web-devicons'
|
|
},
|
|
},
|
|
|
|
{ "lewis6991/gitsigns.nvim" },
|
|
{ "nvim-tree/nvim-web-devicons" },
|
|
|
|
-- LSP stuff
|
|
|
|
--- Uncomment the two plugins below if you want to manage the language servers from neovim
|
|
{'williamboman/mason.nvim'},
|
|
{'williamboman/mason-lspconfig.nvim'},
|
|
|
|
{'VonHeikemen/lsp-zero.nvim', branch = 'v3.x'},
|
|
{'neovim/nvim-lspconfig'},
|
|
{'hrsh7th/cmp-nvim-lsp'},
|
|
{'hrsh7th/nvim-cmp'},
|
|
{'L3MON4D3/LuaSnip'},
|
|
|
|
|
|
|
|
})
|
|
|
|
|