[nvim] Move neovim config to /nvim
This commit is contained in:
parent
e45c1694af
commit
5b567ad2ad
28 changed files with 0 additions and 0 deletions
16
nvim/lua/treesitter.lua
Normal file
16
nvim/lua/treesitter.lua
Normal 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" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue