From d5377880fa767bff124ffe2d5d6530f4d554a0fe Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Fri, 9 Jun 2023 08:18:36 +0200 Subject: Add small configs --- Common/nvim/ftplugin/java.lua | 4 ++-- Common/nvim/lua/basic.lua | 3 ++- Common/nvim/lua/plugins.lua | 8 ++++++++ Common/nvim/nvim | 1 - 4 files changed, 12 insertions(+), 4 deletions(-) delete mode 120000 Common/nvim/nvim (limited to 'Common/nvim') diff --git a/Common/nvim/ftplugin/java.lua b/Common/nvim/ftplugin/java.lua index 9a7e0f0..77d3d50 100644 --- a/Common/nvim/ftplugin/java.lua +++ b/Common/nvim/ftplugin/java.lua @@ -44,7 +44,7 @@ local config = { } } -require("jdtls").start_or_attach(config) +--require("jdtls").start_or_attach(config) local current_buff = vim.api.nvim_get_current_buf -- After the language server attaches to the current buffer @@ -93,4 +93,4 @@ local java_on_attach = function(client, bufnr) --vim.api.nvim_command [[autocmd BufWritePre lua vim.lsp.buf.formatting_seq_sync()]] end -java_on_attach(nil, current_buff) +-- java_on_attach(nil, current_buff) diff --git a/Common/nvim/lua/basic.lua b/Common/nvim/lua/basic.lua index e731da8..57088dc 100755 --- a/Common/nvim/lua/basic.lua +++ b/Common/nvim/lua/basic.lua @@ -96,6 +96,7 @@ vim.cmd [[ highlight ColorColumn ctermbg=16 ]] -- Colorscheme -- default +vim.cmd [[ colorscheme morning ]] -- Workaround for gutter color vim.cmd [[ @@ -175,7 +176,7 @@ map('n', 'h', ':bprevious', silentnoremap) -- Tab commands map('n', 'tn', ':tabnew', silentnoremap) map('n', 'to', ':tabonly', silentnoremap) -map('n', 'tc', ':tabclose', silentnoremap) +--map('n', 'tc', ':tabclose', silentnoremap) map('n', 'tm', ':tabmove', silentnoremap) map('n', 't', ':tabnext', silentnoremap) diff --git a/Common/nvim/lua/plugins.lua b/Common/nvim/lua/plugins.lua index 3077560..26f217f 100755 --- a/Common/nvim/lua/plugins.lua +++ b/Common/nvim/lua/plugins.lua @@ -80,6 +80,7 @@ return require('packer').startup(function(use) ]] map("n", ";", ":Files", silentnoremap) map("n", ";", ":Rg", silentnoremap) + map("n", ";", ":BLines", silentnoremap) end, } @@ -168,6 +169,13 @@ return require('packer').startup(function(use) } use { 'smithbm2316/centerpad.nvim' } + -- Color preview + use { + 'lilydjwg/colorizer', + config = function() + end, + } + -- packer.nvim -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins diff --git a/Common/nvim/nvim b/Common/nvim/nvim deleted file mode 120000 index 3b8a801..0000000 --- a/Common/nvim/nvim +++ /dev/null @@ -1 +0,0 @@ -/home/jakob/_code/dotfiles/Common/nvim \ No newline at end of file -- cgit v1.2.3