diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2023-06-09 08:18:36 +0200 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2023-06-09 08:18:36 +0200 |
commit | d5377880fa767bff124ffe2d5d6530f4d554a0fe (patch) | |
tree | 70b8e2afc534729366380d686ddcf2b783d8128f /Common/nvim | |
parent | bb5818068337cc3e5f985123e61030298469368b (diff) | |
download | dotfiles-d5377880fa767bff124ffe2d5d6530f4d554a0fe.tar.gz dotfiles-d5377880fa767bff124ffe2d5d6530f4d554a0fe.zip |
Add small configs
Diffstat (limited to 'Common/nvim')
-rw-r--r-- | Common/nvim/ftplugin/java.lua | 4 | ||||
-rwxr-xr-x | Common/nvim/lua/basic.lua | 3 | ||||
-rwxr-xr-x | Common/nvim/lua/plugins.lua | 8 | ||||
l--------- | Common/nvim/nvim | 1 |
4 files changed, 12 insertions, 4 deletions
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 <buffer> 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', '<leader>h', ':bprevious<cr>', silentnoremap) -- Tab commands map('n', '<leader>tn', ':tabnew<cr>', silentnoremap) map('n', '<leader>to', ':tabonly<cr>', silentnoremap) -map('n', '<leader>tc', ':tabclose<cr>', silentnoremap) +--map('n', '<leader>tc', ':tabclose<cr>', silentnoremap) map('n', '<leader>tm', ':tabmove', silentnoremap) map('n', '<leader>t<leader>', ':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<cr>", silentnoremap) map("n", "<leader>;", ":Rg<cr>", silentnoremap) + map("n", "<leader><leader>;", ":BLines<cr>", 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 |