2026-09-11 22:33:46 +02:00
|
|
|
vim.opt.exrc = true
|
|
|
|
|
|
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
|
|
|
|
|
|
require'nvim-treesitter.configs'.setup {
|
|
|
|
|
-- A directory to install the parsers into.
|
|
|
|
|
-- If this is excluded or nil parsers are installed
|
|
|
|
|
-- to either the package dir, or the "site" dir.
|
|
|
|
|
-- If a custom path is used (not nil) it must be added to the runtimepath.
|
|
|
|
|
parser_install_dir = vim.fn.stdpath "data" .. "site",
|
|
|
|
|
|
|
|
|
|
-- A list of parser names, or "all"
|
|
|
|
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline", "python", "nix" },
|
|
|
|
|
|
|
|
|
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
|
|
|
|
sync_install = false,
|
|
|
|
|
|
|
|
|
|
-- Automatically install missing parsers when entering buffer
|
|
|
|
|
auto_install = true,
|
|
|
|
|
|
|
|
|
|
-- List of parsers to ignore installing (for "all")
|
|
|
|
|
-- ignore_install = { "javascript" },
|
|
|
|
|
|
|
|
|
|
highlight = {
|
|
|
|
|
-- `false` will disable the whole extension
|
|
|
|
|
enable = true,
|
|
|
|
|
|
|
|
|
|
-- list of language that will be disabled
|
|
|
|
|
-- disable = { "c", "rust" },
|
|
|
|
|
|
|
|
|
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
|
|
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
|
|
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
|
|
|
-- Instead of true it can also be a list of languages
|
|
|
|
|
additional_vim_regex_highlighting = false,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
vim.opt.runtimepath:append(vim.fn.stdpath "data" .. "site")
|
2026-09-12 00:56:04 +02:00
|
|
|
|
|
|
|
|
-- Load last session when started without arguments
|
|
|
|
|
vim.api.nvim_create_autocmd("VimEnter", {
|
|
|
|
|
callback = function()
|
|
|
|
|
if vim.fn.argc() == 0 then
|
|
|
|
|
require("persistence").load()
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
})
|