mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
NVim
- Shell script formatting: shellharden made 2nd choice and NOT 2nd formatter - Keymaps organized: more accessible, more consistent TODO - Ideavimrc fix backspace issue - Make the keymaps in sync with NVim
This commit is contained in:
@@ -8,46 +8,10 @@ return {
|
||||
|
||||
-- Linters are only required for dynamically typed languages
|
||||
lint.linters_by_ft = {
|
||||
-- javascript = { "eslint_d" },
|
||||
-- typescript = { "eslint_d" },
|
||||
-- javascriptreact = { "eslint_d" },
|
||||
-- typescriptreact = { "eslint_d" },
|
||||
svelte = { "eslint_d" },
|
||||
python = { "pylint" },
|
||||
["*"] = { "codespell" },
|
||||
}
|
||||
|
||||
-- Uncomment and use the below section in `package.json` to enable eslint_d
|
||||
-- "eslintConfig": {
|
||||
-- "root": true,
|
||||
-- "extends": [
|
||||
-- "eslint:recommended",
|
||||
-- "plugin:@typescript-eslint/recommended"
|
||||
-- ],
|
||||
-- "parser": "@typescript-eslint/parser",
|
||||
-- "parserOptions": {
|
||||
-- "project": [
|
||||
-- "./tsconfig.json"
|
||||
-- ]
|
||||
-- },
|
||||
-- "plugins": [
|
||||
-- "@typescript-eslint"
|
||||
-- ],
|
||||
-- "rules": {
|
||||
-- "@typescript-eslint/strict-boolean-expressions": [
|
||||
-- 2,
|
||||
-- {
|
||||
-- "allowString": false,
|
||||
-- "allowNumber": false
|
||||
-- }
|
||||
-- ]
|
||||
-- },
|
||||
-- "ignorePatterns": [
|
||||
-- "src/**/*.test.ts",
|
||||
-- "src/frontend/generated/*"
|
||||
-- ]
|
||||
-- }
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
|
||||
Reference in New Issue
Block a user