Browse Source

Vim things

master
Daniel Flanagan 2 months ago
parent
commit
b5bf493051
Signed by: lytedev GPG Key ID: 5B2020A0F9921EF4
4 changed files with 9 additions and 1 deletions
  1. +1
    -1
      apps/de/waybar/config
  2. +1
    -0
      apps/neovim/.gitignore
  3. +3
    -0
      apps/neovim/init.vim
  4. +4
    -0
      apps/neovim/lsp.lua

+ 1
- 1
apps/de/waybar/config View File

@ -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"],


+ 1
- 0
apps/neovim/.gitignore View File

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

+ 3
- 0
apps/neovim/init.vim View File

@ -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 <Esc> <C-c><C-c>
luafile $vimdir/lsp.lua
" TODO: learn about the wildmenu `q:`

+ 4
- 0
apps/neovim/lsp.lua 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' };
}

Loading…
Cancel
Save