]> git.rmz.io Git - dotfiles.git/log
dotfiles.git
15 months agonvim: update dap config
Samir Benmendil [Sat, 20 Jan 2024 17:01:17 +0000 (17:01 +0000)]
nvim: update dap config

15 months agonvim: only switch terminal to insert mode if it is focused
Samir Benmendil [Wed, 17 Jan 2024 23:09:49 +0000 (23:09 +0000)]
nvim: only switch terminal to insert mode if it is focused

A terminal may be opened in a floating window, but the insert command
would be applied to the current window.

This was an issue with neotest and nvim-dap, where in some instance it
would switch to insert mode.

See https://github.com/nvim-neotest/neotest/issues/2#issuecomment-1149532666

15 months agozsh: auto quote task notes
Samir Benmendil [Sun, 14 Jan 2024 23:45:15 +0000 (23:45 +0000)]
zsh: auto quote task notes

This was inspired from url-quote-magic.

15 months agozsh: add aliases for task
Samir Benmendil [Sun, 14 Jan 2024 23:44:32 +0000 (23:44 +0000)]
zsh: add aliases for task

15 months agotask: reserve two lines for my prompt
Samir Benmendil [Wed, 21 Feb 2024 00:38:59 +0000 (00:38 +0000)]
task: reserve two lines for my prompt

15 months agotask: do not ask for confirmation when deleting tasks
Samir Benmendil [Wed, 21 Feb 2024 00:38:35 +0000 (00:38 +0000)]
task: do not ask for confirmation when deleting tasks

15 months agotask: add wfh and home contexts
Samir Benmendil [Wed, 21 Feb 2024 00:37:14 +0000 (00:37 +0000)]
task: add wfh and home contexts

15 months agotask: update taskd settings
Samir Benmendil [Wed, 27 Dec 2023 10:16:51 +0000 (10:16 +0000)]
task: update taskd settings

15 months agotask: remove unused settings
Samir Benmendil [Wed, 27 Dec 2023 10:15:34 +0000 (10:15 +0000)]
task: remove unused settings

15 months agotask: set solarized-dark-256 colortheme
Samir Benmendil [Wed, 27 Dec 2023 09:39:04 +0000 (09:39 +0000)]
task: set solarized-dark-256 colortheme

15 months agotask: use env variables to set data and hooks location
Samir Benmendil [Wed, 27 Dec 2023 09:38:04 +0000 (09:38 +0000)]
task: use env variables to set data and hooks location

16 months agozsh: configure brew paths using brew --prefix
Samir Benmendil [Wed, 24 Jan 2024 15:34:05 +0000 (15:34 +0000)]
zsh: configure brew paths using brew --prefix

Only do this when brew is actually installed.

16 months agozsh: configure PATH before loading config files
Samir Benmendil [Wed, 24 Jan 2024 15:33:16 +0000 (15:33 +0000)]
zsh: configure PATH before loading config files

16 months agotmux: start counting panes and windows from 1
Samir Benmendil [Tue, 23 Jan 2024 14:09:03 +0000 (14:09 +0000)]
tmux: start counting panes and windows from 1

This makes the keybindings saner. No more using right-most 0 key to jump
to left-most window.

Also map 0 to go to window 10.

17 months agogit: inherit current upstream when creating a new branch
Samir Benmendil [Wed, 22 Mar 2023 09:37:26 +0000 (09:37 +0000)]
git: inherit current upstream when creating a new branch

This should work better with my workflow of pulling from origin master
by default to rebase.

17 months agozsh/git: complete gwa with remote branches noprefix
Samir Benmendil [Wed, 15 Mar 2023 14:16:15 +0000 (14:16 +0000)]
zsh/git: complete gwa with remote branches noprefix

Should probably add alternatives, i.e. local branches and tags

17 months agoMerge branch 'lazyvim'
Samir Benmendil [Sun, 17 Dec 2023 17:36:48 +0000 (17:36 +0000)]
Merge branch 'lazyvim'

17 months agonvim: add FPP copyright snippet
Samir Benmendil [Sun, 17 Dec 2023 17:32:37 +0000 (17:32 +0000)]
nvim: add FPP copyright snippet

17 months agovim: add snippet for spaceship operator
Samir Benmendil [Sun, 17 Dec 2023 17:32:02 +0000 (17:32 +0000)]
vim: add snippet for spaceship operator

17 months agonvim: telescope sort buffers by last first
Samir Benmendil [Sun, 17 Dec 2023 17:30:26 +0000 (17:30 +0000)]
nvim: telescope sort buffers by last first

17 months agonvim: make MiniSurround behave more like tpope/surround
Samir Benmendil [Sun, 17 Dec 2023 17:28:40 +0000 (17:28 +0000)]
nvim: make MiniSurround behave more like tpope/surround

17 months agonvim: hide diagnostic virtual_text by default
Samir Benmendil [Sun, 17 Dec 2023 17:26:56 +0000 (17:26 +0000)]
nvim: hide diagnostic virtual_text by default

17 months agonvim: configure dap (not tested well)
Samir Benmendil [Sun, 17 Dec 2023 17:21:08 +0000 (17:21 +0000)]
nvim: configure dap (not tested well)

17 months agonvim: update dashboard to include org agenda
Samir Benmendil [Sun, 17 Dec 2023 17:16:59 +0000 (17:16 +0000)]
nvim: update dashboard to include org agenda

17 months agonvim: configure mason
Samir Benmendil [Sun, 17 Dec 2023 17:16:12 +0000 (17:16 +0000)]
nvim: configure mason

17 months agonvim: configure lsp servers (pylsp, ruff_lsp, lua_ls)
Samir Benmendil [Sun, 17 Dec 2023 17:15:19 +0000 (17:15 +0000)]
nvim: configure lsp servers (pylsp, ruff_lsp, lua_ls)

17 months agonvim: define all(?) telescope keymaps ourselves
Samir Benmendil [Sun, 17 Dec 2023 17:09:51 +0000 (17:09 +0000)]
nvim: define all(?) telescope keymaps ourselves

It's otherwise quite hard to figure out what is used.

17 months agonvim: cmp configuration
Samir Benmendil [Sun, 17 Dec 2023 17:05:30 +0000 (17:05 +0000)]
nvim: cmp configuration

Not all of these might be related.

17 months agonvim: add orgmode plugin
Samir Benmendil [Sun, 17 Dec 2023 17:02:51 +0000 (17:02 +0000)]
nvim: add orgmode plugin

17 months agonvim: switch to onenord colorscheme
Samir Benmendil [Sun, 17 Dec 2023 16:57:47 +0000 (16:57 +0000)]
nvim: switch to onenord colorscheme

I don't rememeber exactly why I tried this, but it seems to look OK.

17 months agonvim: install nvim files
Samir Benmendil [Sun, 17 Dec 2023 16:49:03 +0000 (16:49 +0000)]
nvim: install nvim files

17 months agovim: add pandoc plugin
Samir Benmendil [Sun, 17 Dec 2023 17:18:58 +0000 (17:18 +0000)]
vim: add pandoc plugin

17 months agovim: add mapping to source whole file
Samir Benmendil [Sun, 17 Dec 2023 17:18:01 +0000 (17:18 +0000)]
vim: add mapping to source whole file

17 months agovim: sort netrw files
Samir Benmendil [Wed, 1 Nov 2023 09:23:11 +0000 (09:23 +0000)]
vim: sort netrw files

17 months agovim: disable netrw
Samir Benmendil [Wed, 1 Nov 2023 09:20:48 +0000 (09:20 +0000)]
vim: disable netrw

It currently breaks vim-fugitive, instead of opening Git status, a netrw
buffer opens.

17 months agonvim: disable netrwPlugin
Samir Benmendil [Tue, 31 Oct 2023 22:42:44 +0000 (22:42 +0000)]
nvim: disable netrwPlugin

This is likely done to avoid the problem with fugitive.

17 months agonvim/lazy: do not notify about plugin updates
Samir Benmendil [Tue, 31 Oct 2023 22:42:01 +0000 (22:42 +0000)]
nvim/lazy: do not notify about plugin updates

17 months agovim: create new undo block before capitalising previous word
Samir Benmendil [Sun, 20 Aug 2023 22:17:04 +0000 (23:17 +0100)]
vim: create new undo block before capitalising previous word

17 months agonvim/plugins: remove alpha-nvim
Samir Benmendil [Sun, 29 Oct 2023 16:18:33 +0000 (16:18 +0000)]
nvim/plugins: remove alpha-nvim

This was deprecated in LazyVim, and replaced with some other dashboard.

17 months agonvim: set autoformat false
Samir Benmendil [Sun, 29 Oct 2023 16:17:46 +0000 (16:17 +0000)]
nvim: set autoformat false

This seems to be a global setting now rather than a lazyvim thing. Maybe
it affects other things too.

17 months agonvim: update lazyvim util functions
Samir Benmendil [Sun, 29 Oct 2023 16:17:13 +0000 (16:17 +0000)]
nvim: update lazyvim util functions

17 months agovim: disable python-mode
Samir Benmendil [Tue, 18 Jul 2023 10:01:50 +0000 (11:01 +0100)]
vim: disable python-mode

I never understood it, and will use lsp for neovim.

17 months agonvim: do not override gr keymap
Samir Benmendil [Wed, 7 Jun 2023 11:46:43 +0000 (12:46 +0100)]
nvim: do not override gr keymap

It is used by replace with register and deeply ingrained in muscle
memory.

17 months agonvim: open init.lua file with <leader>en
Samir Benmendil [Sun, 21 May 2023 09:42:09 +0000 (10:42 +0100)]
nvim: open init.lua file with <leader>en

17 months agovim: use scriptease :Vvsplit to open config files
Samir Benmendil [Sun, 21 May 2023 09:35:01 +0000 (10:35 +0100)]
vim: use scriptease :Vvsplit to open config files

This works slightly differently as before in that it will not create a
new file if it didn't exist. But it will work for in nvim too.

17 months agovim: disable some unused plugins
Samir Benmendil [Thu, 4 May 2023 00:28:55 +0000 (01:28 +0100)]
vim: disable some unused plugins

Should probably delete them at some point, but not while I'm doing
widespreading changes.

17 months agovim: don't duplicate plugins
Samir Benmendil [Thu, 4 May 2023 00:25:41 +0000 (01:25 +0100)]
vim: don't duplicate plugins

Some existing vim plugins have a nvim replacement, let's not load them
in vimrc too. It can only cause issues.

17 months agovim: let loupe handle maps for very magic search
Samir Benmendil [Thu, 4 May 2023 00:06:29 +0000 (01:06 +0100)]
vim: let loupe handle maps for very magic search

I was overriding a much better implementation of always magic from the
loupe plugin with my own crude mappings.

17 months agonvim/coding: switch to comments.nvim
Samir Benmendil [Wed, 3 May 2023 23:26:11 +0000 (00:26 +0100)]
nvim/coding: switch to comments.nvim

It supports the block comments, mini.comment doesn't.

17 months agonvim: hardwrap man pages to 80
Samir Benmendil [Wed, 3 May 2023 20:13:58 +0000 (21:13 +0100)]
nvim: hardwrap man pages to 80

This is to be consistent with normal man, and it looks soo much better
than nvim's built in soft wrapping.

17 months agonvim/keymaps: even better indenting
Samir Benmendil [Wed, 3 May 2023 20:12:34 +0000 (21:12 +0100)]
nvim/keymaps: even better indenting

17 months agonvim/colorscheme: some config for nord.nvim
Samir Benmendil [Tue, 2 May 2023 23:50:19 +0000 (00:50 +0100)]
nvim/colorscheme: some config for nord.nvim

17 months agonvim/colorscheme: use catppuccin with nord overrides
Samir Benmendil [Tue, 2 May 2023 23:48:47 +0000 (00:48 +0100)]
nvim/colorscheme: use catppuccin with nord overrides

Maybe this is the better color. Although still quite colorful.

17 months agonvim/colorscheme: default to onenord
Samir Benmendil [Tue, 2 May 2023 22:18:41 +0000 (23:18 +0100)]
nvim/colorscheme: default to onenord

Seems nord is a little broken when indent-blankline interracts with
diff.

17 months agonvim: switch to nord colorscheme
Samir Benmendil [Tue, 2 May 2023 09:22:03 +0000 (10:22 +0100)]
nvim: switch to nord colorscheme

17 months agozsh: switch to nvim as default editor
Samir Benmendil [Tue, 2 May 2023 10:33:01 +0000 (11:33 +0100)]
zsh: switch to nvim as default editor

17 months agovim: don't reset shortmess and don't give file info
Samir Benmendil [Tue, 2 May 2023 10:22:44 +0000 (11:22 +0100)]
vim: don't reset shortmess and don't give file info

17 months agovim: make help and man ftplugins consistent
Samir Benmendil [Tue, 2 May 2023 10:20:56 +0000 (11:20 +0100)]
vim: make help and man ftplugins consistent

17 months agovim: only set ycm bindings if ycm is loaded
Samir Benmendil [Tue, 2 May 2023 10:19:44 +0000 (11:19 +0100)]
vim: only set ycm bindings if ycm is loaded

17 months agovim/cpp: set ycm bindings in c.vim only, cpp loads that file too
Samir Benmendil [Tue, 2 May 2023 10:18:38 +0000 (11:18 +0100)]
vim/cpp: set ycm bindings in c.vim only, cpp loads that file too

17 months agonvim/ui: disable Noice
Samir Benmendil [Tue, 2 May 2023 09:39:27 +0000 (10:39 +0100)]
nvim/ui: disable Noice

It messes too much with existing notifications.

17 months agonvim/ui: send long messages to split
Samir Benmendil [Tue, 2 May 2023 09:38:46 +0000 (10:38 +0100)]
nvim/ui: send long messages to split

I don't think this is actually working. I don't care too much, see next
commit.

17 months agonvim/editor: add snippet telescope plugin
Samir Benmendil [Tue, 2 May 2023 09:35:11 +0000 (10:35 +0100)]
nvim/editor: add snippet telescope plugin

17 months agonvim/editor: disable <leader>ff for telescope
Samir Benmendil [Tue, 2 May 2023 09:34:02 +0000 (10:34 +0100)]
nvim/editor: disable <leader>ff for telescope

It's already muscle memory mapped to fswitch.

17 months agonvim/coding: use snippets from vim-snippets
Samir Benmendil [Tue, 2 May 2023 09:33:00 +0000 (10:33 +0100)]
nvim/coding: use snippets from vim-snippets

17 months agonvim/editor: load neo-tree eagerly
Samir Benmendil [Tue, 18 Apr 2023 00:21:04 +0000 (01:21 +0100)]
nvim/editor: load neo-tree eagerly

If loaded lazily it won't open upon editing a directory.

https://github.com/LazyVim/LazyVim/issues/572

17 months agonvim/ui: do not grep with g on dashboard
Samir Benmendil [Tue, 18 Apr 2023 00:19:47 +0000 (01:19 +0100)]
nvim/ui: do not grep with g on dashboard

It's really surprising.

17 months agonvim/options: disable default LazyVim options
Samir Benmendil [Tue, 18 Apr 2023 00:14:01 +0000 (01:14 +0100)]
nvim/options: disable default LazyVim options

Thanks to @folke for the workaround.
https://github.com/LazyVim/LazyVim/issues/566

17 months agovim: put all nvim disabled plugins together
Samir Benmendil [Thu, 13 Apr 2023 16:53:49 +0000 (17:53 +0100)]
vim: put all nvim disabled plugins together

17 months agovim: add ansiesc plugin
Samir Benmendil [Thu, 13 Apr 2023 15:53:35 +0000 (16:53 +0100)]
vim: add ansiesc plugin

17 months agovim: add vim-peekaboo plugin
Samir Benmendil [Thu, 13 Apr 2023 15:53:14 +0000 (16:53 +0100)]
vim: add vim-peekaboo plugin

17 months agovim: delete vim-orgmode
Samir Benmendil [Thu, 13 Apr 2023 15:52:55 +0000 (16:52 +0100)]
vim: delete vim-orgmode

17 months agovim: replace yankring with vim-yoink
Samir Benmendil [Thu, 13 Apr 2023 15:50:21 +0000 (16:50 +0100)]
vim: replace yankring with vim-yoink

This may need a little more configuration, but there's probably a nvim
replacement for it.

17 months agonvim: replace vim-surround with mini.surround
Samir Benmendil [Thu, 13 Apr 2023 15:46:54 +0000 (16:46 +0100)]
nvim: replace vim-surround with mini.surround

17 months agonvim: replace delimitmate with mini.pairs
Samir Benmendil [Thu, 13 Apr 2023 15:18:40 +0000 (16:18 +0100)]
nvim: replace delimitmate with mini.pairs

17 months agonvim/ui: delete buffer instead of quit with q in dashboard
Samir Benmendil [Thu, 13 Apr 2023 02:05:44 +0000 (03:05 +0100)]
nvim/ui: delete buffer instead of quit with q in dashboard

17 months agonvim/ui: import lazyvim's alpha-nvim config
Samir Benmendil [Thu, 13 Apr 2023 02:02:55 +0000 (03:02 +0100)]
nvim/ui: import lazyvim's alpha-nvim config

I very much want to remove the q button, it's dangerous.

17 months agonvim/ui: actually... don't show bufferline on single buffer
Samir Benmendil [Thu, 13 Apr 2023 01:36:01 +0000 (02:36 +0100)]
nvim/ui: actually... don't show bufferline on single buffer

It seems a lot nicer with a clean minimal view, especially on the
alpha-nvim dashboard.

17 months agonvim: configure neo-tree
Samir Benmendil [Wed, 12 Apr 2023 23:18:32 +0000 (00:18 +0100)]
nvim: configure neo-tree

17 months agovim: remove <leader>f mapping for first spell suggestion
Samir Benmendil [Wed, 12 Apr 2023 22:23:09 +0000 (23:23 +0100)]
vim: remove <leader>f mapping for first spell suggestion

I don't use it. Been using z] instead. Although I'm always struggling to
remember that one, is it z] or ]z or ]s or something else? I never know.

17 months agovim: only resize git status window if it was opened
Samir Benmendil [Wed, 12 Apr 2023 22:22:35 +0000 (23:22 +0100)]
vim: only resize git status window if it was opened

17 months agovim: don't set lazyredraw
Samir Benmendil [Wed, 12 Apr 2023 22:19:48 +0000 (23:19 +0100)]
vim: don't set lazyredraw

I believe it was speeding up some macro playback, but noice.nvim doesn't
like it. It is recommended to be left off and I think it may have been
causing redrawing issues in some cases.

17 months agonvim: set timeoutlen to 1s like default
Samir Benmendil [Wed, 12 Apr 2023 22:10:26 +0000 (23:10 +0100)]
nvim: set timeoutlen to 1s like default

My slow brain got used to have this extra little time to think about
what key to hit next.

Maybe 1s is a little long, and I should shorten it a bit, but 300ms was
too short.

17 months agonvim/coding: add annotations to nvim-cmp config
Samir Benmendil [Wed, 12 Apr 2023 21:15:52 +0000 (22:15 +0100)]
nvim/coding: add annotations to nvim-cmp config

17 months agonvim/coding: don't select first entry on completion
Samir Benmendil [Wed, 12 Apr 2023 20:54:14 +0000 (21:54 +0100)]
nvim/coding: don't select first entry on completion

This allows tab to select and more importantly insert the first
completion.

17 months agonvim/coding: setup Supertab
Samir Benmendil [Wed, 12 Apr 2023 16:02:42 +0000 (17:02 +0100)]
nvim/coding: setup Supertab

Pretty much copied from [lazyvim#supertab]. It doesn't exactly work as I
want though. It seems that <tab> selects the second entry rather than
completes the first first.

[lazyvim#supertab]: https://www.lazyvim.org/configuration/recipes#supertab

17 months agonvim/ui: set animation fuction for indentscope
Samir Benmendil [Wed, 12 Apr 2023 14:53:46 +0000 (15:53 +0100)]
nvim/ui: set animation fuction for indentscope

It's not very different from the default, maybe a little faster. But
provides a reminder for configuration points later in time.

17 months agonvim/ui: add blank plugin specs for all plugins
Samir Benmendil [Wed, 12 Apr 2023 14:50:08 +0000 (15:50 +0100)]
nvim/ui: add blank plugin specs for all plugins

This provides an easy way to find relevant plugins that have been
loaded.

17 months agovim: update togglelist to also work in nvim
Samir Benmendil [Wed, 12 Apr 2023 13:44:43 +0000 (14:44 +0100)]
vim: update togglelist to also work in nvim

I think the Quickfix window has been renamed which caused this to stop
working. The approach of using [cl]window seems better.

17 months agonvim: provide type annotations for LazyPluginSpecs
Samir Benmendil [Wed, 12 Apr 2023 12:32:42 +0000 (13:32 +0100)]
nvim: provide type annotations for LazyPluginSpecs

17 months agonvim/ui: always show bufferline
Samir Benmendil [Wed, 12 Apr 2023 11:50:20 +0000 (12:50 +0100)]
nvim/ui: always show bufferline

17 months agonvim/ui: configure noice.nvim
Samir Benmendil [Tue, 11 Apr 2023 16:50:51 +0000 (17:50 +0100)]
nvim/ui: configure noice.nvim

* send simple vim messages to mini view
* use classic command line
* add border to lsp docs

17 months agovim: do not Plug UltiSnips in nvim
Samir Benmendil [Tue, 11 Apr 2023 15:46:02 +0000 (16:46 +0100)]
vim: do not Plug UltiSnips in nvim

There's LuaSnips.

17 months agovim: do not Plug youcompleteme in nvim
Samir Benmendil [Tue, 11 Apr 2023 15:36:56 +0000 (16:36 +0100)]
vim: do not Plug youcompleteme in nvim

It comes with nvim-cmp instead. This still needs to be configured, but I
think those two are interfering at the moment.

17 months agonvim: disable LazyVim's keymaps and import some of them
Samir Benmendil [Tue, 11 Apr 2023 14:50:05 +0000 (15:50 +0100)]
nvim: disable LazyVim's keymaps and import some of them

17 months agovim: import some options from nvim LazyVim
Samir Benmendil [Tue, 11 Apr 2023 14:51:33 +0000 (15:51 +0100)]
vim: import some options from nvim LazyVim

17 months agonvim: reset options similar to vimrc
Samir Benmendil [Tue, 11 Apr 2023 13:20:27 +0000 (14:20 +0100)]
nvim: reset options similar to vimrc

I wanted to disable the options that LazyVim sets, but there seems to be
a bug that prevents this at the moment. So reset the various settings I
have in my vimrc again in `config/options.lua`.

See https://github.com/LazyVim/LazyVim/issues/566

17 months agonvim: disable interfering mappings lazyvim sets for telescope
Samir Benmendil [Tue, 11 Apr 2023 00:09:37 +0000 (01:09 +0100)]
nvim: disable interfering mappings lazyvim sets for telescope

Way too used to <space><space> toggling folds.

Also <leader>gs <leader>gc are for fugitive stuff.

17 months agonvim: import autocmds from LazyVim
Samir Benmendil [Mon, 10 Apr 2023 23:09:51 +0000 (00:09 +0100)]
nvim: import autocmds from LazyVim

- highlight on yank
- close some buffers with q only

17 months agovim: resize splits in all tabs when resizing vim
Samir Benmendil [Mon, 10 Apr 2023 22:47:16 +0000 (23:47 +0100)]
vim: resize splits in all tabs when resizing vim