Neovim configs for 2023. Hopefully they last.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. vim.cmd [[packadd packer.nvim]]
  2. return require('packer').startup(function(use)
  3. -- Packer can manage itself
  4. use 'wbthomason/packer.nvim'
  5. use 'tpope/vim-sensible'
  6. use {
  7. 'nvim-telescope/telescope.nvim', tag = '0.1.1',
  8. requires = { { 'nvim-lua/plenary.nvim' } }
  9. }
  10. use 'Townk/vim-autoclose'
  11. use {
  12. 'joshdick/onedark.vim', config = function()
  13. vim.cmd("colorscheme onedark")
  14. end
  15. }
  16. use(
  17. 'nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }
  18. )
  19. use 'nvim-tree/nvim-web-devicons'
  20. use { 'romgrk/barbar.nvim', wants = 'nvim-web-devicons' }
  21. use {
  22. 'nvim-lualine/lualine.nvim',
  23. requires = { { 'kyazdani42/nvim-web-devicons', opt = true },
  24. 'nvim-lua/lsp-status.nvim'
  25. }
  26. }
  27. use 'vim-airline/vim-airline-themes'
  28. use 'tpope/vim-fugitive'
  29. use {
  30. 'VonHeikemen/lsp-zero.nvim',
  31. branch = 'v1.x',
  32. requires = {
  33. -- LSP Support
  34. { 'neovim/nvim-lspconfig' }, -- Required
  35. { 'williamboman/mason.nvim' }, -- Optional
  36. { 'williamboman/mason-lspconfig.nvim' }, -- Optional
  37. -- Autocompletion
  38. { 'hrsh7th/nvim-cmp' }, -- Required
  39. { 'hrsh7th/cmp-nvim-lsp' }, -- Required
  40. { 'hrsh7th/cmp-buffer' }, -- Optional
  41. { 'hrsh7th/cmp-path' }, -- Optional
  42. { 'saadparwaiz1/cmp_luasnip' }, -- Optional
  43. { 'hrsh7th/cmp-nvim-lua' }, -- Optional
  44. -- Snippets
  45. { 'L3MON4D3/LuaSnip' }, -- Required
  46. { 'rafamadriz/friendly-snippets' }, -- Optional
  47. }
  48. }
  49. use 'mattn/emmet-vim'
  50. use 'lervag/vimtex'
  51. use {
  52. 'nvim-tree/nvim-tree.lua',
  53. requires = {
  54. 'nvim-tree/nvim-web-devicons', -- optional, for file icons
  55. },
  56. tag = 'nightly' -- optional, updated every week. (see issue #1193)
  57. }
  58. use 'ethanholz/nvim-lastplace'
  59. end)