ruff
This commit is contained in:
@@ -7,6 +7,8 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
#
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
#
|
||||
export ZSH_COMPDUMP=$ZSH/cache/.zcompdump-$HOST
|
||||
export EDITOR='nvim'
|
||||
export VISUAL='nvim'
|
||||
export PATH="$HOME/scripts:$PATH"
|
||||
@@ -30,7 +32,7 @@ alias update-grub='sudo grub2-mkconfig -o /boot/grub2/grub.cfg & grub2-mkconfig
|
||||
alias vim='nvim'
|
||||
alias xc='wl-copy'
|
||||
alias goadum='ssh -x mal0@192.168.1.146'
|
||||
alias zz='bash $HOME/scripts/virtuals.sh'
|
||||
alias zz='python $HOME/scripts/devmode.py'
|
||||
alias docker-compose='docker compose'
|
||||
alias ranger='source ranger'
|
||||
alias dps='docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a'
|
||||
@@ -48,6 +50,16 @@ function .. {
|
||||
builtin cd .. "$@" && ls -F
|
||||
}
|
||||
|
||||
function man {
|
||||
LESS_TERMCAP_md=$'\e[01;31m' \
|
||||
LESS_TERMCAP_me=$'\e[0m' \
|
||||
LESS_TERMCAP_se=$'\e[0m' \
|
||||
LESS_TERMCAP_so=$'\e[01;44;33m' \
|
||||
LESS_TERMCAP_ue=$'\e[0m' \
|
||||
LESS_TERMCAP_us=$'\e[01;32m' \
|
||||
command man "$@"
|
||||
}
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
|
||||
@@ -4,3 +4,4 @@ file:///home/mahalo/photos/random random
|
||||
file:///home/mahalo/photos/random random
|
||||
file:///home/mahalo/School School
|
||||
file:///home/mahalo/nextcloud nextcloud
|
||||
sftp://adum/ / on adum
|
||||
|
||||
@@ -135,8 +135,10 @@ device {
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
# Special window rules
|
||||
|
||||
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
|
||||
windowrulev2 = noscreenshare, class:^(Bitwarden)$
|
||||
windowrulev2 = float,class:^(io.bassi.Amberol)$
|
||||
windowrulev2 = size 413 689,class:^(io.bassi.Amberol)$
|
||||
windowrulev2 = float,class:^(qalculate-gtk)$,title:^(Qalculate!)$
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
preload= /home/mahalo/photos/1748347844447361.jpg
|
||||
preload= /home/mahalo/photos/wallhaven-e8z1jw.jpg
|
||||
preload= /home/mahalo/photos/wallhaven-vqorm5.jpg
|
||||
wallpaper = DP-4,/home/mahalo/photos/wallhaven-e8z1jw.jpg
|
||||
wallpaper = DP-5,/home/mahalo/photos/1748347844447361.jpg
|
||||
wallpaper = DP-5,/home/mahalo/photos/wallhaven-vqorm5.jpg
|
||||
|
||||
|
||||
#set the default wallpaper(s) seen on initial workspace(s) --depending on the number of monitors used
|
||||
|
||||
+14
-14
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "831a130291eb6dae0dabd2748d0a99401a2eebc4" },
|
||||
"LuaSnip": { "branch": "master", "commit": "3d5bced1b9ae69fa3f9b1942e28af5dbc537f946" },
|
||||
"barbar.nvim": { "branch": "master", "commit": "3a74402bdf04745a762de83d5c5e88e3e9b0e2e0" },
|
||||
"buffer-vacuum": { "branch": "main", "commit": "33a454b76b2f2a7f51c27cb50ecc9f1d6327a275" },
|
||||
"catppuccin": { "branch": "main", "commit": "fa42eb5e26819ef58884257d5ae95dd0552b9a66" },
|
||||
"catppuccin": { "branch": "main", "commit": "94f6e8a06b6bb7b8e5529cf9f93adb4654534241" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
|
||||
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
|
||||
"cmp-path": { "branch": "main", "commit": "e52e640b7befd8113b3350f46e8cfcfe98fcf730" },
|
||||
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||
@@ -14,25 +14,25 @@
|
||||
"local-highlight.nvim": { "branch": "master", "commit": "272f36f412c0a82c785c01256abf4eda4c1cb11d" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
|
||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "bb3a17efc797c34c054463174e5522442576ebd8" },
|
||||
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
||||
"mini.icons": { "branch": "main", "commit": "94848dad1589a199f876539bd79befb0c5e3abf0" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "f2fa60409630ec2d24acf84494fb55e1d28d593c" },
|
||||
"mason.nvim": { "branch": "main", "commit": "3671ab0d40aa5bd24b1686562bd0a23391ecf76a" },
|
||||
"mini.icons": { "branch": "main", "commit": "b8f6fa6f5a3fd0c56936252edcd691184e5aac0c" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" },
|
||||
"none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "a5954f00ee88bcdf154e931198ec636a26a1077c" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "3ce66bc62eb363f19cceeb1fae2e71ea2bede56d" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "8a9b722257b5e6733c340c36f4bd8693e5f47de3" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "f47cd681d7cb6048876a2e908b6d8ba1e530d152" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "16597180b4dd81fa3d23d88c4d2f1b49154f9479" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "3db16ceeea947517f0dc1404c24dcb5ab0c91d26" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "0422a19d9aa3aad2c7e5cca167e5407b13407a9d" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "4a8369f4c78ef6f6f895f0cec349e48f74330574" },
|
||||
"oil.nvim": { "branch": "master", "commit": "bbad9a76b2617ce1221d49619e4e4b659b3c61fc" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "2ea65fb81022eaaa89510e8b96cb7ea540d1880b" },
|
||||
"ruffer": { "branch": "plugin", "commit": "7fdf14e2f600ce92f341d2dc594cee6e474912e8" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "97bf4b8ef9298644a29fcd9dd41a0210cf08cac7" },
|
||||
"ruffer": { "branch": "plugin", "commit": "5248604605bf1039147f3f29dcd46aa296557e9c" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"undotree": { "branch": "master", "commit": "28f2f54a34baff90ea6f4a735ef1813ad875c743" },
|
||||
|
||||
@@ -85,6 +85,33 @@ require('lspconfig').pyright.setup{
|
||||
},
|
||||
}
|
||||
|
||||
-- RUFF
|
||||
vim.lsp.config('ruff', {
|
||||
init_options = {
|
||||
settings = {
|
||||
configuration = "~/.config/ruff/pyproject.toml"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
vim.lsp.enable('ruff')
|
||||
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup('lsp_attach_disable_ruff_hover', { clear = true }),
|
||||
callback = function(args)
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
if client == nil then
|
||||
return
|
||||
end
|
||||
if client.name == 'ruff' then
|
||||
-- Disable hover in favor of Pyright
|
||||
client.server_capabilities.hoverProvider = false
|
||||
end
|
||||
end,
|
||||
desc = 'LSP: Disable hover capability from Ruff',
|
||||
})
|
||||
|
||||
|
||||
--''''''''''''''''Non-ls/null-ls''''''''''''''''
|
||||
local null_ls = require("null-ls")
|
||||
|
||||
|
||||
+14
-1
@@ -16,10 +16,23 @@ vim.opt.encoding = 'utf-8'
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
-- Spell generall options
|
||||
-- Spell generally options
|
||||
vim.opt.spelllang = 'en_us'
|
||||
vim.opt.spell = false
|
||||
vim.opt.hlsearch = false
|
||||
|
||||
vim.opt.showmode = false
|
||||
vim.opt.showtabline = 2
|
||||
|
||||
vim.g.clipboard = {
|
||||
name = 'wl-clipboard',
|
||||
copy = {
|
||||
['+'] = 'wl-copy',
|
||||
['*'] = 'wl-copy',
|
||||
},
|
||||
paste = {
|
||||
['+'] = 'wl-paste',
|
||||
['*'] = 'wl-paste',
|
||||
},
|
||||
cache_enabled = 0,
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ local plugins = {
|
||||
},
|
||||
},
|
||||
|
||||
-- telescope pluggin
|
||||
-- telescope plugin
|
||||
{'nvim-telescope/telescope-ui-select.nvim' },
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[tool.ruff]
|
||||
lint.extend-ignore = ["Q000"]
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "preserve"
|
||||
|
||||
@@ -4,6 +4,9 @@ local config = wezterm.config_builder()
|
||||
|
||||
config.enable_wayland = false
|
||||
|
||||
-- unset start dir
|
||||
config.default_cwd = nil
|
||||
|
||||
-- Font config
|
||||
config.font = wezterm.font_with_fallback {
|
||||
{ family = "Fira Code", weight = "Regular" },
|
||||
|
||||
Reference in New Issue
Block a user