mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
docs(neovim): Code comments improved
This commit is contained in:
@@ -24,18 +24,6 @@ vim.lsp.enable({
|
|||||||
"yamlls",
|
"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
|
-- Setup native diagnostic
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
underline = false,
|
underline = false,
|
||||||
@@ -49,10 +37,6 @@ vim.diagnostic.config({
|
|||||||
enabled = true,
|
enabled = true,
|
||||||
severity = { min = vim.diagnostic.severity.ERROR },
|
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)
|
-- Change diagnostic symbols in the sign column (gutter)
|
||||||
|
|||||||
@@ -271,7 +271,6 @@ return {
|
|||||||
"python",
|
"python",
|
||||||
"dockerfile",
|
"dockerfile",
|
||||||
"latex",
|
"latex",
|
||||||
"norg",
|
|
||||||
"scss",
|
"scss",
|
||||||
"tsx",
|
"tsx",
|
||||||
"vue",
|
"vue",
|
||||||
@@ -280,7 +279,6 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
-- highlight = { enable = true },
|
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
|
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ return {
|
|||||||
|
|
||||||
-- TIP: `nvim-lspconfig` has default LSP configs in its DB which saves time
|
-- 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
|
-- 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({
|
require("mason-lspconfig").setup({
|
||||||
handlers = {
|
handlers = {
|
||||||
function(server_name)
|
function(server_name)
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ return {
|
|||||||
cond = require("config.util").is_not_vscode(),
|
cond = require("config.util").is_not_vscode(),
|
||||||
event = "BufReadPre",
|
event = "BufReadPre",
|
||||||
opts = {
|
opts = {
|
||||||
-- Session files stored at: ~/.config/nvim/sessions/
|
-- ~/.config/nvim/sessions/
|
||||||
dir = vim.fn.expand(vim.fn.stdpath("config") .. "/sessions/"),
|
dir = vim.fn.expand(vim.fn.stdpath("config") .. "/sessions/"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
-- Used in:
|
||||||
|
-- ../../after/ftplugin/markdown.lua
|
||||||
|
-- ../../after/ftplugin/text.lua
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
|
|||||||
Reference in New Issue
Block a user