Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 24bad1f5c4 | |||
| 442284c92f |
@@ -224,8 +224,8 @@
|
||||
"networkPreference": "wifi",
|
||||
"iconTheme": "System Default",
|
||||
"cursorSettings": {
|
||||
"theme": "Qogir",
|
||||
"size": 32,
|
||||
"theme": "Adwaita",
|
||||
"size": 24,
|
||||
"niri": {
|
||||
"hideWhenTyping": false,
|
||||
"hideAfterInactiveMs": 0
|
||||
|
||||
@@ -75,6 +75,10 @@ status is-interactive; and begin
|
||||
|
||||
if test "$TERM" != dumb
|
||||
fzf --fish | source
|
||||
bind --erase \ct
|
||||
bind -M insert --erase \ct
|
||||
bind \cf fzf-file-widget
|
||||
bind -M insert \cf fzf-file-widget
|
||||
end
|
||||
|
||||
# add completions generated by Home Manager to $fish_complete_path
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
|
||||
# In Zellij + Alacritty, force Yazi away from graphical adapters and into Chafa.
|
||||
# This gives text/blocks previews instead of broken/blank image panes.
|
||||
if set -q ZELLIJ
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u SWAYSOCK -u HYPRLAND_INSTANCE_SIGNATURE -u WAYFIRE_SOCKET TERM=xterm-256color yazi $argv --cwd-file="$tmp"
|
||||
else
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
end
|
||||
|
||||
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
function yazi --wraps yazi --description "Yazi wrapper that forces Chafa inside Zellij"
|
||||
if set -q ZELLIJ
|
||||
begin
|
||||
set -e DISPLAY
|
||||
set -e WAYLAND_DISPLAY
|
||||
set -e SWAYSOCK
|
||||
set -e HYPRLAND_INSTANCE_SIGNATURE
|
||||
set -e WAYFIRE_SOCKET
|
||||
set -lx TERM xterm-256color
|
||||
command yazi $argv
|
||||
end
|
||||
else
|
||||
command yazi $argv
|
||||
end
|
||||
end
|
||||
@@ -119,7 +119,9 @@ return {
|
||||
end, "[T]oggle Inlay [H]ints")
|
||||
end
|
||||
|
||||
-- Svelte-specific: notify on TS/JS file changes
|
||||
-- Svelte-specific: keep treesitter highlighting in control
|
||||
-- (semantic tokens can make svelte buffers look oddly colored)
|
||||
-- and notify on TS/JS file changes
|
||||
-- https://github.com/sveltejs/language-tools/issues/2008#issuecomment-2351976230
|
||||
if client and client.name == "svelte" then
|
||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||
|
||||
@@ -4,12 +4,13 @@ return {
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter").setup({
|
||||
local ts = require("nvim-treesitter")
|
||||
ts.setup({
|
||||
install_dir = vim.fn.stdpath("data") .. "/site",
|
||||
})
|
||||
|
||||
-- Install parsers (async, no-op if already installed)
|
||||
require("nvim-treesitter").install({
|
||||
ts.install({
|
||||
"vimdoc",
|
||||
"javascript",
|
||||
"typescript",
|
||||
@@ -28,6 +29,75 @@ return {
|
||||
"nix",
|
||||
})
|
||||
|
||||
-- Enable treesitter highlighting - indentexpr set automatically per filetype
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = {
|
||||
"svelte",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"tsx",
|
||||
"html",
|
||||
"css",
|
||||
"lua",
|
||||
"nix",
|
||||
},
|
||||
callback = function()
|
||||
pcall(vim.treesitter.start)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
-- Workaround: some svelte parser/query combos don't inject JS for <script>
|
||||
-- blocks without an explicit lang attribute, which leaves raw_text as @none.
|
||||
vim.treesitter.query.set("svelte", "injections", [=[
|
||||
; inherits: html_tags
|
||||
|
||||
((style_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @_lang)))
|
||||
(raw_text) @injection.content)
|
||||
(#eq? @_attr "lang")
|
||||
(#any-of? @_lang "scss" "postcss" "less")
|
||||
(#set! injection.language "scss"))
|
||||
|
||||
; fallback for plain <script>...</script>
|
||||
((script_element
|
||||
(raw_text) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((script_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @_lang)))
|
||||
(raw_text) @injection.content)
|
||||
(#eq? @_attr "lang")
|
||||
(#any-of? @_lang "ts" "typescript")
|
||||
(#set! injection.language "typescript"))
|
||||
|
||||
((script_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @_lang)))
|
||||
(raw_text) @injection.content)
|
||||
(#eq? @_attr "lang")
|
||||
(#any-of? @_lang "js" "javascript")
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @injection.language)))
|
||||
(text) @injection.content)
|
||||
(#eq? @_attr "lang")
|
||||
(#eq? @injection.language "pug"))
|
||||
]=])
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lastChangelogVersion": "0.57.1",
|
||||
"defaultProvider": "openai-codex",
|
||||
"defaultModel": "gpt-5.3-codex-spark",
|
||||
"defaultModel": "gpt-5.3-codex",
|
||||
"defaultThinkingLevel": "medium",
|
||||
"theme": "matugen",
|
||||
"lsp": {
|
||||
|
||||
@@ -61,6 +61,27 @@ npx mcporter emit-ts <server> --mode types
|
||||
|
||||
Config location: `~/.mcporter/mcporter.json` (or `config/mcporter.json` in project)
|
||||
|
||||
### configuring servers quickly
|
||||
|
||||
```bash
|
||||
# add a server to project-local config
|
||||
npx mcporter config add <name> <url>
|
||||
# example
|
||||
npx mcporter config add svelte https://mcp.svelte.dev/mcp
|
||||
|
||||
# verify server + tool schemas
|
||||
npx mcporter list
|
||||
npx mcporter list svelte --schema
|
||||
|
||||
# inspect exact merged config source
|
||||
npx mcporter config list --json
|
||||
|
||||
# if OAuth server, complete auth
|
||||
npx mcporter auth <name>
|
||||
```
|
||||
|
||||
If `mcporter list` shows no servers, first run `npx mcporter config add ...` (or import from editor config with `npx mcporter config import cursor --copy`).
|
||||
|
||||
## Commonly Used MCP Servers
|
||||
|
||||
Only use these servers and read about them when applicable.
|
||||
|
||||
Reference in New Issue
Block a user