Compare commits
2 Commits
7b990a2cdb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e878aabe5 | |||
| d9fcc3e3ec |
@ -1,11 +0,0 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = { "lua", "c", "cpp", "rust" },
|
||||
highlight = { enable = true, additional_vim_regex_highlighting = false },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end,
|
||||
}
|
||||
@ -48,6 +48,9 @@ return {
|
||||
-- Python
|
||||
vim.lsp.enable('pylsp')
|
||||
|
||||
-- Java (from Eclipse)
|
||||
vim.lsp.enable('jdtls')
|
||||
|
||||
-- Auto format
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
pattern = {"*.rs", "*.hs", "*.py"},
|
||||
|
||||
@ -3,7 +3,7 @@ return {
|
||||
lazy = false,
|
||||
run = ":TSUpdate",
|
||||
config = function()
|
||||
require'nvim-treesitter'.install { 'lua', 'c', 'cpp', 'rust' }
|
||||
require'nvim-treesitter'.install { 'lua', 'c', 'cpp', 'rust', 'java' }
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = { '<filetype>' },
|
||||
callback = function() vim.treesitter.start() end,
|
||||
|
||||
Reference in New Issue
Block a user