commit faa2bb9303c86632cae5ae2c59a6c8134c1ad0af
parent 6952dffe314d53f5668f0f04585d6f4e70fe7160
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date: Thu, 20 Jun 2024 19:31:04 +0200
nvim: misc settings
Diffstat:
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/nvim/lua/config/mason-lspconfig.lua b/nvim/lua/config/mason-lspconfig.lua
@@ -7,6 +7,7 @@ local mason_lspconfig = require 'mason-lspconfig'
local servers = {
ansiblels = {},
lua_ls = {},
+ docker_compose_language_service = {},
rust_analyzer = {
['rust-analyzer'] = {
cargo = {
diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua
@@ -39,7 +39,21 @@ return {
null_ls.builtins.diagnostics.shellcheck,
null_ls.builtins.code_actions.shellcheck,
null_ls.builtins.diagnostics.phpcs,
- null_ls.builtins.diagnostics.vacuum,
+ -- null_ls.builtins.diagnostics.vacuum,
+ null_ls.builtins.diagnostics.yamllint.with({
+ extra_args = {
+ "-d", [[{
+ extends: default,
+ rules: {
+ line-length: {max: 160},
+ document-start: disable,
+ comments: {
+ min-spaces-from-content: 1,
+ },
+ }
+ }]]
+ }
+ }),
null_ls.builtins.diagnostics.checkmake,
null_ls.builtins.diagnostics.flake8.with({
extra_args = { "--max-line-length", "130" },
@@ -85,6 +99,7 @@ return {
vim.keymap.set('n', ']c', function() require('gitsigns').next_hunk() end, {buffer = true})
vim.keymap.set('n', '[c', function() require('gitsigns').prev_hunk() end, {buffer = true})
vim.keymap.set('n', ']=', function() require('gitsigns').preview_hunk_inline() end, {buffer = true})
+ vim.keymap.set('n', ']-', function() require('gitsigns').preview_hunk() end, {buffer = true})
vim.keymap.set('n', ']+', function() require('gitsigns').select_hunk() end, {buffer = true})
end,
},