docs(neovim): Code comments improved

This commit is contained in:
Pratik Tripathy
2025-09-01 16:55:09 +05:30
parent 6054fa7c2a
commit 06d2c98119
6 changed files with 15 additions and 20 deletions

View File

@@ -24,18 +24,6 @@ vim.lsp.enable({
"yamlls",
})
-- TIP: On new systems, install these through Mason
-- They aren't usually found on either OS installer or brew-linux
---@diagnostic disable-next-line: unused-local
local to_installed = vim.tbl_keys({
"codelldb",
"css-lsp",
"docker-compose-language-service",
"html-lsp",
"json-lsp",
"sqlls",
})
-- Setup native diagnostic
vim.diagnostic.config({
underline = false,
@@ -49,10 +37,6 @@ vim.diagnostic.config({
enabled = true,
severity = { min = vim.diagnostic.severity.ERROR },
},
-- virtual_lines = {
-- current_line = true,
-- severity = { min = vim.diagnostic.severity.INFO },
-- },
})
-- Change diagnostic symbols in the sign column (gutter)

View File

@@ -271,7 +271,6 @@ return {
"python",
"dockerfile",
"latex",
"norg",
"scss",
"tsx",
"vue",
@@ -280,7 +279,6 @@ return {
},
auto_install = true,
-- highlight = { enable = true },
indent = { enable = true },
incremental_selection = {

View File

@@ -18,7 +18,7 @@ return {
-- TIP: `nvim-lspconfig` has default LSP configs in its DB which saves time
-- Useful even after NeoVim 0.11, which made LSP setup much easier
-- Configs in `nvim/lsp/*` are APPENDED to each LSP setup here
-- Configs in ../../lsp/* are APPENDED to each LSP setup here
require("mason-lspconfig").setup({
handlers = {
function(server_name)

View File

@@ -371,7 +371,7 @@ return {
cond = require("config.util").is_not_vscode(),
event = "BufReadPre",
opts = {
-- Session files stored at: ~/.config/nvim/sessions/
-- ~/.config/nvim/sessions/
dir = vim.fn.expand(vim.fn.stdpath("config") .. "/sessions/"),
},
},

View File

@@ -1,3 +1,12 @@
-- Used in:
-- ../../after/ftplugin/javascript.jsx.lua
-- ../../after/ftplugin/javascript.lua
-- ../../after/ftplugin/javascriptreact.lua
-- ../../after/ftplugin/typescript.jsx.lua
-- ../../after/ftplugin/typescript.lua
-- ../../after/ftplugin/typescriptreact.lua
-- ../../after/ftplugin/vue.lua
local M = {}
function M.setup()

View File

@@ -1,3 +1,7 @@
-- Used in:
-- ../../after/ftplugin/markdown.lua
-- ../../after/ftplugin/text.lua
local M = {}
function M.setup()