From 843069b6918c0577dc4fce151c64e2e8f2f643b9 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Thu, 17 Aug 2023 09:40:27 +0200 Subject: [PATCH] tsserver, trick mason.nvim --- .config/nvim/after/plugin/lsp.lua | 1 + .local/bin/npm | 2 ++ .zshrc | 7 ++++++- etc/default/grub | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 .local/bin/npm diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 530ed0d..e3e24a4 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -3,6 +3,7 @@ local lsp = require("lsp-zero") lsp.preset("recommended") lsp.ensure_installed({ + "tsserver", "zls", "lua_ls", "cmake", diff --git a/.local/bin/npm b/.local/bin/npm new file mode 100755 index 0000000..fbb21f6 --- /dev/null +++ b/.local/bin/npm @@ -0,0 +1,2 @@ +#!/bin/bash +pnpm $@ diff --git a/.zshrc b/.zshrc index 553722b..8e450a0 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,5 @@ # If you come from bash you might have to change your $PATH. -export PATH=$HOME/.local/bin:$PATH +export PATH="$HOME/.local/bin:$PATH" # Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh" @@ -109,3 +109,8 @@ function pacman { command pacman "$@" fi } + +# pnpm +export PNPM_HOME="/home/hyro/.local/share/pnpm" +export PATH="$PNPM_HOME:$PATH" +# pnpm end diff --git a/etc/default/grub b/etc/default/grub index f27174d..f35d3be 100644 --- a/etc/default/grub +++ b/etc/default/grub @@ -1,7 +1,7 @@ GRUB_DEFAULT="0" GRUB_TIMEOUT="0" GRUB_DISTRIBUTOR="Artix" -GRUB_CMDLINE_LINUX_DEFAULT="quiet" +GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia_drm.modeset=1" GRUB_CMDLINE_LINUX="net.ifnames=0" # Preload both GPT and MBR modules so that they are not missed