Commit graph

79 commits

Author SHA1 Message Date
3d68f6fb65 Add .editorconfig 2024-07-17 22:48:10 +02:00
13fa12c5c3 Ensure files end with a new line 2024-07-14 23:51:56 +02:00
76ecc9b533 nvim: disable conceal for markdown files 2024-07-12 16:35:25 +02:00
5274f0a7f2 nvim: use 2 spaces for file type cmake 2024-07-11 12:25:31 +02:00
5a957f6de3 nvim: Add PlantUML syntax 2024-07-11 12:24:25 +02:00
786b28fba5 vim: Apply gitcommit options to NeogitCommitMessage buffers 2024-02-24 21:08:01 +01:00
1108538484 vim: add keymaps to change quote style in lua files 2024-02-18 14:25:15 +01:00
e34671ddaa vim: better structure for utils 2024-02-18 02:31:02 +01:00
237d67f82b vim: move code from lua ftplugin to utils
The ftplugin is executed via the FileType event every time a lua file is
opened, so better to have just the keymaps set there.
2024-02-17 15:16:43 +01:00
7817b927ee vim: move lua gf handler from autocmd to ftplugin 2024-02-17 13:23:49 +01:00
6724d45051 vim: enable conceal for markdown files 2024-02-15 22:14:02 +01:00
427baf06d1 vim: set a reasonable comment string for C++ files 2024-02-15 22:13:45 +01:00
d5e870758d vim: set commentstring for C# files 2023-09-01 08:51:48 +02:00
94a09924be vim: use <localleader> for after/ftplugin mappings 2023-08-07 22:49:09 +02:00
a00e28b031 vim: migrate plugin configuration to lazy.nvim 2023-07-08 21:55:52 +02:00
c41b60a78b vim: rename treesitter parser 'help' -> 'vimdoc' 2023-07-05 21:52:26 +02:00
a7526cc341 nvim: grep for selected text with Telescope 2023-05-05 18:10:42 +02:00
9c536cf2ae nvim: add mapping to find all files with Telescope 2023-05-05 14:35:37 +02:00
9326034ef9 nvim: make nvim-tree on_attach keymaps local to the tree buffer 2023-03-01 11:55:03 +01:00
2cbdf5607a nvim: nvim-tree deprecations: use api and on_attach 2023-02-27 19:01:16 +01:00
12217bc70b nvim: visual tweaks to Telescope 2023-01-31 10:54:08 +01:00
4c51020bac nvim: improve Telescope man_pages fix for macOS and FreeBSD
This commit makes sure that the fix from 681dd28 is only applied when
running on macOS Ventura (13.0) and upwards (i.e. Darwin >= 22.0) or
FreeBSD.
2023-01-29 20:42:28 +01:00
4b1588f253 nvim: customize most Telescope pickers in the setup() function
This is just a refactor to make the code a bit nicer to read.
2023-01-29 15:15:31 +01:00
681dd280cb nvim: fix :Telescope man_pages in macOS Ventura
See: https://github.com/nvim-telescope/telescope.nvim/issues/2326#issuecomment-1407502328
2023-01-28 23:37:39 +01:00
82df3ed13e nvim: remove 'cursor' layout from cycle in Telescope 2023-01-28 23:37:13 +01:00
cf5d50e324 nvim: remove conflicting keymap <c-h> in Telescope file_browser
This key combination is used for toggling hidden files by default, which
is more useful than what I was doing.
2023-01-28 23:35:42 +01:00
c728f7b085 vim: tweak how lualine displays the mode 2022-12-16 20:26:38 +01:00
576ded4646 vim: change keymap to start treesitter incremental selection
The previous '<CR>' mapping was causing too many false starts of the
incremental selection, especially because of the way I have my keyboard
configured, where the Ctrl and Enter keys are "shared".
2022-12-16 08:51:23 +01:00
3e61fb902a vim: initialize colorizer only if termguicolors is set
This additional check is needed because when nvim is started as `nvim -u
NORC`, my configuration that sets `termguicolors` is not called but
colorizer IS installed and requires `termguicolors` to be set. If it is
not set, the setup() function prints an error.
2022-12-13 12:54:26 +01:00
b824717c68 vim: prevent errors on startup when plugins are not installed 2022-12-13 12:53:37 +01:00
f3a493d6f6 vim: more tweaks to lualine
1. Show the filename in italics if file is modified.
2. Put the plus sign on the right of the filename and make it stand out.
3. The symbols I was using were not rendering well on macOS and don't
   really have the time to debug this now. Just use simpler line.
2022-10-25 20:55:14 +02:00
07d45f7a8b vim: solve telescope keymap conflict 2022-10-20 12:19:56 +02:00
cb498ade4b vim: lualine: add file status, remove diff 2022-10-20 12:19:18 +02:00
d990886087 vim: small tweak to status line 2022-10-14 15:54:19 +02:00
269a54e865 vim: fix telescope mapping
It turns out that `<c-i>` collides with `<Tab>`.
2022-10-14 10:31:45 +02:00
77b7b4f3b7 vim: improve nvim-tree behavior and add mappings 2022-10-14 09:47:19 +02:00
ef0a5effab vim: refactor telescope configuration 2022-10-13 16:12:34 +02:00
e49fa55b22 vim: use a proper notification if file_browser is not installed 2022-10-13 15:49:28 +02:00
856d8876e4 vim: improvements to telescope mappings 2022-10-13 14:42:24 +02:00
507912ab3f vim: prevent crash on init if telescope file_browser is not installed 2022-10-13 12:57:55 +02:00
facde2d550 vim: add telescope file browser 2022-10-12 23:05:11 +02:00
6cf3c04ae4 vim: add 'colorizer' plugin 2022-10-12 22:41:17 +02:00
6f4dcf607a vim: open fugitive in new tab 2022-10-12 22:30:33 +02:00
c40996d2c7 vim: remove plugin 'elzr/vim-json' 2022-10-12 13:30:09 +02:00
69fd9edcb8 vim: tweak mappings for nvim-tree 2022-10-12 12:49:49 +02:00
f5f0a0cb4b vim: prevent errors if colorscheme is not yet installed 2022-10-11 22:25:06 +02:00
4b58f5ec3d vim: re-enable markdown highlighting via treesitter 2022-10-11 19:34:42 +02:00
2d62bd0b6e vim: make lualine configuration independent of fs.util 2022-10-11 14:32:58 +02:00
c764d61737 vim: disable treesitter highlighting for markdown files 2022-10-11 13:56:37 +02:00
c580fb820a vim: add treesitter query parser 2022-10-11 13:52:55 +02:00