New cleaner nvim config. Added config for LF
This commit is contained in:
136
nvim/lua/plugins.lua
Normal file
136
nvim/lua/plugins.lua
Normal file
@@ -0,0 +1,136 @@
|
||||
# vim:fileencoding=utf-8:foldmethod=marker
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
require('packer').startup(function(use)
|
||||
|
||||
-- {{{ Packer manages itself
|
||||
use 'wbthomason/packer.nvim' -- Packer manages itself
|
||||
-- }}}
|
||||
|
||||
-- {{{ VIM AutoSave
|
||||
use({
|
||||
'okuuva/auto-save.nvim',
|
||||
tag = 'v1*',
|
||||
config = function()
|
||||
require('auto-save').setup({
|
||||
-- your config goes here
|
||||
-- or just leave it empty :)
|
||||
})
|
||||
end,
|
||||
})
|
||||
-- }}}
|
||||
|
||||
-- {{{ Headlines for Markdown and TeX
|
||||
use {
|
||||
'lukas-reineke/headlines.nvim',
|
||||
after = 'nvim-treesitter',
|
||||
config = function()
|
||||
require('headlines').setup()
|
||||
end,
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Nvim-Tree
|
||||
use {
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
config = function()
|
||||
require('plugins.nvim-tree').setup()
|
||||
end,
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Themes
|
||||
use 'gruvbox-community/gruvbox' -- Gruvbox theme
|
||||
use 'folke/tokyonight.nvim' -- Tokyo Night theme
|
||||
-- }}}
|
||||
|
||||
-- {{{ Treesitter
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate' -- Keep parsers up to date
|
||||
}
|
||||
require('plugins.treesitter')
|
||||
-- }}}
|
||||
|
||||
-- {{{ Rainbow Delimiters
|
||||
use 'HiPhish/rainbow-delimiters.nvim'
|
||||
require('plugins.rainbow_delimiters')
|
||||
-- }}}
|
||||
|
||||
-- {{{ Git Integration
|
||||
use 'lewis6991/gitsigns.nvim' -- Git decorations in the gutter
|
||||
use 'tpope/vim-fugitive' -- Git commands in Neovim
|
||||
-- }}}
|
||||
|
||||
-- {{{ Status Line
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true } -- Optional icons
|
||||
}
|
||||
require('plugins.lualine')
|
||||
-- }}}
|
||||
|
||||
-- {{{ HardTime
|
||||
use {
|
||||
'm4xshen/hardtime.nvim',
|
||||
requires = { 'MunifTanjim/nui.nvim' }
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ FZF
|
||||
use {
|
||||
'junegunn/fzf',
|
||||
run = function() vim.fn['fzf#install']() end
|
||||
}
|
||||
use 'junegunn/fzf.vim'
|
||||
-- }}}
|
||||
|
||||
-- {{{ Todo Comments
|
||||
use {
|
||||
"folke/todo-comments.nvim",
|
||||
requires = "nvim-lua/plenary.nvim",
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Cool Startup Dashboard
|
||||
use {
|
||||
'glepnir/dashboard-nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons' }
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Productivity
|
||||
use 'numToStr/Comment.nvim'
|
||||
use 'windwp/nvim-autopairs'
|
||||
use 'tpope/vim-surround'
|
||||
-- }}}
|
||||
|
||||
-- {{{ LaTeX
|
||||
use 'lervag/vimtex'
|
||||
require('plugins.vimtex')
|
||||
-- }}}
|
||||
|
||||
-- {{{ Telescope
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = { {'nvim-lua/plenary.nvim'} },
|
||||
config = function()
|
||||
-- Leader key mappings for Telescope
|
||||
vim.api.nvim_set_keymap('n', '<leader>ff', ':Telescope find_files<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fg', ':Telescope live_grep<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fb', ':Telescope buffers<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fh', ':Telescope help_tags<CR>', { noremap = true, silent = true })
|
||||
end
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Outline
|
||||
use {
|
||||
'hedyhli/outline.nvim',
|
||||
config = function()
|
||||
require('plugins.outline').setup()
|
||||
end
|
||||
}
|
||||
-- }}}
|
||||
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user