Compare commits
No commits in common. "efaa44b924bcddd2322b0f88e93c1708e7abcb54" and "e91d840f90d0c52bb6b87ee584892c08d417a0f7" have entirely different histories.
efaa44b924
...
e91d840f90
|
|
@ -4,17 +4,8 @@ local capabilities = require("plugins.configs.lspconfig").capabilities
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
-- if you just want default config for the servers then put them in a table
|
-- if you just want default config for the servers then put them in a table
|
||||||
local servers = {
|
local servers =
|
||||||
"html",
|
{ "html", "cssls", "tsserver", "clangd", "docker_compose_language_service", "dockerls", "rust_analyzer", "pyright", "grammarly" }
|
||||||
"cssls",
|
|
||||||
"tsserver",
|
|
||||||
"clangd",
|
|
||||||
"docker_compose_language_service",
|
|
||||||
"dockerls",
|
|
||||||
"rust_analyzer",
|
|
||||||
"pyright",
|
|
||||||
"grammarly",
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup({
|
lspconfig[lsp].setup({
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ end
|
||||||
local b = null_ls.builtins
|
local b = null_ls.builtins
|
||||||
|
|
||||||
local sources = {
|
local sources = {
|
||||||
|
|
||||||
-- webdev stuff
|
-- webdev stuff
|
||||||
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
|
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
|
||||||
b.formatting.prettier.with { filetypes = { "html", "markdown", "css" } }, -- so prettier works only on these filetypes
|
b.formatting.prettier.with { filetypes = { "html", "markdown", "css" } }, -- so prettier works only on these filetypes
|
||||||
|
|
@ -26,7 +27,7 @@ local sources = {
|
||||||
-- method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
-- method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
|
||||||
-- }),
|
-- }),
|
||||||
|
|
||||||
b.formatting.rustfmt,
|
b.formatting.rustfmt,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
# plugins
|
|
||||||
set -g @plugin 'alexghergh/nvim-tmux-navigation'
|
|
||||||
|
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
|
||||||
|
|
||||||
# remap prefix from 'C-b' to 'C-a'
|
# remap prefix from 'C-b' to 'C-a'
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set-option -g prefix C-a
|
set-option -g prefix C-a
|
||||||
|
|
@ -20,13 +15,16 @@ bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||||
# spliting windoww
|
# spliting windoww
|
||||||
unbind %
|
unbind %
|
||||||
unbind '"'
|
unbind '"'
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v
|
||||||
|
|
||||||
# sync panes
|
# sync panes
|
||||||
unbind b
|
unbind b
|
||||||
bind b setw synchronize-panes
|
bind b setw synchronize-panes
|
||||||
|
|
||||||
|
# setting vi mode
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
# reset working dir for session
|
# reset working dir for session
|
||||||
unbind h
|
unbind h
|
||||||
bind h attach-session -t . -c "#{pane_current_path}"
|
bind h attach-session -t . -c "#{pane_current_path}"
|
||||||
|
|
@ -34,17 +32,6 @@ bind h attach-session -t . -c "#{pane_current_path}"
|
||||||
# status bar
|
# status bar
|
||||||
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '
|
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '
|
||||||
|
|
||||||
# Start windows and panes at 1, not 0
|
# default shell
|
||||||
set -g base-index 1
|
#set -g default-terminal "screen-256color" /bin/bash
|
||||||
set -g pane-base-index 1
|
#set-option -g default-shell /bin/bash
|
||||||
set-window-option -g pane-base-index 1
|
|
||||||
set-option -g renumber-windows on
|
|
||||||
|
|
||||||
# navigation
|
|
||||||
bind-key 'j' select-pane -D
|
|
||||||
bind-key 'k' select-pane -U
|
|
||||||
bind-key 'l' select-pane -R
|
|
||||||
bind-key 'h' select-pane -L
|
|
||||||
|
|
||||||
bind -n S-Left previous-window
|
|
||||||
bind -n S-Right next-window
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||||
# spliting windoww
|
# spliting windoww
|
||||||
unbind %
|
unbind %
|
||||||
unbind '"'
|
unbind '"'
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v
|
||||||
|
|
||||||
# sync panes
|
# sync panes
|
||||||
unbind b
|
unbind b
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue