Vim things

This commit is contained in:
Daniel Flanagan 2020-11-13 14:38:05 -06:00
parent 516e51d493
commit b5bf493051
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
4 changed files with 9 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ {
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
"output": ["DP-1", "eDP-1"], "output": ["DP-2", "eDP-1"],
"height": 32, "height": 32,
"modules-left": ["sway/workspaces"], "modules-left": ["sway/workspaces"],
"modules-center": ["clock"], "modules-center": ["clock"],

View file

@ -1,3 +1,4 @@
/* /*
!/.gitignore !/.gitignore
!/init.vim !/init.vim
!/lsp.lua

View file

@ -17,6 +17,7 @@ let g:fzf_preview_window = ['down:40%:hidden', 'ctrl-/']
call plug#begin($vimdir.'/plugged') call plug#begin($vimdir.'/plugged')
Plug 'junegunn/vim-plug' " plugin manager should manage itself Plug 'junegunn/vim-plug' " plugin manager should manage itself
Plug 'sheerun/vim-polyglot' " handles language-specific configuration 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', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' " helpers for using fzf in vim Plug 'junegunn/fzf.vim' " helpers for using fzf in vim
Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings
@ -135,4 +136,6 @@ au BufReadPost *
\ | endif \ | endif
au FileType fzf tnoremap <Esc> <C-c><C-c> au FileType fzf tnoremap <Esc> <C-c><C-c>
luafile $vimdir/lsp.lua
" TODO: learn about the wildmenu `q:` " TODO: learn about the wildmenu `q:`

4
apps/neovim/lsp.lua Normal file
View file

@ -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' };
}