From b5bf49305127fa6a4ca8ac421bad8928cea50bd5 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 13 Nov 2020 14:38:05 -0600 Subject: [PATCH] Vim things --- apps/de/waybar/config | 2 +- apps/neovim/.gitignore | 1 + apps/neovim/init.vim | 3 +++ apps/neovim/lsp.lua | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 apps/neovim/lsp.lua diff --git a/apps/de/waybar/config b/apps/de/waybar/config index 9b2fa63..e7871e9 100644 --- a/apps/de/waybar/config +++ b/apps/de/waybar/config @@ -1,7 +1,7 @@ { "layer": "top", "position": "bottom", - "output": ["DP-1", "eDP-1"], + "output": ["DP-2", "eDP-1"], "height": 32, "modules-left": ["sway/workspaces"], "modules-center": ["clock"], diff --git a/apps/neovim/.gitignore b/apps/neovim/.gitignore index 0b1d95b..99d48e7 100644 --- a/apps/neovim/.gitignore +++ b/apps/neovim/.gitignore @@ -1,3 +1,4 @@ /* !/.gitignore !/init.vim +!/lsp.lua diff --git a/apps/neovim/init.vim b/apps/neovim/init.vim index 4252bb2..9973c01 100644 --- a/apps/neovim/init.vim +++ b/apps/neovim/init.vim @@ -17,6 +17,7 @@ let g:fzf_preview_window = ['down:40%:hidden', 'ctrl-/'] call plug#begin($vimdir.'/plugged') Plug 'junegunn/vim-plug' " plugin manager should manage itself Plug 'sheerun/vim-polyglot' " handles language-specific configuration + Plug 'neovim/nvim-lspconfig' " deeper language integration via language servers Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' " helpers for using fzf in vim Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings @@ -135,4 +136,6 @@ au BufReadPost * \ | endif au FileType fzf tnoremap +luafile $vimdir/lsp.lua + " TODO: learn about the wildmenu `q:` diff --git a/apps/neovim/lsp.lua b/apps/neovim/lsp.lua new file mode 100644 index 0000000..fb0a968 --- /dev/null +++ b/apps/neovim/lsp.lua @@ -0,0 +1,4 @@ +local homedir = os.getenv('HOME') +require 'nvim_lsp'.elixirls.setup{ + cmd = { homedir..'/../code/open-source/elixir-ls/release/language_server.sh' }; +}