mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
updated plugin
This commit is contained in:
parent
ca6bb218fb
commit
c655235dbd
2 changed files with 44 additions and 9 deletions
|
|
@ -149,12 +149,5 @@ if vim.env.TMUX ~= nil then
|
|||
}
|
||||
end
|
||||
|
||||
|
||||
if vim.treesitter.language.ft_to_lang == nil then
|
||||
vim.treesitter.language.ft_to_lang = function(ft)
|
||||
return ft
|
||||
end
|
||||
end
|
||||
|
||||
-- https://simondalvai.org/blog/godot-neovim/
|
||||
require("godot")
|
||||
|
|
|
|||
|
|
@ -32,14 +32,56 @@ return require('packer').startup(function(use)
|
|||
}
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||
requires = { { 'nvim-lua/plenary.nvim' } },
|
||||
run = ":TSUpdate",
|
||||
config = function()
|
||||
require('telescope').setup({
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"--color=never",
|
||||
"--no-heading",
|
||||
"--with-filename",
|
||||
"--line-number",
|
||||
"--column",
|
||||
"--smart-case",
|
||||
"--glob=!node_modules/**",
|
||||
"--glob=!build/**",
|
||||
},
|
||||
file_ignore_patterns = { "node_modules", "build" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
-- config = function() require("plugins/ts") end
|
||||
branch = 'main',
|
||||
run = ':TSUpdate',
|
||||
config = function()
|
||||
require('nvim-treesitter').setup()
|
||||
|
||||
require('nvim-treesitter').install({
|
||||
'c', 'lua', 'vim', 'vimdoc', 'query', 'markdown', 'markdown_inline', 'go'
|
||||
}):wait()
|
||||
|
||||
-- enable highlighting
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
callback = function(args)
|
||||
local max_filesize = 100 * 1024 -- 100 KB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(args.buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return
|
||||
end
|
||||
pcall(vim.treesitter.start)
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
|
||||
use 'mbbill/undotree'
|
||||
use 'mfussenegger/nvim-lint'
|
||||
use {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue