Skip to content

Commit

Permalink
Start using treesitter's Perl
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Nov 24, 2023
1 parent b946cc3 commit adab5d9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---@diagnostic disable-next-line missing-fields
require 'nvim-treesitter.configs'.setup {
ensure_installed = { 'bash', 'dockerfile', 'go', 'html', 'javascript', 'lua', 'markdown', 'markdown_inline',
'python', 'regex', 'ruby', 'rust', 'sql', 'typescript', 'vim', 'yaml' },
'perl', 'python', 'regex', 'ruby', 'rust', 'sql', 'typescript', 'vim', 'yaml' },
-- ensure_installed = 'all',
highlight = {
enable = true, -- false will disable the whole extension
Expand All @@ -14,17 +14,6 @@ require 'nvim-treesitter.configs'.setup {
},
}

local parser_config = require('nvim-treesitter.parsers').get_parser_configs()
parser_config.perl = {
install_info = {
url = 'https://github.com/tree-sitter-perl/tree-sitter-perl',
revision = 'release',
files = { 'src/parser.c', 'src/scanner.c' },
},
maintainers = { '@leonerd' },
filetype = 'perl',
}

vim.opt.termguicolors = true
vim.opt.mouse = "v"

Expand Down

0 comments on commit adab5d9

Please sign in to comment.