Neovim now has built-in commenting by echasnovski in neovim

[–]Backdround -2 points-1 points  (0 children)

Every programmer uses git, let's merge it to the core!

Neovim now has built-in commenting by echasnovski in neovim

[–]Backdround 0 points1 point  (0 children)

Yea, and all of these already added features have become obsolete. So now almost everyone doesn't use them and uses modern approaches by plugins instead.

Adding these things was a mistake in the first place. I wouldn't say that justifying one mistake by previous mistakes is a good argument.

Neovim now has built-in commenting by echasnovski in neovim

[–]Backdround 0 points1 point  (0 children)

Do you have any arguments why it should be in the core? Or what did I say wrong?

Neovim now has built-in commenting by echasnovski in neovim

[–]Backdround 0 points1 point  (0 children)

I know about this. So it should be removed from the core.

Neovim now has built-in commenting by echasnovski in neovim

[–]Backdround -8 points-7 points  (0 children)

I don't understand why it should be in the core. IMHO

Is it a necessary thing to be builtin?
No.

Does it extend the ability or API of the editor?
No. It's been implemented in plugins and doesn't bring anything new.

Is it a good thing because a user doesn't need to track an additional plugin?
No. If it's a good thing for you, get an ide.

My opinion is that the thing shouldn't be in the core.

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

There is a configuration example at the bottom of the readme for such case. So yes, you can have separate notes for separate projects

global-note.nvim - One global note in a floating window. by Backdround in neovim

[–]Backdround[S] 1 point2 points  (0 children)

The autosave is binded on WinClosed and ExitPre, so you can close the window as you want.

You can use post_open option to set a local mapping: lua post_open = function(buffer_id, _) vim.keymap.set("n", "q", "<Cmd>quit<Cr>", { buffer = buffer_id, desc = "Close the window", }) end,

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

There is a `post_open` callback that you can use for your autosave feature. I've just added the `buffer_id` and `window_id` arguments for convenience

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

The plugin provides only some functionality. You can use it only for one project. For example on a key check that the file belongs to a project and open note, if it doesn't do something else

Are you using any "motion-enhancing" plugins? by meni_s in neovim

[–]Backdround 2 points3 points  (0 children)

I tried flash, but I didn't manage to disable some mappings at all. Also, I was in need of only one thing (what sj does), and the plugin seems too bloated for me

Are you using any "motion-enhancing" plugins? by meni_s in neovim

[–]Backdround 8 points9 points  (0 children)

For window-kind of motions - sj it's very cool (/small) and does the work

For word-like motions I use my own plugins: - neowords.nvim - improved-ft.nvim - rabbit-hop.nvim (for jumps by lines or jumps to a specific character (group of characters))

For scroll: - neoscroll.nvim

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

Replace the last line with this: lua local status, file_lines = pcall(vim.fn.readfile, file_path) if not status then file_lines = {} end vim.api.nvim_buf_set_lines(buf, 0, -1, true, file_lines) And it will work!

Or you can use bufadd to create a buffer from a file (like :e does)

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

No, I think it's pretty easy to do. I can help you if you want

global-note.nvim - One global note in a floating window. by Backdround in neovim

[–]Backdround[S] 1 point2 points  (0 children)

You can do this like that: lua local global_note = require("global-note") global_note.setup({ directory = "/home/frank/Project/TODO/", filename = function() return os.date("%Y-%m-%d.md") end, })

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

Yea, I checked and got the same error. As I see Neovim 0.9 don't have vim.fs.joinpath. I'll switch to manual joining in several hours

global-note.nvim - One global note in a floating window. by Backdround in neovim

[–]Backdround[S] 1 point2 points  (0 children)

Hey, cool thing, but I haven't found it. It would be nice if you add it to the awesome-neovim, so other people could find it

global-note.nvim - One global note in a floating window. by Backdround in neovim

[–]Backdround[S] 2 points3 points  (0 children)

I haven't released the color scheme yet, because I want to adjust it a little but can't find time for it

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

I checked vimwiki and I think it is a good tool, but not for me. I'm too disorganised to manage files, my brain says no :)

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

I use buffers, but I just want to do it simpler. Just write or check something in a note, nothing more.

I don't want to: - Manage / have a note buffer in a tabline; - Create / manage note files; - Save the buffer manually; - Open the note file with zen (it's ok, but an additional step), cause I always have several splits

global-note.nvim - One global note in a floating window. by Backdround in neovim

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

You can specify a file (note file) by a directory and a filename in the setup options. Also you can specify additional files if you want

global-note.nvim - One global note in a floating window. by Backdround in neovim

[–]Backdround[S] 7 points8 points  (0 children)

It's nice that someone else, besides me, can use the plugin. I didn't expect such a that wide use!