nvim-config-kickstart/init.lua

71 lines
1.8 KiB
Lua
Raw Normal View History

-- 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')
-- [[ Setting options ]]
require('general-options')
2023-12-24 10:41:31 +00:00
-- [[ Basic Keymaps ]]
require('mappings')
2023-12-24 10:41:31 +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 ]]
require('telescope-configure')
-- [[ Configure Treesitter ]]
require('treesitter-configure')
-- [[ Configure LSP ]]
2023-12-24 10:35:33 +00:00
require('lsp')
-- [[ Configure nvim-cmp ]]
require('complete')
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:01:01 +00:00
require('bepo')
require('restore-position')
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et