mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
neovim + chore
neovim: lsp: add ansiblels chore: cleanup shebang (remove 'sh -e' pattern)
This commit is contained in:
parent
0f2574a887
commit
359cc044b2
@ -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
|
-- Tailwind
|
||||||
-- lspconf.tailwindcss.setup {
|
-- lspconf.tailwindcss.setup {
|
||||||
-- on_attach = on_attach,
|
-- on_attach = on_attach,
|
||||||
|
@ -308,7 +308,8 @@ function M.filetype_conf()
|
|||||||
complex = {
|
complex = {
|
||||||
['*_log'] = 'log',
|
['*_log'] = 'log',
|
||||||
['G*_LOG'] = 'log',
|
['G*_LOG'] = 'log',
|
||||||
['.*waybar/config'] = 'jsonc'
|
['.*waybar/config'] = 'jsonc',
|
||||||
|
['.*lf/lfrc'] = 'sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
19
home/.config/nvim/scripts/lsp/ansiblels
Executable file
19
home/.config/nvim/scripts/lsp/ansiblels
Executable file
@ -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}
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/bashls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/bashls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/dockerls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/dockerls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/efm"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/efm"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/emmet_ls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/emmet_ls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/pyright"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/pyright"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sumneko_lua"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sumneko_lua"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tailwindcss"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tailwindcss"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tsserver"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/tsserver"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vimls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vimls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vscode"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/vscode"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
current_path="$PWD"
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/yamlls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/yamlls"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/python3
|
#!/usr/bin/env python
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
import subprocess
|
import subprocess
|
||||||
import json
|
import json
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
# Use in conjunction with `firefox-sync` script
|
# Use in conjunction with `firefox-sync` script
|
||||||
# (need to open Firefox at least once to generate a profile)
|
# (need to open Firefox at least once to generate a profile)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
echo "Number of make jobs: " | tr -d '\n' # 4
|
echo "Number of make jobs: " | tr -d '\n' # 4
|
||||||
read -r mj
|
read -r mj
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
git clone https://github.com/13-CF/afetch
|
git clone https://github.com/13-CF/afetch
|
||||||
cd afetch
|
cd afetch
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
git clone https://github.com/phenax/bsp-layout.git
|
git clone https://github.com/phenax/bsp-layout.git
|
||||||
cd bsp-layout
|
cd bsp-layout
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# You need ncurses-devel
|
# You need ncurses-devel
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# You need mpv-devel, meson, ninja, pkg-config
|
# You need mpv-devel, meson, ninja, pkg-config
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# Needs musl-fts, ncurses-devel
|
# Needs musl-fts, ncurses-devel
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# Need wlroots-devel to build
|
# Need wlroots-devel to build
|
||||||
git clone https://github.com/ifreund/river.git
|
git clone https://github.com/ifreund/river.git
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# You need ncurses-devel
|
# You need ncurses-devel
|
||||||
git clone https://github.com/runrin/tt.git
|
git clone https://github.com/runrin/tt.git
|
||||||
|
@ -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
|
curl -fLo ~/.local/share/fonts/vscode.ttf https://github.com/Canop/broot/blob/master/resources/icons/vscode/vscode.ttf
|
||||||
fc-cache -fv
|
fc-cache -fv
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
git clone https://github.com/soreau/wayland-logout.git
|
git clone https://github.com/soreau/wayland-logout.git
|
||||||
cd wayland-logout
|
cd wayland-logout
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# You need sqlite-devel
|
# You need sqlite-devel
|
||||||
git clone https://git.sr.ht/~fancycade/zkc
|
git clone https://git.sr.ht/~fancycade/zkc
|
||||||
|
Loading…
Reference in New Issue
Block a user