2024-07-21 22:05:23 +02:00
|
|
|
-- [[ Configure and install plugins ]]
|
|
|
|
--
|
|
|
|
-- To check the current status of your plugins, run
|
|
|
|
-- :Lazy
|
|
|
|
--
|
|
|
|
-- You can press `?` in this menu for help. Use `:q` to close the window
|
|
|
|
--
|
|
|
|
-- To update plugins you can run
|
|
|
|
-- :Lazy update
|
|
|
|
--
|
|
|
|
-- NOTE: Here is where you install your plugins.
|
|
|
|
require('lazy').setup({
|
|
|
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
|
|
|
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
|
|
|
|
|
|
|
-- Remember position
|
|
|
|
{ 'vladdoster/remember.nvim', opts = {} },
|
|
|
|
|
2024-11-12 16:31:04 +01:00
|
|
|
-- Terminal
|
|
|
|
{'akinsho/toggleterm.nvim', version = "*", config = true},
|
|
|
|
|
2024-07-21 22:05:23 +02:00
|
|
|
-- NOTE: Plugins can also be added by using a table,
|
|
|
|
-- with the first argument being the link and the following
|
|
|
|
-- keys can be used to configure plugin behavior/loading/etc.
|
|
|
|
--
|
|
|
|
-- Use `opts = {}` to force a plugin to be loaded.
|
|
|
|
--
|
|
|
|
-- This is equivalent to:
|
|
|
|
-- require('Comment').setup({})
|
|
|
|
|
|
|
|
-- "gc" to comment visual regions/lines
|
|
|
|
{ 'numToStr/Comment.nvim', opts = {} },
|
|
|
|
|
|
|
|
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
|
|
|
|
--
|
|
|
|
-- This is often very useful to both group configuration, as well as handle
|
|
|
|
-- lazy loading plugins that don't need to be loaded immediately at startup.
|
|
|
|
--
|
|
|
|
-- For example, in the following configuration, we use:
|
|
|
|
-- event = 'VimEnter'
|
|
|
|
--
|
|
|
|
-- which loads which-key before all the UI elements are loaded. Events can be
|
|
|
|
-- normal autocommands events (`:help autocmd-events`).
|
|
|
|
--
|
|
|
|
-- Then, because we use the `config` key, the configuration only runs
|
|
|
|
-- after the plugin has been loaded:
|
|
|
|
-- config = function() ... end
|
|
|
|
|
|
|
|
-- NOTE: Plugins can specify dependencies.
|
|
|
|
--
|
|
|
|
-- The dependencies are proper plugin specifications as well - anything
|
|
|
|
-- you do for a plugin at the top level, you can do for a dependency.
|
|
|
|
--
|
|
|
|
-- Use the `dependencies` key to specify the dependencies of a particular plugin
|
|
|
|
|
|
|
|
{ -- You can easily change to a different colorscheme.
|
|
|
|
-- Change the name of the colorscheme plugin below, and then
|
|
|
|
-- change the command in the config to whatever the name of that colorscheme is.
|
|
|
|
--
|
|
|
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
|
|
|
'folke/tokyonight.nvim',
|
|
|
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
|
|
|
init = function()
|
|
|
|
-- Load the colorscheme here.
|
|
|
|
-- Like many other themes, this one has different styles, and you could load
|
|
|
|
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
|
|
|
vim.cmd.colorscheme 'tokyonight-storm'
|
|
|
|
|
|
|
|
-- You can configure highlights by doing something like:
|
|
|
|
vim.cmd.hi 'Comment gui=none'
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
-- Highlight todo, notes, etc in comments
|
|
|
|
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
|
|
|
|
|
|
|
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
|
|
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
|
|
|
-- place them in the correct locations.
|
|
|
|
|
|
|
|
-- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart
|
|
|
|
--
|
|
|
|
-- Here are some example plugins that I've included in the Kickstart repository.
|
|
|
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
|
|
|
--
|
2024-07-21 22:47:24 +02:00
|
|
|
-- require 'plugins.debug',
|
2024-07-21 23:30:17 +02:00
|
|
|
-- require 'plugins.indent_line',
|
2024-07-21 22:47:24 +02:00
|
|
|
-- require 'plugins.lint',
|
|
|
|
-- require 'plugins.autopairs',
|
|
|
|
-- require 'plugins.neo-tree',
|
|
|
|
-- require 'plugins.gitsigns', -- adds gitsigns recommend keymaps
|
2024-07-21 22:05:23 +02:00
|
|
|
|
|
|
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
|
|
|
-- This is the easiest way to modularize your config.
|
|
|
|
--
|
|
|
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
|
|
|
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
2024-07-21 22:47:24 +02:00
|
|
|
{ import = 'plugins' },
|
2024-07-21 22:05:23 +02:00
|
|
|
}, {
|
|
|
|
ui = {
|
|
|
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
|
|
|
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
|
|
|
icons = vim.g.have_nerd_font and {} or {
|
|
|
|
cmd = '⌘',
|
|
|
|
config = '🛠',
|
|
|
|
event = '📅',
|
|
|
|
ft = '📂',
|
|
|
|
init = '⚙',
|
|
|
|
keys = '🗝',
|
|
|
|
plugin = '🔌',
|
|
|
|
runtime = '💻',
|
|
|
|
require = '🌙',
|
|
|
|
source = '📄',
|
|
|
|
start = '🚀',
|
|
|
|
task = '📌',
|
|
|
|
lazy = '💤 ',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2024-07-21 22:14:58 +02:00
|
|
|
|
|
|
|
-- vim: ts=2 sts=2 sw=2 et
|