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,
|
||||||
|
@ -735,7 +766,7 @@ require('mason-lspconfig').setup_handlers({
|
||||||
})
|
})
|
||||||
require("rust-tools").setup {
|
require("rust-tools").setup {
|
||||||
tools = {
|
tools = {
|
||||||
-- rust-tools options
|
-- rust-tools options
|
||||||
|
|
||||||
-- how to execute terminal commands
|
-- how to execute terminal commands
|
||||||
-- options right now: termopen / quickfix
|
-- options right now: termopen / quickfix
|
||||||
|
|
|
@ -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;
|
||||||
|
@ -88,8 +91,8 @@ in
|
||||||
"command-not-found" # suggests which package to install; does not support nixos (we have solution already)
|
"command-not-found" # suggests which package to install; does not support nixos (we have solution already)
|
||||||
"gitignore" # `gi list` -> `gi java >>.gitignore`
|
"gitignore" # `gi list` -> `gi java >>.gitignore`
|
||||||
"ripgrep" # adds completion for `rg`
|
"ripgrep" # adds completion for `rg`
|
||||||
"rust" # compe for rustc/cargo
|
"rust" # compe for rustc/cargo
|
||||||
"poetry" # compe for poetry - Python's cargo
|
"poetry" # compe for poetry - Python's cargo
|
||||||
# "vi-mode" # edit promps with vi motions :)
|
# "vi-mode" # edit promps with vi motions :)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,3 +31,6 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Attempt to reload running instances
|
||||||
|
tmux source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue