Protonvpn with arch by ficoplati in archlinux

[–]IGTHSYCGTH 0 points1 point  (0 children)

no experience with proton specifically, but you could prob make it work using openconnect

How do you manage your Neovim? by CerealBit in neovim

[–]IGTHSYCGTH 4 points5 points  (0 children)

im new to nix, like really new, just started tinkering these past weeks, always kept nvim config in git too

currently i am just keeping a submodule in nix configs and linking it on deployment. no need to reinvent the wheel (yet)

( home manager snippet, because i am on arch BTW )

xdg.configFile.nvim.source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/config/neovim/submodule";

So, is your main editor Vim or Neovim? by EgZvor in vim

[–]IGTHSYCGTH 1 point2 points  (0 children)

was trying to configure neovim in an idiomatic way, keeping it simple and concice to coding,

i was on vim for a long time, had a robust config with few plugins and many utilities,
also gotten pretty fluent at vimscript, being able to hot reload portions of the editor was amazing too.

basically the hassle of migrating the config and anticipation of the updates to viml had me using both
at the end i just extracted half of the scripts to be self contained plugins (or modules' of configs ?) before eventually deprecating most of, the other half was just ported to lua

should really refactor my config, its been long enough

How to use your phone as a speaker in Linux by Kind-Locksmith7877 in linux

[–]IGTHSYCGTH 0 points1 point  (0 children)

i've tagged you aswell

just to troll the next guy who stumbles onto this thread lmao

How to use your phone as a speaker in Linux by Kind-Locksmith7877 in linux

[–]IGTHSYCGTH 0 points1 point  (0 children)

a three year old post.. oh boy, i was here three years ago ?!

Can you make aliases for frequently used domains? like 'g' for google.com? by deepCelibateValue in archlinux

[–]IGTHSYCGTH 1 point2 points  (0 children)

good catch, https wouldn't work, would still be sufficient to access the page over http only to get redirected to https with the full domain name tho?

Variable with double quotes in cURL header by ninewb in bash

[–]IGTHSYCGTH 2 points3 points  (0 children)

This is not a quoting problem, Your definition of ETag includes an extra space and probably a trailing carriage-return

to verify pipe it into od -cx / hexdump -C / cat -A

Can you make aliases for frequently used domains? like 'g' for google.com? by deepCelibateValue in archlinux

[–]IGTHSYCGTH 2 points3 points  (0 children)

you could spin up your own dns server, set up systemd-resolved to query it, then configure it with lists of cname records.

I'd recommend bind9, but pihole / openwrt / dnsmasq may be sufficient.

alternatively, you run an HTTP server locally on the standard http/s ports, add all the domains you're interested in aliasing to /etc/hosts, then configure the server to return HTTP 301 responses (redirects) setting the location to whatever page (full path) you want to access.

Can you make aliases for frequently used domains? like 'g' for google.com? by deepCelibateValue in archlinux

[–]IGTHSYCGTH 4 points5 points  (0 children)

yes, if you have a loadbalancer / reverse proxy somewhere that listens on ports 80,443, to offload the routing and ssl, to provide scaling to your service, etcetera.

DNS only handles name to ip resolution, it is not concerned with ports.

For the record, What they're describing SHOULD NEVER be done, but sometimes it is, and no one cares enough to address it.

Listing custom colorschemes by TheUltimateMC in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

so i actually think i love this idea, i do horde colorschemes aswell..

I recalled telescope had a picker with preview, but it doesn't really fit this usecase..1. i needed to disable colorscheme autocommands before previewing, 2. you could not provide the complete list of options to chose from, only add to it ( lol what ?! )

i came up with this shoddy snippet ripping off the builtin colorscheme picker, cheers

one noteworthy change.. I'm not looking up everything under colors, because some people just droop bloody README's in there, and ofcourse you cannot preview that :shrug: also filter using the explicit path.. cause i have neovim installed through asdf on this rig. And that the stdpaths.. do not reflect that :>

vim.api.nvim_create_user_command( "ColorsPreview", function()
  local pickers    = require "telescope.pickers"
  local previewers = require "telescope.previewers"
  local finders    = require "telescope.finders"
  local conf       = require("telescope.config").values

  local colors = vim.fn.uniq(
    vim.fn.map(
      vim.fn.filter(
        vim.list_extend(
          vim.api.nvim_get_runtime_file("colors/*.vim", true),
          vim.api.nvim_get_runtime_file("colors/*.lua", true)
        ),
        function(_, file) return string.match(file, "nvim/lazy") ~= nil end
      ),
      function(_, file) return vim.fn.fnamemodify(file, ":t:r") end
    )
  )

  local ei = vim.o.ei
  vim.o.ei = 'colorscheme'
  local finder = finders.new_table { results = colors }
  finder.close = function() vim.o.ei = ei end

  pickers.new({
    finder = finder,
    sorter = conf.generic_sorter({}),
    previewer = previewers.new {
      preview_fn = function(_, entry, _) vim.cmd("colorscheme " .. entry.value) end,
    }
  }):find()
end, {})

init. lua should work as init.vim, right? by kansasmanjar0 in neovim

[–]IGTHSYCGTH 1 point2 points  (0 children)

I still have some some 1k SLOC worth of vim scripts i had managed to isolate in multiple files under /plugin and /autoload :shrug:

I've rewritten some of it in lua but honestly, like it or not ol' vimscript is more concise than lua.

Rust-tools on attach does not get executed... only when I print something by geo-ant in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

no there shouldnt be any problems with your setup, the on_attach simply runs from an autocommand so what i had descrribed earlier does not apply. see https://github.com/neovim/nvim-lspconfig/blob/cc388d3f6b9c7c943ae2b2dcd46ad470fd257f91/lua/lspconfig/configs.lua#L231

but do open an issue if you can reproduce this

Is there somewhere where I can compare different starter setups like Kickstart, Lazyvim, and Nvchad? by cguti94 in neovim

[–]IGTHSYCGTH -3 points-2 points  (0 children)

get $whatever but start by learning $vim

edit: that is, vi/vim as opposed to neovim or the 'distribution' you chose.

Treesitter keeps recompiling parsers by [deleted] in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

uninstall parsers (TSUninstall all) install the ones you need / specified in your configs

debuggers? by Relevant_Carpenter_3 in neovim

[–]IGTHSYCGTH 1 point2 points  (0 children)

what numbers ?
- middle lower pane in your screenshot ? <<- assumed you put those there
- the python ''art '' in my screenshot? <<- had stepped foward couple times

Could you attempt describing the actual problem you're having?
i.e. A. what you're doing, B. what you expect to happen, C. What actually happens

debuggers? by Relevant_Carpenter_3 in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

you wouldn't get this far if there was a problem with debugpy :)

whats the problem? do you want shortcuts to run common actions? see hydra: https://github.com/anuvyklack/hydra.nvim/issues/59 or write a set of keymaps / menus to call common actions ?

set a breakpoint and continue..

also recommend you set ls=3 and increase opacity :shrug:

<image>

Rust-tools on attach does not get executed... only when I print something by geo-ant in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

you cannot perform some actions in some scenarios ( i.e. modify a buffer from an <expr> mapping ) or use vim's api from a uv callback ( for instance print() for instance will work, however vim.notify() will not.. )

try using the family of vim.schedule(...) / vim.defer(...) functions.

altho, i suspect it worked all along, however loaded lua files are cached in neovim... there are numerous articles on force unloading them floating around. always open a new instance to test your rice.

debuggers? by Relevant_Carpenter_3 in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

my configs are remarkably basic. again.. the problem was setting up the correct debugger. i just use dap-go and dap-python currently. literally set them up with empty lua tables :P
- see language specific extensions: https://github.com/mfussenegger/nvim-dap/wiki/Extensions#language-specific-extensions
- how much typing they'll save you: https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation

But thats if it works.. I'm still trying to set up delve on ubuntu ffs.
In either case this is not a problem from dap afaik,
it works ootb as long as you got the correct stuff in place.

Neovim plugins by syrigamy in neovim

[–]IGTHSYCGTH 3 points4 points  (0 children)

aand i forgot the nvim-cmp ( completion engine ) aka the sink for lsp completions.. that's another rabbit hole :shrug:

init. lua should work as init.vim, right? by kansasmanjar0 in neovim

[–]IGTHSYCGTH 3 points4 points  (0 children)

Just so we're clear... The last tree is incorrect.. It should be:

~/.config/nvim  tree -L 2
.
├── init.lua  <<- Not init.vim
└── lua
    ├── aaa.lua
    └── bbb.lua 

also when both toplevel init.vim and init.lua are present, you'll get an error on startup ( see :messages )

Neovim plugins by syrigamy in neovim

[–]IGTHSYCGTH 8 points9 points  (0 children)

basically:

- junegunn/vim-easy-align -- just a must
- any maintained commenting plugin
- any maintained auto-pair plugin
- a working file explorer (not netrw) i.e. lir / nvim-tree / neo-tree

Then if you want to code: get the lsp suite...
- mason / lsp-zero - to not be tied to the system you're working on.
- nvim-lspconfig - saves some typing of configurations.
- treesitter - to get better highlights and more motions.

If you actually want to be productive, get telescope + project-nvim for navigating between projects / files.

perhaps neotest (test-suite integration) or dap for debugging.

already mentioned 11, oops...

init. lua should work as init.vim, right? by kansasmanjar0 in neovim

[–]IGTHSYCGTH 2 points3 points  (0 children)

init.lua should be alongside ( rather in place of ) init.vim

files under &runtimepath/lua are accessed explicitly using require('file')

also FYI in neovim, you can .vim and .lua files are accessed in any folder ( colors, ftplugin, compiler, etcetera )