init.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. require("kolter.set")
  2. require("kolter.remap")
  3. local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
  4. if not vim.loop.fs_stat(lazypath) then
  5. vim.fn.system({
  6. "git",
  7. "clone",
  8. "--filter=blob:none",
  9. "https://github.com/folke/lazy.nvim.git",
  10. "--branch=stable", -- latest stable release
  11. lazypath,
  12. })
  13. end
  14. vim.opt.rtp:prepend(lazypath)
  15. require("lazy").setup({
  16. { 'rose-pine/neovim' },
  17. { 'folke/tokyonight.nvim', lazy = false, priority = 1000 },
  18. { 'nvim-lua/plenary.nvim' },
  19. { 'mbbill/undotree' },
  20. { 'nvim-telescope/telescope.nvim', branch = '0.1.x' },
  21. { 'nvim-tree/nvim-tree.lua' },
  22. { 'nvim-tree/nvim-web-devicons' },
  23. { 'nvim-lualine/lualine.nvim' },
  24. { 'folke/trouble.nvim' },
  25. { 'folke/which-key.nvim', event = 'VeryLazy', init = function()
  26. vim.o.timeout = true
  27. vim.o.timeoutlen = 300
  28. end
  29. },
  30. { 'VonHeikemen/lsp-zero.nvim', branch = 'v3.x',
  31. dependencies = {
  32. -- LSP Support
  33. { 'neovim/nvim-lspconfig' },
  34. {
  35. 'williamboman/mason.nvim',
  36. build = function()
  37. pcall(vim.cmd, 'MasonUpdate')
  38. end,
  39. },
  40. { 'williamboman/mason-lspconfig.nvim' },
  41. -- Autocompletion
  42. { 'hrsh7th/nvim-cmp' },
  43. { 'hrsh7th/cmp-nvim-lsp' },
  44. { 'L3MON4D3/LuaSnip' },
  45. }
  46. },
  47. { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' }
  48. })