remove tree-sitter/rust stuff
This commit is contained in:
@@ -5,4 +5,4 @@ require( "roka.core.plugins" )
|
||||
|
||||
require( "roka.plug.color" )
|
||||
require( "roka.plug.mason" )
|
||||
require( "roka.plug.rust-tools" )
|
||||
--require( "roka.plug.rust-tools" )
|
||||
|
||||
@@ -156,39 +156,6 @@ return packer.startup(function(use)
|
||||
"rafamadriz/friendly-snippets", -- Optional
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- treesitter
|
||||
-- --------------------------------------------------------------
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = function()
|
||||
local ts_update = require('nvim-treesitter.install').update({ with_sync = true})
|
||||
ts_update()
|
||||
end,
|
||||
|
||||
build = ":TSUpdate",
|
||||
|
||||
config = function()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {"c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline", "rust"},
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable= function( lang, buf)
|
||||
local max_filesize = 100 * 1024
|
||||
local ok, stats = pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
-- -------------------------------------------------------------------
|
||||
-- Automatically set up your configuration after cloning packer.nvim.
|
||||
-- Put this at the end after all plugins.
|
||||
|
||||
Reference in New Issue
Block a user