Tweak term color / improve solidity dev in nvim / update nvim config
This commit is contained in:
@@ -4,7 +4,7 @@ foreground = '#abb2bf'
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#0e1013'
|
||||
black = '#181c21'
|
||||
red = '#e55561'
|
||||
green = '#8ebd6b'
|
||||
yellow = '#e2b86b'
|
||||
|
||||
@@ -17,7 +17,8 @@ local servers = {
|
||||
"ruff",
|
||||
"dockerls",
|
||||
"ansiblels",
|
||||
"jsonls"
|
||||
"jsonls",
|
||||
"solidity_ls_nomicfoundation",
|
||||
}
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
|
||||
@@ -29,7 +29,7 @@ map("n", "<leader>rd", "<CMD> lua require('rainbow-delimiters').toggle() <CR>",
|
||||
map(
|
||||
"n",
|
||||
"<leader>lf",
|
||||
"<CMD> lua require('conform').format { lsp_fallback = true }<CR>",
|
||||
"<CMD> lua require('conform').format { lsp_format = \"last\", }<CR>",
|
||||
{ desc = "General Format file" }
|
||||
)
|
||||
map({ "n", "v" }, "<leader>la", require("actions-preview").code_actions, { desc = "Code action" })
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
return {
|
||||
"saecki/crates.nvim",
|
||||
tag = "stable",
|
||||
event = { "BufRead Cargo.toml" },
|
||||
opts = {
|
||||
lsp = {
|
||||
|
||||
@@ -3,10 +3,14 @@ return {
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
lint.linters_by_ft = {
|
||||
solidity = {'solhint'},
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
|
||||
group = vim.api.nvim_create_augroup("RunLinter", { clear = true }),
|
||||
callback = function()
|
||||
lint.try_lint()
|
||||
lint.try_lint("codespell")
|
||||
end,
|
||||
})
|
||||
|
||||
11
zshrc
11
zshrc
@@ -123,6 +123,7 @@ alias ohmyzsh="cd ~/.oh-my-zsh"
|
||||
alias cat='bat'
|
||||
alias grep='rg'
|
||||
alias du='dust'
|
||||
alias df='dysk'
|
||||
|
||||
# ls
|
||||
alias ls='eza --icons=always --git'
|
||||
@@ -143,3 +144,13 @@ alias gp='git push origin master'
|
||||
|
||||
#cd
|
||||
alias cd..='cd ..'
|
||||
|
||||
# yazi
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user