mount shada dir, treesitter reverse/fix
This commit is contained in:
parent
9dc0b5db5a
commit
adfc5e7489
3 changed files with 9 additions and 15 deletions
|
@ -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/
|
||||
|
||||
|
|
12
README.md
12
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 \
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue