diff --git a/configs/.tmux.conf b/configs/.tmux.conf index 28eab2d..442ebdb 100644 --- a/configs/.tmux.conf +++ b/configs/.tmux.conf @@ -4,11 +4,16 @@ set-option -g prefix C-a bind-key C-a send-prefix # split panes using | and - -bind | split-window -h -bind - split-window -v +bind | split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" unbind '"' unbind % +# Scroll slower +bind -Tcopy-mode WheelUpPane send -N1 -X scroll-up +bind -Tcopy-mode WheelDownPane send -N1 -X scroll-down + # Enable mouse mode (tmux 2.1 and above) set -g mouse on diff --git a/configs/init.lua b/configs/init.lua index 9d9b83b..be0b1b0 100644 --- a/configs/init.lua +++ b/configs/init.lua @@ -24,8 +24,11 @@ paq:setup({verbose = true}) { "nvim-telescope/telescope.nvim", -- Postman like featuresi "NTBBloodbath/rest.nvim", + -- Obsidian / Roam features + "lervag/wiki.vim", -- Syntax / Autocomplete "neovim/nvim-lspconfig", + "kabouzeid/nvim-lspinstall", "nvim-lua/lsp-status.nvim", "hrsh7th/nvim-cmp", -- Autocompletion plugin "hrsh7th/cmp-nvim-lsp", -- LSP source for nvim-cmp @@ -62,9 +65,10 @@ if u.has_plugin("cmp") then g.hidden = true g.material_terminal_italics = 1 g.material_theme_style = "darker" - + g.wiki_root = "~/Notes" + g.wiki_filetypes = {"md"} + g.wiki_link_extension = ".md" cmd("colorscheme material") - -- Remove background color require("transparent").setup({enable = true}) cmd("highlight Normal guibg=none") @@ -84,7 +88,19 @@ if u.has_plugin("cmp") then } } require "nvim-treesitter.configs".setup { - ensure_installed = {"bash", "http", "svelte", "css", "svelte", "typescript", "javascript", "go", "lua", "yaml"}, + ensure_installed = { + "bash", + "yaml", + "http", + "svelte", + "css", + "svelte", + "typescript", + "javascript", + "go", + "lua", + "yaml" + }, highlight = {enable = true} } -- Toggleterm / Lazygit setup @@ -123,6 +139,7 @@ if u.has_plugin("cmp") then require "autocomplete" -- LSP Config + require "lspinstall".setup() require "lsp-utils" -- Autoformat diff --git a/configs/lua/lsp-utils.lua b/configs/lua/lsp-utils.lua index 4a13c0d..cb1ca93 100644 --- a/configs/lua/lsp-utils.lua +++ b/configs/lua/lsp-utils.lua @@ -19,8 +19,9 @@ local function on_attach(client) buf_set_keymap("n", "gr", "lua vim.lsp.buf.references()", opts) buf_set_keymap("n", "gi", "lua vim.lsp.buf.implementation()", opts) buf_set_keymap("n", "K", "lua vim.lsp.buf.hover()", opts) - buf_set_keymap("n", "rn", "lua vim.lsp.buf.rename()", opts) buf_set_keymap("n", "e", "lua vim.lsp.diagnostic.show_line_diagnostics()", opts) + buf_set_keymap("n", "rn", "lua vim.lsp.buf.rename()", opts) + buf_set_keymap("n", "", "lua vim.lsp.buf.code_action()", opts) buf_set_keymap("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) buf_set_keymap("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) @@ -48,6 +49,7 @@ local function on_attach(client) end end +local system_name = "" -- Lua Language Server if vim.fn.has("mac") == 1 then system_name = "macOS" @@ -101,6 +103,13 @@ nvim_lsp.gopls.setup { capabilities = lsp_status.capabilities } +-- Html Setup +nvim_lsp.html.setup { + on_attach = on_attach, + capabilities = lsp_status.capabilities, + filetypes = {"html"} +} + -- Svelte Language Server nvim_lsp.svelte.setup {