mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-16 21:27:44 +00:00
Nvim: improvements to syntax highlighting and add a couple of plugins
This commit is contained in:
parent
003c6f13c0
commit
1821340f03
@ -1,5 +1,5 @@
|
|||||||
actions:
|
actions:
|
||||||
nvim-packer-install: nvim +PackerInstall
|
nvim-packer-sync: nvim +PackerSync
|
||||||
config:
|
config:
|
||||||
backup: true
|
backup: true
|
||||||
banner: true
|
banner: true
|
||||||
@ -30,12 +30,9 @@ dotfiles:
|
|||||||
src: .config/nvim/init.lua
|
src: .config/nvim/init.lua
|
||||||
d_nvim_lua:
|
d_nvim_lua:
|
||||||
actions:
|
actions:
|
||||||
- nvim-packer-install
|
- nvim-packer-sync
|
||||||
dst: ~/.config/nvim/lua
|
dst: ~/.config/nvim/lua
|
||||||
src: .config/nvim/lua
|
src: .config/nvim/lua
|
||||||
d_nvim_scripts:
|
|
||||||
dst: ~/.config/nvim/scripts
|
|
||||||
src: .config/nvim/scripts
|
|
||||||
f_user-dirs.dirs:
|
f_user-dirs.dirs:
|
||||||
dst: ~/.config/user-dirs.dirs
|
dst: ~/.config/user-dirs.dirs
|
||||||
src: .config/user-dirs.dirs
|
src: .config/user-dirs.dirs
|
||||||
@ -194,7 +191,6 @@ profiles:
|
|||||||
- f_ssh.conf
|
- f_ssh.conf
|
||||||
- f_authorized_keys
|
- f_authorized_keys
|
||||||
- d_nvim_lua
|
- d_nvim_lua
|
||||||
- d_nvim_scripts
|
|
||||||
- f_nvim_init
|
- f_nvim_init
|
||||||
- f_gitconfig
|
- f_gitconfig
|
||||||
- f_alacritty.yml
|
- f_alacritty.yml
|
||||||
|
@ -2,5 +2,6 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
ensure_installed = 'maintained',
|
ensure_installed = 'maintained',
|
||||||
highlight = {enable = true},
|
highlight = {enable = true},
|
||||||
indent = {enable = true},
|
indent = {enable = true},
|
||||||
incremental_selection = {enable = true}
|
incremental_selection = {enable = true},
|
||||||
|
context_commentstring = {enable = true}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ require('packer').startup(function()
|
|||||||
use {'wbthomason/packer.nvim', opt = true}
|
use {'wbthomason/packer.nvim', opt = true}
|
||||||
|
|
||||||
-- Colorscheme
|
-- Colorscheme
|
||||||
use 'monsonjeremy/onedark.nvim'
|
use 'EdenEast/nightfox.nvim'
|
||||||
|
|
||||||
-- Git in signcolumn
|
-- Git in signcolumn
|
||||||
use 'airblade/vim-gitgutter'
|
use 'airblade/vim-gitgutter'
|
||||||
@ -41,7 +41,7 @@ require('packer').startup(function()
|
|||||||
use 'tpope/vim-fugitive'
|
use 'tpope/vim-fugitive'
|
||||||
|
|
||||||
-- Indent characters
|
-- Indent characters
|
||||||
--use "lukas-reineke/indent-blankline.nvim"
|
-- use "lukas-reineke/indent-blankline.nvim"
|
||||||
|
|
||||||
-- Tree explorer
|
-- Tree explorer
|
||||||
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
||||||
@ -64,9 +64,6 @@ require('packer').startup(function()
|
|||||||
-- Install LSP executables
|
-- Install LSP executables
|
||||||
use 'kabouzeid/nvim-lspinstall'
|
use 'kabouzeid/nvim-lspinstall'
|
||||||
|
|
||||||
-- Extensions for eclipse.jdt.ls
|
|
||||||
use 'mfussenegger/nvim-jdtls'
|
|
||||||
|
|
||||||
-- Completion framework
|
-- Completion framework
|
||||||
use 'nvim-lua/completion-nvim'
|
use 'nvim-lua/completion-nvim'
|
||||||
|
|
||||||
@ -77,9 +74,18 @@ require('packer').startup(function()
|
|||||||
run = ':TSUpdate'
|
run = ':TSUpdate'
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Syntax highlighting for languages
|
-- treesitter plugin for commentstring
|
||||||
-- that are not supported by treesitter
|
use 'JoosepAlviste/nvim-ts-context-commentstring'
|
||||||
use 'sheerun/vim-polyglot'
|
|
||||||
|
-- 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
|
-- Formatter plugin
|
||||||
use 'sbdchd/neoformat'
|
use 'sbdchd/neoformat'
|
||||||
|
@ -5,7 +5,7 @@ local cmd = vim.cmd
|
|||||||
------ Appearance ------
|
------ Appearance ------
|
||||||
|
|
||||||
-- Set colorscheme
|
-- Set colorscheme
|
||||||
require('onedark').setup()
|
require('nightfox').set()
|
||||||
|
|
||||||
-- True colors
|
-- True colors
|
||||||
o.termguicolors = true
|
o.termguicolors = true
|
||||||
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $term footclient
|
set $term footclient
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
bar {
|
bar {
|
||||||
swaybar_command waybar
|
swaybar_command waybar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
input type:keyboard {
|
input type:keyboard {
|
||||||
xkb_layout eu
|
xkb_layout eu
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
output * bg $wallpaper fill
|
output * bg $wallpaper fill
|
||||||
output eDP-1 position 0 0
|
output eDP-1 position 0 0
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
# Start applications in specific workspaces
|
# Start applications in specific workspaces
|
||||||
assign [app_id="telegramdesktop"] workspace 3
|
assign [app_id="telegramdesktop"] workspace 3
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
# start terminal
|
# start terminal
|
||||||
bindsym $mod+Return exec $term
|
bindsym $mod+Return exec $term
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
default_border none
|
default_border none
|
||||||
gaps inner 15
|
gaps inner 15
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# vim:ft=i3config
|
# vim:ft=swayconfig
|
||||||
|
|
||||||
exec {
|
exec {
|
||||||
foot -s
|
foot -s
|
||||||
|
Loading…
Reference in New Issue
Block a user