Browse Source

neovim + chore

neovim: lsp: add ansiblels
chore: cleanup shebang (remove 'sh -e' pattern)
master
FollieHiyuki 3 months ago
parent
commit
359cc044b2
Signed by: FollieHiyuki GPG Key ID: 813CF484F4993419
  1. 12
      home/.config/nvim/lua/modules/lsp.lua
  2. 3
      home/.config/nvim/lua/modules/tools.lua
  3. 19
      home/.config/nvim/scripts/lsp/ansiblels
  4. 2
      home/.config/nvim/scripts/lsp/bashls
  5. 2
      home/.config/nvim/scripts/lsp/cmake
  6. 2
      home/.config/nvim/scripts/lsp/dockerls
  7. 2
      home/.config/nvim/scripts/lsp/efm
  8. 2
      home/.config/nvim/scripts/lsp/emmet_ls
  9. 2
      home/.config/nvim/scripts/lsp/gopls
  10. 2
      home/.config/nvim/scripts/lsp/pyright
  11. 2
      home/.config/nvim/scripts/lsp/sqls
  12. 2
      home/.config/nvim/scripts/lsp/sumneko_lua
  13. 2
      home/.config/nvim/scripts/lsp/tailwindcss
  14. 2
      home/.config/nvim/scripts/lsp/tsserver
  15. 2
      home/.config/nvim/scripts/lsp/vimls
  16. 2
      home/.config/nvim/scripts/lsp/vscode
  17. 2
      home/.config/nvim/scripts/lsp/yamlls
  18. 2
      home/.local/bin/Wayland/wofiswaywin.py
  19. 2
      home/.local/bin/extract
  20. 2
      home/firefox/userjs-update.sh
  21. 2
      setup/Anime4K.sh
  22. 2
      setup/afetch.sh
  23. 2
      setup/bsp-layout.sh
  24. 2
      setup/cbonsai.sh
  25. 2
      setup/mpvpaper.sh
  26. 2
      setup/nnn.sh
  27. 2
      setup/river.sh
  28. 2
      setup/tt.sh
  29. 2
      setup/vscode-icons.sh
  30. 4
      setup/wayland-logout.sh
  31. 2
      setup/zkc.sh

12
home/.config/nvim/lua/modules/lsp.lua

@ -186,6 +186,18 @@ function M.lsp_conf()
}
}
-- Ansible
lspconf.ansiblels.setup {
on_attach = on_attach,
capabilities = capabilities,
cmd = {'node', servers_path .. '/ansiblels/out/server/src/server.js', '--stdio'},
filetypes = {'yaml', 'yaml.ansible'},
settings = {
-- python = {interpreterPath = 'python3'},
executionEnvironment = {enabled = false}
}
}
-- Tailwind
-- lspconf.tailwindcss.setup {
-- on_attach = on_attach,

3
home/.config/nvim/lua/modules/tools.lua

@ -308,7 +308,8 @@ function M.filetype_conf()
complex = {
['*_log'] = 'log',
['G*_LOG'] = 'log',
['.*waybar/config'] = 'jsonc'
['.*waybar/config'] = 'jsonc',
['.*lf/lfrc'] = 'sh'
}
}
}

19
home/.config/nvim/scripts/lsp/ansiblels

@ -0,0 +1,19 @@
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/ansiblels"
# Clone / Update
if [ -d "${server_path}" ]; then
cd ${server_path}
git pull
else
git clone https://github.com/ansible/ansible-language-server ${server_path}
cd ${server_path}
fi
# Build
npm ci
npm run compile
cd ${current_path}

2
home/.config/nvim/scripts/lsp/bashls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/bashls"

2
home/.config/nvim/scripts/lsp/cmake

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"

2
home/.config/nvim/scripts/lsp/dockerls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/dockerls"

2
home/.config/nvim/scripts/lsp/efm

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/efm"

2
home/.config/nvim/scripts/lsp/emmet_ls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/emmet_ls"

2
home/.config/nvim/scripts/lsp/gopls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"

2
home/.config/nvim/scripts/lsp/pyright

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/pyright"

2
home/.config/nvim/scripts/lsp/sqls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"

2
home/.config/nvim/scripts/lsp/sumneko_lua

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sumneko_lua"

2
home/.config/nvim/scripts/lsp/tailwindcss

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tailwindcss"

2
home/.config/nvim/scripts/lsp/tsserver

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tsserver"

2
home/.config/nvim/scripts/lsp/vimls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vimls"

2
home/.config/nvim/scripts/lsp/vscode

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vscode"

2
home/.config/nvim/scripts/lsp/yamlls

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/yamlls"

2
home/.local/bin/Wayland/wofiswaywin.py

@ -1,4 +1,4 @@
#!/bin/python3
#!/usr/bin/env python
from argparse import ArgumentParser
import subprocess
import json

2
home/.local/bin/extract

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
if [ -n "$1" ]; then
if [ -f "$1" ]; then

2
home/firefox/userjs-update.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Use in conjunction with `firefox-sync` script
# (need to open Firefox at least once to generate a profile)

2
setup/Anime4K.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
echo "Number of make jobs: " | tr -d '\n' # 4
read -r mj

2
setup/afetch.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
git clone https://github.com/13-CF/afetch
cd afetch

2
setup/bsp-layout.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
git clone https://github.com/phenax/bsp-layout.git
cd bsp-layout

2
setup/cbonsai.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need ncurses-devel

2
setup/mpvpaper.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need mpv-devel, meson, ninja, pkg-config

2
setup/nnn.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Needs musl-fts, ncurses-devel

2
setup/river.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# Need wlroots-devel to build
git clone https://github.com/ifreund/river.git

2
setup/tt.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need ncurses-devel
git clone https://github.com/runrin/tt.git

2
setup/vscode-icons.sh

@ -1,2 +1,4 @@
#!/bin/sh
curl -fLo ~/.local/share/fonts/vscode.ttf https://github.com/Canop/broot/blob/master/resources/icons/vscode/vscode.ttf
fc-cache -fv

4
setup/wayland-logout.sh

@ -1,6 +1,4 @@
#!/bin/sh -e
set -e
#!/bin/sh
git clone https://github.com/soreau/wayland-logout.git
cd wayland-logout

2
setup/zkc.sh

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh
# You need sqlite-devel
git clone https://git.sr.ht/~fancycade/zkc