roles/fish: use 'command' where possible; nvim: ansiblels -> ansiblelint

This commit is contained in:
Hoang Nguyen 2021-12-15 15:43:22 +07:00
parent e9f3be4c18
commit ae0f7df7d9
No known key found for this signature in database
GPG key ID: 813CF484F4993419
4 changed files with 19 additions and 18 deletions

View file

@ -39,21 +39,18 @@
creates: ~/.config/fish/functions/fisher.fish
- name: Install replay.fish
shell: fisher install jorgebucaran/replay.fish
command: fish -c 'fisher install jorgebucaran/replay.fish'
args:
executable: /usr/bin/fish
creates: ~/.config/fish/functions/replay.fish
- name: Install autopair.fish
shell: fisher install jorgebucaran/autopair.fish
command: fish -c 'fisher install jorgebucaran/autopair.fish'
args:
executable: /usr/bin/fish
creates: ~/.config/fish/conf.d/autopair.fish
- name: Install forgit
shell: fisher install wfxr/forgit
command: fish -c 'fisher install wfxr/forgit'
args:
executable: /usr/bin/fish
creates: ~/.config/fish/conf.d/forgit.plugin.fish
# - name: Clone pyenv

View file

@ -430,7 +430,10 @@ function M.project()
require('project_nvim').setup {
manual_mode = false,
detection_methods = {'lsp', 'pattern'},
patterns = {'.git', '_darcs', '.hg', '.bzr', '.svn', 'Makefile', 'package.json', '*.pro', 'Dockerfile', '>Code'},
patterns = {
'.git', '_darcs', '.hg', '.bzr', '.svn', '>Code',
'Makefile', 'package.json', '*.pro'
},
show_hidden = true,
silent_chdir = true,
datapath = vim.fn.stdpath('data')

View file

@ -197,17 +197,17 @@ lspconf.gopls.setup {
-- }
-- }
lspconf.ansiblels.setup {
cmd = {'node', servers_path .. '/ansiblels/out/server/src/server.js', '--stdio'},
on_attach = on_attach,
capabilities = capabilities,
settings = {
ansible = {
python = {interpreterPath = 'python3'},
executionEnvironment = {enabled = false}
}
}
}
-- lspconf.ansiblels.setup {
-- cmd = {'node', servers_path .. '/ansiblels/out/server/src/server.js', '--stdio'},
-- on_attach = on_attach,
-- capabilities = capabilities,
-- settings = {
-- ansible = {
-- python = {interpreterPath = 'python3'},
-- executionEnvironment = {enabled = false}
-- }
-- }
-- }
-- lspconf.tailwindcss.setup {
-- cmd = {servers_path .. '/tailwindcss/node_modules/.bin/tailwindcss-language-server', '--stdio'},

View file

@ -36,6 +36,7 @@ local sources = {
-- null_ls.builtins.formatting.stylelint.with {
-- command = linters_path .. '/stylelint/node_modules/.bin/stylelint'
-- },
null_ls.builtins.diagnostics.ansiblelint,
null_ls.builtins.diagnostics.shellcheck,
null_ls.builtins.diagnostics.codespell.with {
command = linters_path .. '/codespell/venv/bin/codespell'