From fb79c314161d23faf9851f2568308e32a54b620d Mon Sep 17 00:00:00 2001 From: tastypawns Date: Thu, 27 Mar 2025 18:57:22 +0000 Subject: [PATCH] disabled annoying linting! finally :) --- init.lua | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index f8670951..5515e916 100644 --- a/init.lua +++ b/init.lua @@ -122,6 +122,9 @@ end) -- Enable break indent vim.opt.breakindent = true +-- disable autoformat +vim.g.autoformat = false + -- Save undo history vim.opt.undofile = true @@ -160,10 +163,21 @@ vim.opt.scrolloff = 10 --turn off virtual lines ect. vim.diagnostic.config { virtual_text = false, - virtual_lines = true, + virtual_lines = false, underline = false, } +-- Disable ESLint LSP server and hide virtual text in Neovim +-- Add this to your init.lua or init.vim file +local isLspDiagnosticsVisible = true +vim.keymap.set('n', 'lx', function() + isLspDiagnosticsVisible = not isLspDiagnosticsVisible + vim.diagnostic.config { + virtual_text = isLspDiagnosticsVisible, + underline = isLspDiagnosticsVisible, + } +end) + --pull in remaps --require 'remap' @@ -606,7 +620,16 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - pylsp = {}, + pylsp = { + plugins = { + pylint = { enabled = false }, + pyflakes = { enabled = false }, + pycodestyle = { enabled = false }, + pydocstyle = { enabled = false }, + autopep8 = { enabled = false }, + flake8 = { enabled = false }, + }, + }, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs --