mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 23:08:01 +00:00
[neovim] Improve some linting experience
This commit is contained in:
parent
310fa9c7d7
commit
7a47f64b8f
@ -74,11 +74,11 @@ return packer.startup(function(use)
|
|||||||
|
|
||||||
-- Snippets
|
-- Snippets
|
||||||
use({ "L3MON4D3/LuaSnip", tag = "v1.*" })
|
use({ "L3MON4D3/LuaSnip", tag = "v1.*" })
|
||||||
use({ "rafamadriz/friendly-snippets", commit = "c93311fbcc840210a2c0db574177d84a35a2c9c1" })
|
use({ "rafamadriz/friendly-snippets", commit = "ef8caa5002e53977779ce8ab18a9c393ed624386" })
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
use({ "neovim/nvim-lspconfig", commit = "2b802ab1e94d595ca5cc7c55f9d1fb9b17f9754c" })
|
use({ "neovim/nvim-lspconfig", commit = "2b802ab1e94d595ca5cc7c55f9d1fb9b17f9754c" })
|
||||||
use({ "williamboman/mason.nvim", commit = "a41b90fceddcbafc22bf9780722e7dfbf7a482a8" })
|
use({ "williamboman/mason.nvim", commit = "6600d2af20fc8df1765fbc68283de2a4da17e190" })
|
||||||
use({ "williamboman/mason-lspconfig.nvim", commit = "a1e2219ecea273d52b1ce1d527dd3a93cfe5b396" })
|
use({ "williamboman/mason-lspconfig.nvim", commit = "a1e2219ecea273d52b1ce1d527dd3a93cfe5b396" })
|
||||||
use({ "jose-elias-alvarez/null-ls.nvim", commit = "07d4ed4c6b561914aafd787453a685598bec510f" })
|
use({ "jose-elias-alvarez/null-ls.nvim", commit = "07d4ed4c6b561914aafd787453a685598bec510f" })
|
||||||
use({ "RRethy/vim-illuminate", commit = "a6d0b28ea7d6b9d139374be1f94a16bd120fcda3" })
|
use({ "RRethy/vim-illuminate", commit = "a6d0b28ea7d6b9d139374be1f94a16bd120fcda3" })
|
||||||
@ -97,7 +97,7 @@ return packer.startup(function(use)
|
|||||||
|
|
||||||
-- Git
|
-- Git
|
||||||
use({ "lewis6991/gitsigns.nvim", tag = "v0.*" })
|
use({ "lewis6991/gitsigns.nvim", tag = "v0.*" })
|
||||||
use({ "sindrets/diffview.nvim", commit = "e0c81186dcb96f9199024cbe3400ed367e716037" })
|
use({ "sindrets/diffview.nvim", commit = "d5662d416bd1f12b73a288769ad8dedab7cc92c9" })
|
||||||
use({ "f-person/git-blame.nvim", commit = "d3afb1c57918720548effb42edec530232436378" })
|
use({ "f-person/git-blame.nvim", commit = "d3afb1c57918720548effb42edec530232436378" })
|
||||||
|
|
||||||
-- DAP
|
-- DAP
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
local servers = {
|
local servers = {
|
||||||
"sumneko_lua",
|
|
||||||
"gopls",
|
|
||||||
"pyright",
|
|
||||||
"bashls",
|
|
||||||
"jsonls",
|
|
||||||
"yamlls",
|
|
||||||
"ansiblels",
|
"ansiblels",
|
||||||
|
"bashls",
|
||||||
|
"gopls",
|
||||||
|
"jsonls",
|
||||||
|
"kotlin_language_server",
|
||||||
|
"pyright",
|
||||||
|
"sumneko_lua",
|
||||||
|
"yamlls",
|
||||||
}
|
}
|
||||||
|
|
||||||
local settings = {
|
local settings = {
|
||||||
|
@ -13,7 +13,8 @@ null_ls.setup({
|
|||||||
sources = {
|
sources = {
|
||||||
formatting.black.with({ extra_args = { "--fast" } }),
|
formatting.black.with({ extra_args = { "--fast" } }),
|
||||||
formatting.stylua,
|
formatting.stylua,
|
||||||
diagnostics.golangci_lint.with({ extra_args = { "--fast" } }),
|
formatting.prettier,
|
||||||
|
-- diagnostics.golangci_lint.with({ extra_args = { "--fast" } }),
|
||||||
diagnostics.cfn_lint,
|
diagnostics.cfn_lint,
|
||||||
diagnostics.hadolint,
|
diagnostics.hadolint,
|
||||||
diagnostics.markdownlint,
|
diagnostics.markdownlint,
|
||||||
|
9
.config/nvim/lua/plugins/lsp/settings/yamlls.lua
Normal file
9
.config/nvim/lua/plugins/lsp/settings/yamlls.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
settings = {
|
||||||
|
redhat = {
|
||||||
|
telemetry = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
@ -31,6 +31,7 @@ local filetype = {
|
|||||||
local lsp_progress = {
|
local lsp_progress = {
|
||||||
"lsp_progress",
|
"lsp_progress",
|
||||||
display_components = { "spinner" },
|
display_components = { "spinner" },
|
||||||
|
spinner_symbols = { "⠈⠁", "⠈⠑", "⠈⠱", "⠈⡱", "⢀⡱", "⢄⡱" },
|
||||||
}
|
}
|
||||||
|
|
||||||
local spaces = function()
|
local spaces = function()
|
||||||
|
Loading…
Reference in New Issue
Block a user