disabled annoying linting! finally :)

This commit is contained in:
tastypawns 2025-03-27 18:57:22 +00:00
parent c81d870958
commit fb79c31416
1 changed files with 25 additions and 2 deletions

View File

@ -122,6 +122,9 @@ end)
-- Enable break indent -- Enable break indent
vim.opt.breakindent = true vim.opt.breakindent = true
-- disable autoformat
vim.g.autoformat = false
-- Save undo history -- Save undo history
vim.opt.undofile = true vim.opt.undofile = true
@ -160,10 +163,21 @@ vim.opt.scrolloff = 10
--turn off virtual lines ect. --turn off virtual lines ect.
vim.diagnostic.config { vim.diagnostic.config {
virtual_text = false, virtual_text = false,
virtual_lines = true, virtual_lines = false,
underline = 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', '<leader>lx', function()
isLspDiagnosticsVisible = not isLspDiagnosticsVisible
vim.diagnostic.config {
virtual_text = isLspDiagnosticsVisible,
underline = isLspDiagnosticsVisible,
}
end)
--pull in remaps --pull in remaps
--require 'remap' --require 'remap'
@ -606,7 +620,16 @@ require('lazy').setup({
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
pylsp = {}, pylsp = {
plugins = {
pylint = { enabled = false },
pyflakes = { enabled = false },
pycodestyle = { enabled = false },
pydocstyle = { enabled = false },
autopep8 = { enabled = false },
flake8 = { enabled = false },
},
},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --