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
|
RUN rm /root/.config/nvim/lazy-lock.json || true
|
||||||
# install lsp and linters using mason
|
# install lsp and linters using mason
|
||||||
RUN nvim --headless +TSInstall all \
|
RUN nvim --headless '+TSInstall all' \
|
||||||
+"MasonInstall ${MASON_PKGS}" \
|
+"MasonInstall ${MASON_PKGS}" \
|
||||||
+qa ; \
|
+qa ; \
|
||||||
nvim --headless +TSInstall all \
|
nvim --headless '+TSInstall all' \
|
||||||
+qa; \
|
|
||||||
nvim --headless +TSInstall all \
|
|
||||||
+qa; \
|
|
||||||
nvim --headless +TSInstall all \
|
|
||||||
+qa; \
|
|
||||||
nvim --headless +TSInstall all \
|
|
||||||
+qa; \
|
+qa; \
|
||||||
chown -R root:root /root/.local/share/nvim/mason/packages/sqlls/node_modules/sql-language-server/
|
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")
|
local MOUNT_FOLDER=(--workdir "/data$base_path" -v "$base_path:/data$base_path:rw")
|
||||||
fi
|
fi
|
||||||
# make sure there is a folder for sessions on default path
|
# make sure there is a folder for sessions on default path
|
||||||
mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada/
|
mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada
|
||||||
touch ~/.local/state/nvim/shada/main.shada
|
|
||||||
|
|
||||||
echo "Files mount options: ${MOUNT_FILE[*]}"
|
echo "Files mount options: ${MOUNT_FILE[*]}"
|
||||||
echo "Folder mount options: ${MOUNT_FOLDER[*]}"
|
echo "Folder mount options: ${MOUNT_FOLDER[*]}"
|
||||||
podman run --privileged -it --rm \
|
podman run --privileged -it --rm \
|
||||||
|
--network host \
|
||||||
-e XDG_RUNTIME_DIR=/runtime_dir \
|
-e XDG_RUNTIME_DIR=/runtime_dir \
|
||||||
-e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \
|
-e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \
|
||||||
-v "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY:rw" \
|
-v "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY:rw" \
|
||||||
-v ~/.local/share/nvim/sessions:/root/.local/share/nvim/sessions: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_FILE[@]}" \
|
||||||
"${MOUNT_FOLDER[@]}" \
|
"${MOUNT_FOLDER[@]}" \
|
||||||
neovim:latest "$@"
|
neovim:latest "$@"
|
||||||
|
@ -140,17 +140,17 @@ function nvim_project() {
|
||||||
local MOUNT_FOLDER=(--workdir "/data$base_path" -v "$base_path:/data$base_path:rw")
|
local MOUNT_FOLDER=(--workdir "/data$base_path" -v "$base_path:/data$base_path:rw")
|
||||||
fi
|
fi
|
||||||
# make sure there is a folder for sessions on default path
|
# make sure there is a folder for sessions on default path
|
||||||
mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada/
|
mkdir -p ~/.local/share/nvim/sessions ~/.local/state/nvim/shada
|
||||||
touch ~/.local/state/nvim/shada/main.shada
|
|
||||||
|
|
||||||
echo "Files mount options: ${MOUNT_FILE[*]}"
|
echo "Files mount options: ${MOUNT_FILE[*]}"
|
||||||
echo "Folder mount options: ${MOUNT_FOLDER[*]}"
|
echo "Folder mount options: ${MOUNT_FOLDER[*]}"
|
||||||
podman run --privileged -it \
|
podman run --privileged -it \
|
||||||
|
--network host \
|
||||||
-e XDG_RUNTIME_DIR=/runtime_dir \
|
-e XDG_RUNTIME_DIR=/runtime_dir \
|
||||||
-e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \
|
-e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \
|
||||||
-v "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY:rw" \
|
-v "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/runtime_dir/$WAYLAND_DISPLAY:rw" \
|
||||||
-v ~/.local/share/nvim/sessions:/root/.local/share/nvim/sessions: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_FILE[@]}" \
|
||||||
"${MOUNT_FOLDER[@]}" \
|
"${MOUNT_FOLDER[@]}" \
|
||||||
--entrypoint bash \
|
--entrypoint bash \
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
return function()
|
return function()
|
||||||
require 'nvim-treesitter.configs'.setup {
|
require 'nvim-treesitter.configs'.setup {
|
||||||
-- A list of parser names, or "all"
|
-- A list of parser names, or "all"
|
||||||
ensure_installed = "",
|
ensure_installed = "all",
|
||||||
|
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||||
sync_install = true,
|
sync_install = true,
|
||||||
|
|
Loading…
Reference in a new issue