Remove pnpm from path, and use typescript-tools, and other refactors

This commit is contained in:
mitchell 2024-07-02 04:17:00 -04:00
parent 547dea2d9d
commit 8be2f42aba
11 changed files with 40 additions and 37 deletions

View file

@ -22,8 +22,6 @@ function define_global_variables -d 'Defines all and exclusively globally export
set -gx LIBVA_DRIVER_NAME nvidia
set -gx PNPM_HOME $HOME/.local/share/pnpm
fish_add_path $GOBIN \
$HOME/.local/bin \
$HOME/.pub-cache/bin \
@ -32,7 +30,6 @@ function define_global_variables -d 'Defines all and exclusively globally export
$HOME/.cargo/bin \
$HOME/.dotnet/tools \
$BUN_INSTALL/bin \
$PNPM_HOME \
$ANDROID_HOME/emulator \
$ANDROID_HOME/platform-tools \
$ANDROID_HOME/build-tools/31.0.0 \

View file

@ -13,6 +13,11 @@ vim.api.nvim_create_autocmd("TermOpen", {
command = "set nonumber",
})
require("gruvbox").setup({
transparent_mode = true,
})
vim.cmd("colorscheme gruvbox")
require("twilight").setup()
require("zen-mode").setup({
window = {
@ -57,7 +62,6 @@ require("nvim-treesitter.configs").setup({
"c",
"lua",
"vim",
"help",
"fish",
"typescript",
"javascript",
@ -134,21 +138,24 @@ local lsp_flags = {
debounce_text_changes = 150,
}
-- Unused for now
local vue_plugin_location = vim.fn.expand("$HOME/.bun/install/global/node_modules/@vue/language-server")
lspconfig.tsserver.setup(coq.lsp_ensure_capabilities({
require("typescript-tools").setup(coq.lsp_ensure_capabilities({
on_attach = on_attach,
flags = lsp_flags,
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = vue_plugin_location,
languages = { "vue" },
},
filetypes = {
"typescript",
"javascript",
"javascriptreact",
"typescriptreact",
"vue",
},
settings = {
tsserver_plugins = {
"@vue/typescript-plugin",
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
}))
local servers = { "volar", "elixirls", "gopls", "pylsp" }

View file

@ -10,7 +10,7 @@ super + Return
super + shift + Return
firefox
super + alt + shift + Return
super + shift + ctrl + Return
qutebrowser
# program launcher