nixos-config/home-manager/modules/neovim/config/lua/highlight.lua

69 lines
863 B
Lua
Raw Normal View History

2022-11-08 09:46:22 +01:00
-- -*- mode: lua; -*- vim: ft=lua
2022-01-13 09:03:22 +01:00
local treesitter = require('nvim-treesitter.configs')
treesitter.setup({
2022-11-08 09:46:22 +01:00
ensure_installed = {
'bash',
'c',
'cmake',
'commonlisp',
'cpp',
'css',
'diff',
'dockerfile',
'eex',
'elixir',
'fish',
'git_rebase',
'gitattributes',
'gitignore',
'hcl',
'heex',
'html',
'javascript',
'jsdoc',
'json',
'JSON with comments',
'jsonnet',
'lua',
'make',
'markdown',
'markdown_inline',
'meson',
'ninja',
'nix',
'org',
'proto',
'racket',
'rasi',
'regex',
'rst',
'ruby',
'rust',
'scheme',
'scss',
'surface',
'svelte',
'toml',
'tsx',
'typescript',
'vala',
'vim',
'yaml',
'zig'
},
2022-01-13 09:03:22 +01:00
autopairs = {
enable = true
},
highlight = {
enable = true
},
incremental_selection = {
enable = true
},
indent = {
enable = true
}
})