26
13
submitted 2 years ago by [email protected] to c/[email protected]

I am new lemmy user and I wanted to whether there are different nvim communities or same ones like,

  1. https://lemmy.world/c/[email protected]
  2. https://programming.dev/c/neovim
27
15
submitted 2 years ago by [email protected] to c/[email protected]

cross-posted from: https://discuss.tchncs.de/post/3664526

The native Inlay Hints feature is enabled in the nightly version of Neovim. The feature will be part of the v0.10 release once it is available.

28
7
submitted 2 years ago by [email protected] to c/[email protected]
29
41
submitted 2 years ago by [email protected] to c/[email protected]

Neovim v0.9.2 is now available

This is the first Neovim release since Bram Moolenaar passed away and the archival/deprecation of both null-ls.nvim and packer.nvim.

Is anyone running into any issues with this release (particularly if you use null-ls or packer)? How are the Neovim distros (eg - NvChad, AstroNvim, LazyVim, LunarVim, etc.) performing after the update?

https://github.com/neovim/neovim/releases/tag/v0.9.2

#nvim #Neovim #NvChad #AstroVim #LazyVim #LunarVim

@neovim

30
5
submitted 2 years ago by [email protected] to c/[email protected]

I'm trying to use LazyVim https://www.lazyvim.org/ to create and edit ansible playbooks and roles, but for the live of my I don't understand how to enable ansible-language-server.

The installation of lazyvim went flawless and after starting nvim I used the command :Mason to install:

  • ansible-language-server
  • ansible-lint
  • yaml-language-server
  • yamllint

but still, when opening a task or playbook file in nvim, i don't get any of that cool features like snippets and automatic syntax checking like I hoped.

Can anyone give me a hint how to enable those? Mason says the plugins are installed, is it only a problem of nvim not recognizing the filetype as ansible? Do I need to enable some plugins via .config/nvim/lua/plugins? I'm out of my element here, help would be much appreciated.

31
13
submitted 2 years ago by [email protected] to c/[email protected]

After having the same config for ten years or so I’m looking to upgrade my (n)vim config. I changed over to init.lua, added lsp and treesitter and it’s awesome. Real big improvement!

I’m still looking for a replacement for my file explorer. I’m using vimfiler/unite.vim at the moment. I like it because it confirms to the vinegar/oil idea.

So I’m looking for a file explorer plugin which opens full window in a buffer, preferably written in lua with the possibility for a tree view and a per-window state so I can toggle it on and off in a window without having to navigate to the same place again. I haven’t found anything matching those criteria at the moment.

For example nvim-tree doesn’t allow for a state per window.

I tried oil.nvim but that doesn’t support a tree view.

Does anyone know of a plugin that satisfies my requirement? If nothing exists I’ll keep using vimfiler but I’m curious to see if anything else exists that implement these features.

32
29
submitted 2 years ago by [email protected] to c/[email protected]
33
17
submitted 2 years ago by [email protected] to c/[email protected]

Seems like TWIN's site (https://this-week-in-neovim.org/) is down - the dns doesn't resolve.

IIRC the author was moving away from neovim and was having some maintainence issues, but I'm curious if anyone else has more info ^.^?

34
99
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
35
15
Neovim 💚 Fennel! (git.minimally.online)
submitted 2 years ago* (last edited 1 year ago) by [email protected] to c/[email protected]

cross-posted from: https://board.minimally.online/post/20318

I just recently discovered TIC-80 and then Fennel. I was already liking Lua but now I'm hooked on LISP!! Here's my Neovim config using lazy.nvim, all written in fennel thanks to hotpot

It's not marketed like one of those "template Neovim config repos" but it could be one of those if your heart desired. I based it loosely off kickstart.nvim.

36
10
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

clangd-extensions.nvim (https://git.sr.ht/~p00f/clangd_extensions.nvim) now has go-to-defintion in the type hierarchy window

@VimLinks @neovim

37
6
submitted 2 years ago by [email protected] to c/[email protected]

I'm using Nightfox theme and treesitter parser for syntax highlight.

My code blocks in markdown files get displayed in italic, which is quite unreadable…

How could I configure nvim to displayed them as normal characters?

38
42
This week in Neovim (dotfyle.com)
submitted 2 years ago by [email protected] to c/[email protected]

Just sharing this on Lemmy as well for all you amazing neovim users. :)

39
8
This week in neovim (www.reddit.com)
submitted 2 years ago by [email protected] to c/[email protected]

Just sharing this on Lemmy as well.

40
1
submitted 2 years ago by [email protected] to c/[email protected]

So, I've been using nvim on macos for almost two months and didn't have issues, but after the last update I'm seeing this:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: ...ocal/Cellar/neovim/0.9.1/share/nvim/runtime/filetype.lua:21: Error executing lua: ...ocal/Cellar/neovim/0.9.1/shar
e/nvim/runtime/filetype.lua:22: BufReadPost Autocommands for "*"..FileType Autocommands for "*": Vim(append):Error executing lua callback: vim/load
er.lua:0: EACCES: permission denied: /Users/clmbmb/.cache/nvim/luac/%Users%clmbmb%.local%share%nvim%lazy%null-ls.nvim%lua%null-ls%rpc.luac
...

This happens (for now) only when trying to open .lua files.

From what I gather there's something related to some filesystem security flags in macos. I'm new to macos, so I have no idea what happens.

Any hints/solutions to this?

41
11
submitted 2 years ago by [email protected] to c/[email protected]

Is there a way to avoid opening a nested neovim instance inside a terminal buffer and instead open it as a new buffer inside the already running instance? I'm thinking something like what Fugitive does, but more general and that works for any shell commands.

42
3
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Hi everyone long time vim/neovim user, currently for my latex I have in ~/.config/nvim/after/ftplugin.lua the following line:

vim.opt_local.makeprg="pdflatex -output-format pdf -output-directory /tmp %"

I am now working in a latex project that has a makefile, is it possible to create something in the lines of:

if ! makefile_exists then
  vim.opt_local.makeprg="pdflatex -output-format pdf -output-directory /tmp %"
end

Ended up with this and it seems to work fine:

~/.config/nvim/after/ftplugin/tex.lua

local makefile_exists = vim.fs.find('makefile', {
  upward = true,
  stop = vim.uv.os_homedir(),
  path = vim.fs.dirname(vim.api.nvim_buf_get_name(0)),
})

if #makefile_exists == 0 then
	vim.opt_local.makeprg = "pdflatex -output-format pdf -output-directory /tmp %"
end
43
3
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

I'm using NvChad and in ~/.config/nvim/lua/core/mappings.lua there is a keybinding for LSP code action:

  ["<leader>ca"] = {
    function()
      vim.lsp.buf.code_action()
      -- TODO: write buffer to file
    end,
    "LSP code action",
},

this keybinding applies the code action, but does not write to file. I want to write changes to file as soon as I've applied the code action.

How can I use the documentation at https://neovim.io/doc/ to find the correct function? I've tried looking for a write() function but I could not find anything I can call from lua.

44
19
TWiN is back (dotfyle.com)
submitted 2 years ago by [email protected] to c/[email protected]

We got TWiN back! No RSS for now but good to see someone stepping in and keep to project alive.

45
24
submitted 2 years ago by [email protected] to c/[email protected]

out of curiousity, since I feel like most of the time I touch any vi derivative it’s because I need a text editor on a command line, not because I really really wanna use it

46
38
submitted 2 years ago by [email protected] to c/[email protected]
47
11
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

So, I've been a Neovim user for a few years now. I started as most of you (I assume) with vim, and just kept on using and expanding that config file over the years.

I only recently realized there's quite a split between the Vim and Neovim plugins and that the Neovim community is pushing Lua as a better development platform. From what I can see, some users are switching their configs from Vimscript to Lua. To be honest all I know about Lua is that it means moon in Portuguese...

Should I too? What would the advantages be? What would the disadvantages be? For those who did switch, why did you switch and what was your experience? For those who didn't why did you not?

p.s. review (roast) my dotfiles

edit: thank you all for your input! I will consider slowly switching to lua by modifying only some parts of the config as some of you suggested.

48
7
submitted 2 years ago by [email protected] to c/[email protected]

I’ve tried all the surround plugins but what I really want is just the simple flow of: make a selection -> press “, ( etc to surround. Is that not possible with vim?

49
6
submitted 2 years ago by [email protected] to c/[email protected]

I saw that null-ls.nvim just added textidote support. Textidote seems to be a spelling/grammar checker that wraps LanguageTool, just like ltex-ls. Does anyone know how they compare?

50
4
submitted 2 years ago by [email protected] to c/[email protected]

I am rewriting my ancient vim config into Lua with nvim. I am using Mason to grab lsp language servers and for the most part it works great!

I have this in my remaps so I can <leader>f to format the current file (still need to figure out formatting on save too, but I can't for the life of me get Markdown formatting working.

vim.keymap.set("n", "<leader>f", function()
	vim.lsp.buf.format()
end)

I have markdownlint, marksman, prettier, and prettierd all installed wth Mason (though I haven't written any keymaps or configs for them). Any idea how I can format my Markdown? I write in it all day every day so it's gonna help a ton if I can get it working. Secondly any ideas how I can do the same mapping for the formatting on save? Still pretty new to Lua.

view more: ‹ prev next ›

Neovim

1856 readers
1 users here now

Neovim is a modal text editor forked off of Vim in 2014. Being modal means that you do not simply type text on screen, but the behavior and functionality of the editor changes entirely depending on the mode.

The most common and most used mode, the "normal mode" for Neovim is to essentially turn your keyboard in to hotkeys with which you can navigate and manipulate text. Several modes exist, but two other most common ones are "insert mode" where you type in text directly as if it was a traditional text editor, and "visual mode" where you select text.

Neovim seeks to enable further community participation in its development and to make drastic changes without turning it in to something that is "not Vim". Neovim also seeks to enable embedding the editor within GUI applications.

The Neovim logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 4 years ago
MODERATORS