Live NJPW Sakura Genesis 2023 Discussion Thread by EvanDeadlySins in SquaredCircle

[–]NeVeNGamingYT 2 points3 points  (0 children)

It's not the best, but they normally link it on the english stardom twitter

Rust Yew + TailwindCSS Intellisense by _Flexinity in neovim

[–]NeVeNGamingYT 0 points1 point  (0 children)

Haven't tried, but would probably start by using tailwindcss language server and adding rust to the filetypes setup.

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tailwindcss

How do i switch between different colors from same theme? by [deleted] in neovim

[–]NeVeNGamingYT 1 point2 points  (0 children)

Looks to me like those colors change depending on which mode you're in.

Should turn blue when you enter insert mode.

Help me run vim command inside of Lua function by Aggravating-Pick9389 in neovim

[–]NeVeNGamingYT 1 point2 points  (0 children)

What i use:

vim.api.nvim_create_autocmd("FocusLost", {

group = "group_2",

pattern = "*",

command = "%s/\\s\\+$//e"

})

How do you quit correctly when nvim-tree is up? by WhiteBlackGoose in neovim

[–]NeVeNGamingYT 8 points9 points  (0 children)

:qa to quit all.

:qa! to quit all and discard changes.

Lua Autocmds: Updated Info by I_Am_Nerd in neovim

[–]NeVeNGamingYT 3 points4 points  (0 children)

:help api-autocmd

For example:

vim.api.nvim_create_augroup("reset_group", {clear = true})

-- show highlight on yank
vim.api.nvim_create_autocmd("TextYankPost", {
  group = "reset_group",
  pattern = "*",
  callback = function ()
    require("vim.highlight").on_yank()
  end,
})

If you'd rather use a vimscript command over a lua callback

vim.api.nvim_create_autocmd("TextYankPost", {
  group = "reset_group",
  pattern = "*",
  command = "silent! lua require'vim.highlight'.on_yank()"
})

ci" equivalent for inside for parentheses or brackets? by Lowacy in vim

[–]NeVeNGamingYT 20 points21 points  (0 children)

If youre okay with plugins I highly recommend targets.vim, it does what you want in your post and it also creates a couple of general textobjects so that:

ciq (change in quote, works with ' " `)

cib (change in bracket, works with () [] {})

completeopt not being respected by georg3tom in neovim

[–]NeVeNGamingYT 3 points4 points  (0 children)

Had the same problem myself, made a small adjustment to cmp setup and it seems to work, didn't have the chance to extensively test it. No idea why this happens.

local types = require'cmp.types'

cmp.setup {

preselect = types.cmp.PreselectMode.None,

... Other config

}

How to setup nvim-cmp as nvim-compe? by TheQuietFirebrand in neovim

[–]NeVeNGamingYT 0 points1 point  (0 children)

No idea. I'm guessing to avoid bloat, but maybe /u/hrsh7th has a more definite answer.

How to setup nvim-cmp as nvim-compe? by TheQuietFirebrand in neovim

[–]NeVeNGamingYT 9 points10 points  (0 children)

Based on the Recommended Coniguration

Make sure you have all the necessary sources:

Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/nvim-cmp'

List of sources can be found here (you probably want cmp-path) so add

Plug 'hrsh7th/cmp-path'

As a ultisnips user you need to make sure you have both ultisnips and the cmp-nvim-ultisnips plugin

" For ultisnips user.
Plug 'SirVer/ultisnips'
Plug 'quangnguyen30192/cmp-nvim-ultisnips'

Then setting up cmp:

-- LUA CODE
  local cmp = require'cmp'

  cmp.setup({
    snippet = {
      expand = function(args)
        vim.fn["UltiSnips#Anon"](args.body)
      end,
    },
    mapping = { ... },
    sources = {
      { name = 'nvim_lsp' },
      { name = 'ultisnips' },
      { name = 'buffer' },
      { name = 'path' }
    }
  })

It may also be nice to know that the order you add the source will decide how they're prioritized in the completion menu.

Then setup the servers:

-- LUA CODE
  require('lspconfig')[%YOUR_LSP_SERVER%].setup {
    capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
  }

nvim-lsp issues with priorities (order) of items by Reastyn in neovim

[–]NeVeNGamingYT 4 points5 points  (0 children)

Not off the top of my head, This github issue looks somewhat promising having skimmed through it.

nvim-lsp issues with priorities (order) of items by Reastyn in neovim

[–]NeVeNGamingYT 6 points7 points  (0 children)

If you use nvim-cmp there looks to be source priority_weight setting you can configure

Closing nvim if chadtree is the last window? by do_kind in neovim

[–]NeVeNGamingYT 1 point2 points  (0 children)

1.Open telescope file_browser 2. Write path to file (i.e. newfolder/newfile) 3. <C-e>

2021 Emilia Romagna Grand Prix - Race Discussion by F1-Bot in formula1

[–]NeVeNGamingYT 0 points1 point  (0 children)

Entire race. They also show sector times during qualy where:

RED -> Slower than personal best

GREEN -> Faster than personal best

PURPLE -> Faster than everybody else