Updated the nvim lsp config
parent
d9a9c33ae8
commit
5e1706e629
|
@ -54,7 +54,7 @@ update_ms = 1000
|
|||
|
||||
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||
proc_sorting = "cpu lazy"
|
||||
proc_sorting = "memory"
|
||||
|
||||
#* Reverse sorting order, True or False.
|
||||
proc_reversed = False
|
||||
|
|
|
@ -9,6 +9,10 @@ return {
|
|||
local lspconfig = require("lspconfig")
|
||||
local capabilities = require("blink.cmp").get_lsp_capabilities()
|
||||
|
||||
lspconfig.svelte.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
-- Markdown
|
||||
lspconfig.marksman.setup({
|
||||
capabilities = capabilities,
|
||||
|
@ -29,8 +33,13 @@ return {
|
|||
enable = true,
|
||||
},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
disabled = { "unresolved-proc-macro", "unresolved-macro-call" },
|
||||
},
|
||||
procMacro = {
|
||||
enable = true,
|
||||
ignored = "*",
|
||||
},
|
||||
checkOnSave = {
|
||||
command = "clippy",
|
||||
|
@ -101,10 +110,10 @@ return {
|
|||
})
|
||||
|
||||
-- HTMX
|
||||
lspconfig.htmx.setup({
|
||||
capabilities = capabilities,
|
||||
filetypes = { "html", "templ", "htmldjango" },
|
||||
})
|
||||
-- lspconfig.htmx.setup({
|
||||
-- capabilities = capabilities,
|
||||
-- filetypes = { "html", "templ", "htmldjango" },
|
||||
-- })
|
||||
|
||||
-- CSS
|
||||
lspconfig.cssls.setup({
|
||||
|
@ -134,6 +143,14 @@ return {
|
|||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
callback = function(event)
|
||||
for _, group in ipairs(vim.fn.getcompletion("@lsp", "highlight")) do
|
||||
vim.api.nvim_set_hl(0, group, {})
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ return {
|
|||
"scss",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"svelte",
|
||||
|
||||
-- config
|
||||
"toml",
|
||||
|
|
8
.zshrc
8
.zshrc
|
@ -103,6 +103,8 @@ alias ytdv="yt-dlp"
|
|||
alias docker-clean="docker system prune -a --filter \"until=72h\""
|
||||
alias flatpak-clean="flatpak uninstall --user --unused"
|
||||
alias system-clean="docker-clean && flatpak-clean && cargo clean-all"
|
||||
alias nvtemp="nvim ./temp -c 'set buftype=nofile'"
|
||||
alias towebp='for i in *.png; do cwebp "$i" -o "./${i%.*}.webp"; done'
|
||||
|
||||
# git shortcuts
|
||||
alias gst="git status"
|
||||
|
@ -140,9 +142,10 @@ alias repo5y="~/.local/bin/repo5y.sh"
|
|||
source ~/.piwrc
|
||||
|
||||
# JVM switches
|
||||
alias use-java8='export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64;export PATH=$JAVA_HOME/bin:$PATH'
|
||||
alias use-java8='export JAVA_HOME=/usr/lib/jvm/java-8-temurin;export PATH=$JAVA_HOME/bin:$PATH'
|
||||
alias use-java11='export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64;export PATH=$JAVA_HOME/bin:$PATH'
|
||||
alias use-java17='export JAVA_HOME=/usr/lib/jvm/java-17-temurin;export PATH=$JAVA_HOME/bin:$PATH'
|
||||
alias use-java21='export JAVA_HOME=/usr/lib/jvm/java-21-temurin;export PATH=$JAVA_HOME/bin:$PATH'
|
||||
|
||||
# changing GREP highlight color
|
||||
export GREP_COLORS='ms=01;04;32'
|
||||
|
@ -167,3 +170,6 @@ figlet -f 'Red Phoenix' Wynd | lolcat
|
|||
|
||||
# starts starship
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
# bun completions
|
||||
[ -s "/home/wynd/.bun/_bun" ] && source "/home/wynd/.bun/_bun"
|
||||
|
|
Loading…
Reference in New Issue