some stuff

This commit is contained in:
max_richter 2021-09-12 16:35:38 +02:00
parent 98077d54f5
commit 97e2713c43
3 changed files with 37 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -19,8 +19,9 @@ local function on_attach(client)
buf_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
buf_set_keymap("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts)
buf_set_keymap("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
buf_set_keymap("n", "<space>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
buf_set_keymap("n", "<space>e", "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", opts)
buf_set_keymap("n", "<space>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
buf_set_keymap("n", "<C-.>", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts)
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", 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 {