[nvim] Move neovim config to /nvim

This commit is contained in:
Eryn Wells 2026-01-24 15:25:05 -08:00
parent e45c1694af
commit 5b567ad2ad
28 changed files with 0 additions and 0 deletions

16
nvim/lua/treesitter.lua Normal file
View file

@ -0,0 +1,16 @@
-- Treesitter configuration
-- Eryn Wells <eryn@erynwells.me>
local treesitter = require 'nvim-treesitter.configs'
-- For some reason the Lua linter complains about missing fields here even
-- though they're not requried. So, ignore the error.
---@diagnostic disable:missing-fields
treesitter.setup {
highlight = { enable = true },
indent = { enable = true },
ensure_installed = { "c", "cpp", "javascript", "lua", "objc", "python", "rust", "vim" },
auto_install = true,
}
vim.treesitter.language.register("objcpp", { "objc", "cpp" })