Browse Source

refact: treesitter cannot be disabled as doomrc.langs depends on it

my-config
NTBBloodbath 3 years ago
parent
commit
2a247c66e4
No known key found for this signature in database GPG Key ID: 18D6730BC846AAC5
  1. 1
      doomrc.lua
  2. 2
      lua/doom/modules/init.lua

1
doomrc.lua

@ -38,7 +38,6 @@ local doom = {
-- 'editorconfig', -- EditorConfig support for Neovim
'kommentary', -- Comments plugin
'lsp', -- Language Server Protocols
'treesitter', -- An incremental parsing system for programming tools
'snippets', -- LSP snippets
},
langs = {

2
lua/doom/modules/init.lua

@ -45,13 +45,11 @@ packer.startup(function(use)
})
-- Tree-Sitter
local disabled_treesitter = functions.is_plugin_disabled('treesitter')
use({
'nvim-treesitter/nvim-treesitter',
opt = true,
run = ':TSUpdate',
config = require('doom.modules.config.doom-treesitter'),
disable = disabled_treesitter,
})
-- Sessions

Loading…
Cancel
Save