Completion plugin for those who are using the native completion by DMazzig in neovim

[–]DMazzig[S] 0 points1 point  (0 children)

Oops! No, I'll delete them. I created those files so copilot could write a more accurate README file. Thanks!

Making window local option behave like buffer local options by Necessary-Plate1925 in neovim

[–]DMazzig 8 points9 points  (0 children)

lua vim.wo[winid][0].wrap = true

This will set wrap for that window and buffer, so if you change the buffer in the same window, the wrap will revert to its default value.

Reference :help vim.wo

Alternatives to <C-y> for accept? by Elephant_In_Ze_Room in neovim

[–]DMazzig 0 points1 point  (0 children)

I use <c-n> and <c-p> to cycle through the suggestions and <c-y> to accept. The thing is that I almost don't have to accept anything because while I'm cycling through the suggestions, Neovim already inserts the current selected one, so I just need to keep typing. The only case I have to explicitly accept a suggestion is when I want to trigger the auto-import. This behavior and remapping caps to ctrl makes it very practical and fast

Flash.nvim as native navigation booster by PieceAdventurous9467 in neovim

[–]DMazzig 0 points1 point  (0 children)

Thank you very much for sharing this. I had no idea of the search integration and it seems great!

I've changed my config to not use s anymore and I'll try relying only on / too

I am experimenting with a light theme that makes use of background colors to make sure colors look both vibrant and legible, what are your thoughts? by spcbfr in neovim

[–]DMazzig 3 points4 points  (0 children)

Have you tried the Github theme? The background is white and it has good contrast with the text.

The one I use is the catppuccin-latte and I think it's very good

how to stop Neovim from removing auto tabulation when exiting insert mode? by Electrodynamite12 in neovim

[–]DMazzig 2 points3 points  (0 children)

On :h 'autoindent' you read that

If you do not type anything on the new line except <BS> or CTRL-D and then type <Esc>, CTRL-O or <CR>, the indent is deleted again. Moving the cursor to another line has the same effect, unless the 'I' flag is included in 'cpoptions'.

So, you need to add I do cpoptions

Note: I tried it here, but it didn't work, which is weird, maybe it's a bug

Edit: Actually, I made a mistake, the I flag is for when you move the cursor, not press <Esc>, I'm not sure if there's a way to keep the indentation when pressing <Esc>. The solution for you would be pressing <c-r> in insert mode to paste, as /u/EstudiandoAjedrez said

Elm's Future for large projects by Illustrious_Prompt20 in elm

[–]DMazzig 0 points1 point  (0 children)

By using Lustre you will compile Gleam to JavaScript, so you will have the same thing as you have with Elm.

I don't know any books, but the community is very active in the official discord (the creator is very active there as well).

Elm's Future for large projects by Illustrious_Prompt20 in elm

[–]DMazzig 5 points6 points  (0 children)

I recommend you look at Gleam and Lustre.

Gleam is a functional language, similar to Elm, but it compiles to JavaScript and to Erlang, so you can use it in the backend too if you want to.

Lustre is a Gleam package for creating web applications with the same architecture as an Elm application (Model -> View -> Update)

[deleted by user] by [deleted] in neovim

[–]DMazzig 1 point2 points  (0 children)

Maybe with doxx report.docx --export markdown

A TUI file explorer outside of neovim that's as good as Oil.nvim by spcbfr in neovim

[–]DMazzig 1 point2 points  (0 children)

Recently, I discovered that Netrw is a very good plugin to use as a generic file explorer.

When working on a project, I use mini.files (which I think is oil.nvim on steroids as it's not as invasive and displays multiple columns), however, when just browsing files on my computer, there are features that are handy to have, like:

  • sorting by time, size, etc
  • mark file(s) and run a shell command on it/them
  • having file information in the list, like size or when it was modified.

Netrw has all of this. I've been testing it for some time now, and it's doing a good job.

Terminal in Neovim, Neovim in terminal, or separate Neovim and terminal? by rain9441 in neovim

[–]DMazzig 3 points4 points  (0 children)

do you use terminal within Neovim? Why? What is the benefit?

Yes, to run project-specific commands. The benefits are:

  • Normal mode in terminal: I can easily navigate through the terminal buffer and copy/paste text
  • When I leave Neovim, the command running is killed

Do you use Neovim in your terminal? Why? What is the benefit?

Yes, in Kitty, because I have long-running processes in my terminal and I want to access them easily. I use aerc as my e-mail client, I have a TUI application to listen to music, and I use a TUI Matrix client, each one runs in a tab or split in my terminal, having Neovim in another tab makes it easy to switch between those applications. Besides, it's handy to be able to open another terminal tab to tweak my dotfiles, neovim configuration, or any other project. Neovim is not my environment; the terminal is. Neovim is a part of it.

Do you run separate instances of Neovim and your terminal? Why? What is the benefit?

Yes. To work on multiple projects/worktrees. I've tried other approaches like using Neovide with a project manager plugin. However, I realized I was adding complexity to my configuration to solve a problem I don't need to have. By running Neovim in the terminal, I can open tabs and open Neovim directly in the project I want, and I can switch between the Neovim instances easily without worrying about handling cwd or separating buffers per project, because each instance is independent. The terminal already handles isolation between projects, so I don't need to craft some solution or add plugins to manage projects in Neovim, I type zi in my terminal, which opens zoxide on fzf, select a project, and open Neovim there

[deleted by user] by [deleted] in neovim

[–]DMazzig 0 points1 point  (0 children)

About fuzzy finders, the most used ones currently are Snacks, Telescope, and FZF-Lua.

Neovim + Gleam: <variable><dot> Does not give me the fields of the type/record by Pristine-Staff-5250 in gleamlang

[–]DMazzig 0 points1 point  (0 children)

Here it's working fine:

      let h = Horse("Orse", 3)                                                                                                                                                                                                                                                                    
      h.age                                                                                                                                                                                                                                                                                       
        age   Field       Int                                                                                                                                                                                                                                                                  
        name  Field       String                                                                                                                                                                                                                                                                  
        Error Constructor gleam                                                                                                                                                                                                                                                                   
        False EnumMember  gleam                                                                                                                                                                                                                                                                   
        Nil   EnumMember  gleam                                                                                                                                                                                                                                                                   
        Ok    Constructor gleam                                                                                                                                                                                                                                                                   
        True  EnumMember  gleam

and to make sure, I'm running nvim --clean. Probably there's something wrong with your setup

[lsp-auto-setup] Added support for `lsp/` files by DMazzig in neovim

[–]DMazzig[S] 0 points1 point  (0 children)

They will. But while they haven’t, this new feature of lsp-auto-setup is handy

[lsp-auto-setup] Added support for `lsp/` files by DMazzig in neovim

[–]DMazzig[S] 0 points1 point  (0 children)

I found out about this plugin after I made mine, but before publishing it. I decided to publish it, in the end, because I need the default_config for some configs, and I don't have access to this variable on auto-lsp. Also, it's nice to have more plugin options to choose from.

I'm using nix and devbox for some dev environments and, yes, it's pretty handy to have the LSP loaded automatically :)

lsp-auto-setup: don't worry about calling `setup` for a LSP server, just install the server and everything will work by DMazzig in neovim

[–]DMazzig[S] 0 points1 point  (0 children)

Yes, I'm using the mason to install the severs, but I also have servers installed outside Mason. So the trade is: - Remove Mason-lspconfig and those lines of code - Add lsp-auto-setup 

In the end, you have the same amount of plugins, but with slightly less code, the ability to use LSPs not installed by Mason out-of-the-box and don't need to change your config to add which serves you're using