u/HetzWGA23

Recomendação de VPS

Boa noite! estou querendo contratar algum serviço de vps para hospedar algumas coisas para uso pessoal, a principio nada que demande muito processamento (ts6, kavita, vpn, alguns containers fubango pra estudar etc). Recomendações?

reddit.com
u/HetzWGA23 — 2 days ago
▲ 1 r/neovim

Treesitter stoped working out of nowhere

I've opened nvim today and its not working. I've tried to upload parsers, install manually, remove nvim-treesiter and install again but it doesnt work. My highlights doesnt seem to work. I've tried both approachs in my config, calling setup and don't calling setup but neither worked. Any tips?

vim.pack.add({
    "https://github.com/nvim-treesitter/nvim-treesitter",
})

vim.api.nvim_create_autocmd("PackChanged", {
callback = function(ev)
local name, kind = ev.data.spec.name, ev.data.kind
if name == "nvim-treesitter" and kind == "update" then
if not ev.data.active then
vim.cmd.packadd("nvim-treesitter")
end
vim.cmd("TSUpdate")
end
end,
})

vim.api.nvim_create_autocmd("FileType", {
pattern = { "http", "rest" },
callback = function()
vim.treesitter.start()
end,
})

-- local setup_treesitter = function()
-- local treesitter = require("nvim-treesitter")
-- treesitter.setup({})
-- local ensure_installed = {
-- "vim",
-- "vimdoc",
-- "rust",
-- "c",
-- "cpp",
-- "go",
-- "html",
-- "css",
-- "javascript",
-- "json",
-- "lua",
-- "markdown",
-- "python",
-- "typescript",
--         "angular",
--         "toml",
--         "gitcommit",
--         "terraform",
-- "bash",
-- }
--
-- local config = require("nvim-treesitter.config")
--
-- local already_installed = config.get_installed()
-- local parsers_to_install = {}
--
-- for _, parser in ipairs(ensure_installed) do
-- if not vim.tbl_contains(already_installed, parser) then
-- table.insert(parsers_to_install, parser)
-- end
-- end
--
-- if #parsers_to_install > 0 then
-- treesitter.install(parsers_to_install)
-- end
--
-- local group = vim.api.nvim_create_augroup("TreeSitterConfig", { clear = true })
-- vim.api.nvim_create_autocmd("FileType", {
-- group = group,
-- callback = function(args)
-- if vim.list_contains(treesitter.get_installed(), vim.treesitter.language.get_lang(args.match)) then
-- vim.treesitter.start(args.buf)
-- end
-- end,
-- })
-- end
--
-- setup_treesitter()
u/HetzWGA23 — 4 months ago
▲ 4 r/neovim

Hi, i'm trying to setup kulala.nvim and everything works fine besides treesitter highlights.

This is my current config:

vim.filetype.add({
  extension = {
    ['http'] = 'http',
  },
})

vim.pack.add({
  "https://github.com/mistweaverco/kulala.nvim",
})

require("kulala").setup({
  global_keymaps = true,
  global_keymaps_prefix = "<leader>R",
  kulala_keymaps_prefix = "",
})

vim.api.nvim_create_autocmd("FileType", {
  pattern = { "http", "rest" },
  callback = function()
    vim.keymap.set("n", "<leader>Rs", function()
      require("kulala").run()
    end, { desc = "Send request", buffer = true })

    vim.keymap.set("n", "<leader>Ra", function()
      require("kulala").run_all()
    end, { desc = "Send all requests", buffer = true })
  end,
})

When i open nvim i get the following message: Nvim-treesitter not found. The kulala_http parser is required for syntax highlighting and formatting.

I've also tried to install the parser with: :TSInstallFromGrammar kulala_http

as the docs suggested

u/HetzWGA23 — 4 months ago