diff --git a/Containerfile b/Containerfile index d3935ee..bbf5cd9 100644 --- a/Containerfile +++ b/Containerfile @@ -62,16 +62,10 @@ RUN dnf install -y \ RUN rm /root/.config/nvim/lazy-lock.json || true # install lsp and linters using mason -RUN nvim --headless +TSInstall all \ +RUN nvim --headless '+TSInstall all' \ +"MasonInstall ${MASON_PKGS}" \ +qa ; \ - nvim --headless +TSInstall all \ - +qa; \ - nvim --headless +TSInstall all \ - +qa; \ - nvim --headless +TSInstall all \ - +qa; \ - nvim --headless +TSInstall all \ + nvim --headless '+TSInstall all' \ +qa; \ chown -R root:root /root/.local/share/nvim/mason/packages/sqlls/node_modules/sql-language-server/ diff --git a/README.md b/README.md index c4b9b17..1984123 100644 --- a/README.md +++ b/README.md @@ -89,17 +89,17 @@ function nvim() { local MOUNT_FOLDER=(--workdir "/data$base_path" -v "$base_path:/data$base_path:rw") fi # make sure there is a folder for sessions on default path - mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada/ - touch ~/.local/state/nvim/shada/main.shada + mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada echo "Files mount options: ${MOUNT_FILE[*]}" echo "Folder mount options: ${MOUNT_FOLDER[*]}" podman run --privileged -it --rm \ + --network host \ -e XDG_RUNTIME_DIR=/runtime_dir \ -e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \ -v "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY:rw" \ -v ~/.local/share/nvim/sessions:/root/.local/share/nvim/sessions:rw \ - -v ~/.local/state/nvim/shada/main.shada:/root/.local/state/nvim/shada/main.shada:rw \ + -v ~/.local/state/nvim/shada/:/root/.local/state/nvim/shada/:rw \ "${MOUNT_FILE[@]}" \ "${MOUNT_FOLDER[@]}" \ neovim:latest "$@" @@ -140,17 +140,17 @@ function nvim_project() { local MOUNT_FOLDER=(--workdir "/data$base_path" -v "$base_path:/data$base_path:rw") fi # make sure there is a folder for sessions on default path - mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada/ - touch ~/.local/state/nvim/shada/main.shada + mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada echo "Files mount options: ${MOUNT_FILE[*]}" echo "Folder mount options: ${MOUNT_FOLDER[*]}" podman run --privileged -it \ + --network host \ -e XDG_RUNTIME_DIR=/runtime_dir \ -e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \ -v "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY:rw" \ -v ~/.local/share/nvim/sessions:/root/.local/share/nvim/sessions:rw \ - -v ~/.local/state/nvim/shada/main.shada:/root/.local/state/nvim/shada/main.shada:rw \ + -v ~/.local/state/nvim/shada/:/root/.local/state/nvim/shada/:rw \ "${MOUNT_FILE[@]}" \ "${MOUNT_FOLDER[@]}" \ --entrypoint bash \ diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 5c95d7c..f5063f1 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,7 +1,7 @@ return function() require 'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" - ensure_installed = "", + ensure_installed = "all", -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = true,