tmux navigation

This commit is contained in:
2023-04-02 20:56:55 +01:00
parent 3ea919705b
commit 471b66f372
7 changed files with 52 additions and 4 deletions

View File

@ -18,3 +18,20 @@ bind - split-window -v
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set -g @plugin 'tmux-plugins/tpm'
# Tmux Plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
run '~/.tmux/plugins/tpm/tpm'

View File

@ -38,7 +38,7 @@ M.options = {
end
}
M.ui = {
theme = "everforest",
theme = "kanagawa",
theme_toggle = {"everforest", "everforest_light"},
lazyload = false,
}

View File

@ -23,4 +23,5 @@ return {
["sindrets/diffview.nvim"] = {},
["ThePrimeagen/refactoring.nvim"] = {},
["ThePrimeagen/harpoon"] = {},
["christoomey/vim-tmux-navigator"] = {},
}

View File

@ -2,7 +2,7 @@ local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require("lspconfig")
local servers = {"tailwindcss", "eslint", "cssls", "prismals", "gopls", "dockerls", "yamlls", "hls"}
local servers = {"tailwindcss", "eslint", "cssls", "prismals", "gopls", "dockerls", "yamlls", "hls", "dafny"}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup({
@ -11,6 +11,12 @@ for _, lsp in ipairs(servers) do
})
end
lspconfig.dafny.setup {
on_attach = on_attach,
root_dir = lspconfig.util.root_pattern("*.dfy"),
}
lspconfig.denols.setup {
on_attach = on_attach,
root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonc"),

View File

@ -43,4 +43,25 @@ M.capabilities.textDocument.completion.completionItem = {
},
}
lspconfig.lua_ls.setup {
on_attach = M.on_attach,
capabilities = M.capabilities,
settings = {
Lua = {
diagnostics = {
globals = { "vim" },
},
workspace = {
library = {
[vim.fn.expand "$VIMRUNTIME/lua"] = true,
[vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true,
},
maxPreload = 100000,
preloadFileSize = 10000,
},
},
},
}
return M

View File

@ -59,7 +59,7 @@ local options = {
},
},
extensions_list = { "themes", "terms", "harpoon" },
extensions_list = { "themes", "terms" },
}
-- check for any override

View File

@ -11,9 +11,10 @@ local plugins = {
end,
},
["NvChad/extensions"] = { module = { "telescope", "nvchad" } },
["NvChad/extensions"] = { branch = "main", module = { "telescope", "nvchad" } },
["NvChad/base46"] = {
branch = "master",
config = function()
local ok, base46 = pcall(require, "base46")
@ -24,6 +25,7 @@ local plugins = {
},
["NvChad/ui"] = {
branch = "main",
after = "base46",
config = function()
local present, nvchad_ui = pcall(require, "nvchad_ui")
@ -47,6 +49,7 @@ local plugins = {
["nvim-tree/nvim-web-devicons"] = {
after = "ui",
module = "nvim-web-devicons",
commit = "dd468f6991a4e447607097dfc89d47ae97d14dea",
config = function()
require("plugins.configs.others").devicons()
end,