wip: tmux

bare
Pegasust 2023-03-22 16:35:03 -07:00
parent dce680f2a8
commit dcc35d45a1
4 changed files with 49 additions and 4 deletions

View File

@ -674,6 +674,37 @@ require('mason-lspconfig').setup_handlers({
}
}
end,
["pyright"] = function()
require('lspconfig').pyright.setup {
on_attach = on_attach,
capabilities = capabilities,
settings = {
pyright = {
disableLanguageServices = false,
disableOrganizeImports = false,
},
python = {
analysis = {
autoImportCompletions = true,
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
-- diagnosticSeverityOverrides =
extraPaths = {},
logLevel = "Information",
stubPath = "typings",
typeCheckingMode = "basic",
typeshedPaths = {},
useLibraryCodeForTypes = false,
pythonPath = "python",
venvPath = "",
},
linting = {
mypyEnabled = true,
}
},
},
}
end,
["tsserver"] = function()
require('lspconfig').tsserver.setup {
on_attach = on_attach,

View File

@ -14,7 +14,15 @@ setw -g pane-base-index 1
set-option -g renumber-windows on
# status bar
set -g status-style 'bg=#333333 fg=#5eacd3'
# set -g status-style 'bg=#333333 fg=#5eacd3'
# set -g status-interval 60
# set -g status-right-style 'bg=#333333 fg=#5eacd3'
# set -g status-right-length 50
set -g status-right '#{cpu_bg_color} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M '
# set -g status-left " "
# Keybinds
set-window-option -g mode-keys vi
# # Log
# set-option -g history-file /tmp/.tmux.log

View File

@ -53,6 +53,9 @@ in
programs.tmux = {
enable = true;
extraConfig = builtins.readFile "${proj_root.config.path}/tmux/tmux.conf";
plugins =
let inherit (pkgs.tmuxPlugins) cpu net-speed;
in [ cpu net-speed ];
};
programs.exa = {
enable = true;

View File

@ -31,3 +31,6 @@ else
fi
# Attempt to reload running instances
tmux source-file ~/.config/tmux/tmux.conf