aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc4
-rw-r--r--.config/nvim/lua/lsp.lua24
-rw-r--r--.config/tmux/tmux.conf8
3 files changed, 30 insertions, 6 deletions
diff --git a/.bashrc b/.bashrc
index 29fef1e..dbebf75 100644
--- a/.bashrc
+++ b/.bashrc
@@ -16,7 +16,7 @@ then
return
fi
-. $HOME/.profile
+. "$HOME"/.profile
# Put your fun stuff here.
alias cls="clear"
@@ -33,7 +33,7 @@ alias codium="flatpak run com.vscodium.codium --no-sandbox --enable-features=Use
alias tmux="tmux -2"
. /usr/share/bash-completion/bash_completion
-for f in $HOME/.local/share/bash-completion/*
+for f in "$HOME"/.local/share/bash-completion/*
do
. "$f"
done
diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua
index de52d28..f404e3d 100644
--- a/.config/nvim/lua/lsp.lua
+++ b/.config/nvim/lua/lsp.lua
@@ -20,9 +20,27 @@ cmp.setup({
["<CR>"] = cmp.mapping.confirm({ select = true }); -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
});
sources = cmp.config.sources({
- { name = "nvim_lsp" };
- { name = "vsnip" }; -- For vsnip users.
- }, { { name = "buffer" } });
+ {
+ name = "nvim_lsp";
+ entry_filter = function(entry, ctx)
+ return require('cmp.types').lsp.CompletionItemKind[entry:get_kind()] ~= 'Text'
+ end;
+ };
+ {
+ name = "vsnip";
+ entry_filter = function(entry, ctx)
+ return require('cmp.types').lsp.CompletionItemKind[entry:get_kind()] ~= 'Text'
+ end;
+ };
+ },
+ {
+ {
+ name = "buffer";
+ entry_filter = function(entry, ctx)
+ return require('cmp.types').lsp.CompletionItemKind[entry:get_kind()] ~= 'Text'
+ end;
+ }
+ });
})
-- Set configuration for specific filetype.
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 7227e31..cbc5cba 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -12,7 +12,13 @@ set -g status-position bottom
# status-right
set -g status-right-length 100
-set -g status-right "#(echo $USER)@#(uname -n) | #(date -d now '+%a/%b/%Y %R') "
+set -g status-right "#{user}@#{host} | #(date -d now '+%a/%b/%Y %R') "
+
+set -g set-titles on
+set -g set-titles-string "#{window_name} #{user}@#{host_short}"
bind-key b set-option status
+set -g lock-command vlock
+bind L lock-session
+bind R source-file ~/.config/tmux/tmux.conf; display-message "source-file done"