Nvim: improvements to syntax highlighting and add a couple of plugins

This commit is contained in:
Marko Korhonen 2021-08-18 21:20:20 +03:00
parent cd62b162b8
commit e18f384d41
13 changed files with 27 additions and 41 deletions

View file

@ -2,5 +2,6 @@ require'nvim-treesitter.configs'.setup {
ensure_installed = 'maintained',
highlight = {enable = true},
indent = {enable = true},
incremental_selection = {enable = true}
incremental_selection = {enable = true},
context_commentstring = {enable = true}
}

View file

@ -20,7 +20,7 @@ require('packer').startup(function()
use {'wbthomason/packer.nvim', opt = true}
-- Colorscheme
use 'monsonjeremy/onedark.nvim'
use 'EdenEast/nightfox.nvim'
-- Git in signcolumn
use 'airblade/vim-gitgutter'
@ -41,7 +41,7 @@ require('packer').startup(function()
use 'tpope/vim-fugitive'
-- Indent characters
--use "lukas-reineke/indent-blankline.nvim"
-- use "lukas-reineke/indent-blankline.nvim"
-- Tree explorer
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
@ -64,9 +64,6 @@ require('packer').startup(function()
-- Install LSP executables
use 'kabouzeid/nvim-lspinstall'
-- Extensions for eclipse.jdt.ls
use 'mfussenegger/nvim-jdtls'
-- Completion framework
use 'nvim-lua/completion-nvim'
@ -77,9 +74,18 @@ require('packer').startup(function()
run = ':TSUpdate'
}
-- Syntax highlighting for languages
-- that are not supported by treesitter
use 'sheerun/vim-polyglot'
-- treesitter plugin for commentstring
use 'JoosepAlviste/nvim-ts-context-commentstring'
-- Additional plugins for formats not supported
-- by treesitter
use 'jamespeapen/swayconfig.vim'
-- mappings for commenting in code
use 'tpope/vim-commentary'
-- we all know this one
use 'tpope/vim-surround'
-- Formatter plugin
use 'sbdchd/neoformat'

View file

@ -5,7 +5,7 @@ local cmd = vim.cmd
------ Appearance ------
-- Set colorscheme
require('onedark').setup()
require('nightfox').set()
-- True colors
o.termguicolors = true

View file

@ -1,17 +0,0 @@
#!/usr/bin/env bash
JAR="$HOME/.local/share/nvim/lspinstall/java/plugins/org.eclipse.equinox.launcher_*.jar"
GRADLE_HOME=$HOME/gradle /usr/lib/jvm/default/bin/java \
-Declipse.application=org.eclipse.jdt.ls.core.id1 \
-Dosgi.bundles.defaultStartLevel=4 \
-Declipse.product=org.eclipse.jdt.ls.core.product \
-Dlog.protocol=true \
-Dlog.level=ALL \
-Xms1g \
-Xmx2G \
-jar $(echo "$JAR") \
-configuration "$HOME/.local/share/nvim/lspinstall/java/config_linux" \
-data "${1:-$HOME/workspace}" \
--add-modules=ALL-SYSTEM \
--add-opens java.base/java.util=ALL-UNNAMED \
--add-opens java.base/java.lang=ALL-UNNAMED