diff --git a/.tmux.conf b/.tmux.conf index b9c2842..9c14518 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,8 @@ # set-environment -g PATH "/usr/local/bin:/bin:/usr/bin" +# +set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/' set -g @plugin 'tmux-plugins/tpm' - +set -g @plugin 'hallazzang/tmux-reset' unbind C-b set-option -g prefix C-x bind-key C-x send-prefix @@ -35,7 +37,7 @@ set -g bell-action none setw -g clock-mode-colour colour1 # copy mode -setw -g mode-style 'fg=colour1 bg=colour18 bold' +# setw -g mode-style 'fg=colour1 bg=colour18 bold' # pane borders set -g pane-border-style 'fg=colour1' @@ -44,7 +46,7 @@ set -g pane-active-border-style 'fg=colour3' set -g status-position bottom set -g status-justify left -set -g status-style 'fg=colour1' +set -g status-style 'fg=colour2' set -g status-left '' set -g status-right '%Y-%m-%d %H:%M ' set -g status-right-length 50 @@ -54,24 +56,40 @@ setw -g window-status-current-style 'fg=colour0 bg=colour1 bold' setw -g window-status-current-format ' #I #W #F ' setw -g window-status-style 'fg=colour1 dim' -setw -g window-status-format ' #I #[fg=colour7]#W #[fg=colour1]#F ' +setw -g window-status-format ' #I #[fg=colour2]#W #[fg=colour1]#F ' setw -g window-status-bell-style 'fg=colour2 bg=colour1 bold' -set -g message-style 'fg=colour2 bg=colour0 bold' +set -g message-style 'fg=colour1 bg=colour0 bold' # messages -set -g message-style 'fg=colour2 bg=colour0 bold' +set -g message-style 'fg=colour1 bg=colour0 bold' set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'catppuccin/tmux' # main branch -set -g @catppuccin_flavor 'mocha' # latte,frappe, macchiato or mocha +# set -g @plugin 'catppuccin/tmux' # main branch +# set -g @catppuccin_flavor 'mocha' # latte,frappe, macchiato or mocha set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin '27medkamal/tmux-session-wizard' set -g @plugin 'jabirali/tmux-tilish' -set -g @plugin 'Nybkox/tmux-kanagawa' +# set -g @plugin 'Nybkox/tmux-kanagawa' # set -g @kanagawa-theme 'lotus' +# set -g @plugin 'catppuccin/tmux#v2.1.3' # See https://github.com/catppuccin/tmux/tags for additional tags +# set -g @catppuccin_flavor 'macchiato' # latte, frappe, macchiato or mocha +# set -g @plugin 'rose-pine/tmux' +set -g @plugin 'dracula/tmux' +set -g @dracula-plugins "cpu-usage gpu-usage ram-usage" set -g @session-wizard 'C-x' - +set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn' +set -g @rose_pine_user 'off' # Turn on the username component in the statusbar +set -g @rose_pine_show_current_program 'off' # Forces tmux to show the current running program as window name +set -g @rose_pine_host 'off' # Enables hostname in the status bar +set -g @rose_pine_only_windows 'off' # Leaves only the window module, for max focus and space +set -g @rose_pine_date_time '%m-%d %H:%M:%S' # It accepts the date UNIX command format (man date for info) +set -g @tpm_plugins ' \ + tmux-plugins/tpm \ + tmux-plugins/tmux-sensible \ + tmux-plugins/tmux-resurrect \ + alexwforsythe/tmux-which-key \ +' # fix clipboard in neovim set-option -g set-clipboard on # bind C-c run "tmux save-buffer - | xclip -selection clipboard" @@ -104,7 +122,7 @@ is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" # bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" -# bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" +bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" @@ -125,4 +143,5 @@ bind -n M-h previous-window unbind -n M-j unbind -n M-k bind -n M-l next-window +unbind -n Enter diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 8ee93fe..55ef381 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -19,6 +19,27 @@ vim.lsp.config["elixir-ls"] = { -- } -- } } - vim.lsp.enable("elixir-ls") + +vim.lsp.config["deno"] = { + cmd = { "deno", "lsp" }, + filetypes = { "javascript", "typescript" }, + root_markers = { "deno.json" }, +} + +vim.lsp.enable("deno") + +if vim.loop.os_uname().sysname == "Darwin" then + vim.api.nvim_create_autocmd("FileType", { + pattern = { "elixir", "typescript", "json" }, + callback = function() + vim.lsp.start({ + name = "hhn_lsp", + cmd = { "/Users/kacper.marzecki@m10s.io/git/hhn_lsp/bin/hhn_lsp" }, + root_dir = vim.fs.dirname(vim.fs.find({ ".git" }, { upward = true })[1]), + }) + end, + }) +end + return {}