Compare commits

..

13 Commits

Author SHA1 Message Date
iGor milhit 05bace5665
spell: add two words in the French dictionary
Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:25 +02:00
iGor milhit e5298b6bb3
completion: support non ascii with cmp-buffer
- Supports non ASCII chars in text completion (cmp-buffer).
- Restore the luasnip configuration inside the nvim-cmp configuration,
  as it is indeed closely related. I didn't understood it in the first
  place.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:25 +02:00
iGor milhit 43841e7a5b
snippets: add HTML and commit snippets
- Creates a new file for custom HTML snippets.
- Creates three snippets to be used when updating the clinical medicine
  library portal with bibliographic descriptions:
  - A main HTML structure with CSS styling.
  - An item with some bibliographic description examples.
  - A list item with a link to an ebook online.
- Creates a snippet for commit message to save working hours.
- Creates snippet for incremental note commits.
- Creates snippet for AoU stats commits.
- Removes redundant markdown snippets for the date.
- Improves the markdown snippet for incremental note entry.
- Improves the LuaSnip configuration and moves it outside the nvim-cmp
  configuration.
- Increments the French personal dictionary.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:25 +02:00
iGor milhit 5433a5538d
json: add configuration for JSON
- Adds the `json` parser to the treesitter languages for linting
  purpose.
- Adds `jsonls` as language server provider for JSON.
- Creates the `after/ftplugin` folders.
- Sets specific settings for JSON for folding method.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:24 +02:00
iGor milhit 5167c5c6be
snippets: fix the inc front matter
- Fixes the front matter for the incremental notes files, removing
  unnecessary metadata and adding the id.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:24 +02:00
iGor milhit 4d92ad9863
telescope: add a plugin to use Ag
- Adds a plugin to use Ag The Silversearcher with Telescope.
- Improves some comments.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:24 +02:00
iGor milhit af95122e63
config: set changes preview
- Sets the `inccommand` option to `nosplit` to preview the changes
  before accepting them with the substitute command.
- Removes unused configuration.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:24 +02:00
iGor milhit 8543c689b0
mkdnflow: adapt follow link behavior
- Sets the `perspective.priority` to `current` to get the follow link
  feature behaves as I need, relative to the current buffer.
- Fixes the new file template to avoid a blank column at the begining
  (results in an invalid YAML syntax).

Co-Authored-by: iGor milhit <igor.milhit@unige.ch>
2023-08-23 08:43:24 +02:00
iGor milhit 8f5d37f313
plugin: install, configure Grammalecte
- Grammalecte is a French language checker. This plugin requires the
  python package `Grammalecte` that provide `grammalecte-cli` and
  `grammalecte-server`.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:23 +02:00
iGor milhit ccf1fe4030
completion: set buffer completion to 4 chars
- Set the keyword_length to 4 in order to lighten the buffer completion.
- Add a markdown snippet to add a tags line in my incremental notes.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:23 +02:00
iGor milhit a9fc78d5b6
plugin: ensure to use the legacy tag for fidget
- Ensures to use the legacy tag for the fidget plugin, as it will be
  under active development and rewritting.

Co-Authored-by: iGor milhit <igor.milhit@unige.ch>
2023-08-23 08:43:23 +02:00
iGor milhit 4604bf5925
completion: add completion for text in the buffer
- Adds completion capabilities for text (in the current buffer), with
  the help of `cmp-buffer`).
- Expand the French dictionnary.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2023-08-23 08:43:23 +02:00
iGor milhit c2fdfafae4
plugins: improve md preview, install ToggleTerm
- Fixes the markdown preview node package installation.
- Removes the markdown preview theme configuration.
- Adds the ToggleTerm plugin that allows to improve the managment of
  terminal buffers and configures it.

Co-Authored-by: iGor milhit <igor.milhit@unige.ch>
2023-08-23 08:41:22 +02:00
4 changed files with 3 additions and 5 deletions

2
.gitignore vendored
View File

@ -6,7 +6,7 @@ autoload
.netrwhist
# spell *.spl
spell/
spell/fr.utf-8.add.spl
tags
test.sh

View File

@ -568,10 +568,6 @@ require("luasnip.loaders.from_lua").load({paths = "~/.config/nvim/my_snippets/"}
-- https://www.ejmastnak.com/tutorials/vim-latex/luasnip/#refreshing-snippets-from-a-separate-vim-instance
vim.keymap.set('n', '<Leader>L', '<Cmd>lua require("luasnip.loaders.from_lua").load({paths = "~/.config/nvim/my_snippets/"})<CR>', { desc = 'Reload [L]uaSnippets' })
-- [[ Configure nvim-cmp ]]
-- See `:help cmp`
local cmp = require 'cmp'
cmp.setup {
snippet = {
expand = function(args)

View File

@ -11,3 +11,5 @@ hyperindustrialisés
lacto-fermentation
d'engrain
écorcheuse
écopolitique
Centralité

Binary file not shown.