wip: tmux
parent
dce680f2a8
commit
dcc35d45a1
|
@ -674,6 +674,37 @@ require('mason-lspconfig').setup_handlers({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end,
|
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()
|
["tsserver"] = function()
|
||||||
require('lspconfig').tsserver.setup {
|
require('lspconfig').tsserver.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|
|
@ -14,7 +14,15 @@ setw -g pane-base-index 1
|
||||||
set-option -g renumber-windows on
|
set-option -g renumber-windows on
|
||||||
|
|
||||||
# status bar
|
# 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
|
# Keybinds
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
|
# # Log
|
||||||
|
# set-option -g history-file /tmp/.tmux.log
|
||||||
|
|
|
@ -53,6 +53,9 @@ in
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = builtins.readFile "${proj_root.config.path}/tmux/tmux.conf";
|
extraConfig = builtins.readFile "${proj_root.config.path}/tmux/tmux.conf";
|
||||||
|
plugins =
|
||||||
|
let inherit (pkgs.tmuxPlugins) cpu net-speed;
|
||||||
|
in [ cpu net-speed ];
|
||||||
};
|
};
|
||||||
programs.exa = {
|
programs.exa = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -31,3 +31,6 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Attempt to reload running instances
|
||||||
|
tmux source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue