Advertisement
icon_bishop

init.lua

Dec 9th, 2024
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.99 KB | None | 0 0
  1. require 'core.options'
  2. require 'core.keymaps'
  3.  
  4. local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
  5. if not (vim.uv or vim.loop).fs_stat(lazypath) then
  6.   local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
  7.   local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
  8.   if vim.v.shell_error ~= 0 then
  9.     error('Error cloning lazy.nvim:\n' .. out)
  10.   end
  11. end
  12. vim.opt.rtp:prepend(lazypath)
  13.  
  14. -- Load plugins
  15. require('lazy').setup({
  16.   {
  17.     "nvim-neo-tree/neo-tree.nvim",
  18.     branch = "v3.x",
  19.     dependencies = {
  20.       "nvim-lua/plenary.nvim",
  21.       "nvim-tree/nvim-web-devicons",
  22.       "MunifTanjim/nui.nvim",
  23.       -- Optional image support in preview window:
  24.       -- "3rd/image.nvim", -- Uncomment if needed
  25.     }
  26.   },
  27.  
  28.   -- install without yarn or npm
  29. {
  30.     "iamcco/markdown-preview.nvim",
  31.     cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
  32.     ft = { "markdown" },
  33.     build = function() vim.fn["mkdp#util#install"]() end,
  34. },
  35.  
  36.    {
  37.     "navarasu/onedark.nvim",
  38.     lazy = false,
  39.     priority = 1000,
  40.     config = function()
  41.       require('onedark').setup {
  42.         style = "deep",
  43.         transparent = false,
  44.         colors = { bg = "#0e0e0e" },
  45.       }
  46.       require('onedark').load()
  47.     end
  48.   },
  49.  
  50.   {
  51.     'MeanderingProgrammer/render-markdown.nvim',
  52.     main = "render-markdown",
  53.     dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
  54.     opts = {},
  55.   },
  56.  
  57.   {
  58.     "nvim-treesitter/nvim-treesitter",
  59.     build = ":TSUpdate",
  60.     config = function()
  61.       local configs = require("nvim-treesitter.configs")
  62.       configs.setup({
  63.         ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
  64.         sync_install = false,
  65.         highlight = { enable = true },
  66.         indent = { enable = true }
  67.       })
  68.     end,
  69.   },
  70.  
  71.   {
  72.     'altermo/ultimate-autopair.nvim',
  73.     event={'InsertEnter','CmdlineEnter'},
  74.     branch='v0.6', --recommended as each new version will have breaking changes
  75.     opts={
  76.         --Config goes here
  77.     },
  78. },
  79.  
  80.   { 'kblin/vim-fountain' },
  81.   { 'vim-pandoc/vim-pandoc' },
  82.   { 'vim-pandoc/vim-pandoc-syntax' },
  83.   { 'nvim-telescope/telescope.nvim' },
  84.   { 'reedes/vim-pencil' },
  85.   { 'folke/twilight.nvim' },
  86.   {
  87.     "folke/zen-mode.nvim",
  88.     opts = {
  89.     -- your configuration comes here
  90.     -- or leave it empty to use the default settings
  91.     -- refer to the configuration section below
  92.   }
  93. },
  94.   { "epwalsh/obsidian.nvim", config = function() require("plugins.obsidian") end },
  95.   { "hrsh7th/nvim-cmp" },
  96. })
  97.  
  98. vim.opt.wrap = true
  99. vim.cmd("colorscheme onedark")
  100. vim.opt.clipboard = "unnamedplus"
  101. --vim.cmd("highlight Normal guibg=#0e0e0e")
  102. --vim.cmd("highlight NormalNC guibg=#0e0e0e")
  103. --vim.cmd("highlight NonText guibg=#0e0e0e")
  104. --vim.cmd("highlight EndOfBuffer guibg=#0e0e0e")
  105. --
  106. ---- Additional setting to ensure colors stay applied
  107. --vim.opt.termguicolors = true
Tags: neovim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement