2023-12-23 22:59:50 +00:00
|
|
|
-- From https://github.com/nvim-lua/kickstart.nvim -- commit e39a8bce9d25b3bd8d50098fadf13575a4a71b4b
|
|
|
|
|
|
|
|
-- Set <space> as the leader key
|
|
|
|
-- See `:help mapleader`
|
|
|
|
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
|
|
|
vim.g.mapleader = ' '
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
|
|
|
-- [[ Install `lazy.nvim` plugin manager ]]
|
|
|
|
-- https://github.com/folke/lazy.nvim
|
|
|
|
-- `:help lazy.nvim.txt` for more info
|
|
|
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
vim.fn.system {
|
|
|
|
'git',
|
|
|
|
'clone',
|
|
|
|
'--filter=blob:none',
|
|
|
|
'https://github.com/folke/lazy.nvim.git',
|
|
|
|
'--branch=stable', -- latest stable release
|
|
|
|
lazypath,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
|
|
|
-- [[ Configure plugins ]]
|
|
|
|
-- NOTE: Here is where you install your plugins.
|
|
|
|
-- You can configure plugins using the `config` key.
|
|
|
|
--
|
|
|
|
-- You can also configure plugins after the setup call,
|
|
|
|
-- as they will be available in your neovim runtime.
|
2023-12-24 10:41:17 +00:00
|
|
|
require('lazy-configure')
|
2023-12-23 22:59:50 +00:00
|
|
|
|
|
|
|
-- [[ Setting options ]]
|
2023-12-24 10:24:18 +00:00
|
|
|
require('general-options')
|
2023-12-24 10:41:31 +00:00
|
|
|
|
2023-12-23 22:59:50 +00:00
|
|
|
-- [[ Basic Keymaps ]]
|
2023-12-24 10:26:30 +00:00
|
|
|
require('mappings')
|
2023-12-24 10:41:31 +00:00
|
|
|
|
2023-12-23 22:59:50 +00:00
|
|
|
-- [[ Highlight on yank ]]
|
|
|
|
-- See `:help vim.highlight.on_yank()`
|
|
|
|
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
|
|
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
|
|
|
callback = function()
|
|
|
|
vim.highlight.on_yank()
|
|
|
|
end,
|
|
|
|
group = highlight_group,
|
|
|
|
pattern = '*',
|
|
|
|
})
|
|
|
|
|
|
|
|
-- [[ Configure Telescope ]]
|
2023-12-24 10:40:29 +00:00
|
|
|
require('telescope-configure')
|
2023-12-23 22:59:50 +00:00
|
|
|
|
|
|
|
-- [[ Configure Treesitter ]]
|
2023-12-24 10:49:17 +00:00
|
|
|
require('treesitter-configure')
|
2023-12-23 22:59:50 +00:00
|
|
|
|
|
|
|
-- [[ Configure LSP ]]
|
2023-12-24 10:35:33 +00:00
|
|
|
require('lsp')
|
2023-12-23 22:59:50 +00:00
|
|
|
|
|
|
|
-- [[ Configure nvim-cmp ]]
|
2023-12-24 10:37:02 +00:00
|
|
|
require('complete')
|
2023-12-23 22:59:50 +00:00
|
|
|
|
2023-12-24 11:32:39 +00:00
|
|
|
-- [[ Configure neorg ]]
|
|
|
|
require('neorg-configure')
|
|
|
|
|
2023-12-24 10:32:24 +00:00
|
|
|
-- Customizations
|
2023-12-23 23:07:05 +00:00
|
|
|
require('restore-position')
|
2023-12-24 20:48:21 +00:00
|
|
|
require('autocommands')
|
2023-12-23 23:07:05 +00:00
|
|
|
|
2023-12-23 22:59:50 +00:00
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
|
-- vim: ts=2 sts=2 sw=2 et
|