1

Regenerate nvim config

This commit is contained in:
2024-06-02 03:29:20 +02:00
parent 75eea0c030
commit ef2e28883d
5576 changed files with 604886 additions and 503 deletions

View File

@ -0,0 +1,48 @@
-- Install lazy.nvim automatically
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)
-- Or some other small value (Vim default is 4000)
vim.opt.updatetime = 100
require('lazy').setup {
'JoosepAlviste/nvim-ts-context-commentstring',
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
require('nvim-treesitter.configs').setup {
ensure_installed = { 'vim', 'lua' },
highlight = {
enable = true,
},
}
end,
},
{
'numToStr/Comment.nvim',
config = function()
require('Comment').setup {
pre_hook = function()
return vim.bo.commentstring
end,
}
end,
},
}
-- Try commenting the following vimscript in and out with `gcc`, it should be
-- commented with a double quote character
vim.cmd [[
echo 'Hello World!'
]]

View File

@ -0,0 +1,17 @@
#!/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
export XDG_CONFIG_HOME="${SCRIPT_DIR}/.testenv/config"
export XDG_DATA_HOME="${SCRIPT_DIR}/.testenv/data"
export XDG_STATE_HOME="${SCRIPT_DIR}/.testenv/state"
export XDG_RUNTIME_DIR="${SCRIPT_DIR}/.testenv/run"
export XDG_CACHE_HOME="${SCRIPT_DIR}/.testenv/cache"
mkdir -p "${XDG_CONFIG_HOME}/nvim"
mkdir -p "${XDG_DATA_HOME}/nvim"
mkdir -p "${XDG_STATE_HOME}/nvim"
mkdir -p "${XDG_RUNTIME_DIR}/nvim"
mkdir -p "${XDG_CACHE_HOME}/nvim"
nvim -u "${SCRIPT_DIR}/minimal_init.lua" "${SCRIPT_DIR}/minimal_init.lua"