restore default treesitter install list, fix sessions saving

This commit is contained in:
Maciej Lebiest 2023-02-26 18:36:34 +01:00
parent 95bb972fee
commit 8e4a6745d7
3 changed files with 6 additions and 5 deletions

View file

@ -20,7 +20,7 @@ RUN dnf install -y \
pip install pynvim
# install lsp and liners using mason
RUN nvim --headless +"MasonInstall \
RUN nvim --headless +TSUpdateSync +"MasonInstall \
bash-language-server \
css-lsp \
cssmodules-language-server \

View file

@ -1,4 +1,4 @@
# My personal nvim configuration
# My personal **neovim as container** configuration
I made this public so I can easily clone without authentication,
but since I treat this as a personal use only stuff,
@ -9,7 +9,7 @@ Those repos are obviously listed in plugin setup part.
# Basic usage of this config
<p class="callout warning">Tested only with rootless podman, docker might require additional setup, or proper in-container user setup</p>
<p class="callout warning">**Tested only with rootless podman, docker might require additional setup, or proper in-container user setup**</p>
### Host system Setup
@ -72,6 +72,7 @@ function nvim() {
-e XDG_RUNTIME_DIR=/runtime_dir \
-e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
-v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY \
-v ~/.local/share/nvim/sessions:/root/.local/share/nvim/sessions \
$MOUNT_FILE \
$MOUNT_FOLDER \
neovim:latest "$@"

View file

@ -1,10 +1,10 @@
return function()
require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all"
--ensure_installed = { "html", "dockerfile", "cpp", "css", "markdown", "c", "gitcommit", "bash", "phpdoc", "comment", "python", "http", "php", "regex", "json5", "lua", "gitattributes", "gitignore", "json", "git_rebase", "javascript", "perl", "sql", "yaml" },
ensure_installed = { "html", "dockerfile", "cpp", "css", "markdown", "c", "gitcommit", "bash", "phpdoc", "comment", "python", "http", "php", "regex", "json5", "lua", "gitattributes", "gitignore", "json", "git_rebase", "javascript", "perl", "sql", "yaml" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
sync_install = true,
-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally