Skip to content

Commit

Permalink
enable pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cschindlbeck committed Jan 15, 2024
1 parent a4fbaa2 commit ad1e243
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ repos:
args: ["--write-changes"]
exclude: CHANGELOG\.rst|\.(svg|pyc|drawio|dcf|eds)$|lazy-lock.json|example.lua

# - repo: https://github.com/Calinou/pre-commit-luacheck
# rev: v1.0.0
# hooks:
# - id: luacheck
- repo: https://github.com/Calinou/pre-commit-luacheck
rev: v1.0.0
hooks:
- id: luacheck

# - repo: https://github.com/JohnnyMorganz/StyLua
# rev: v0.19.1
# hooks:
# - id: stylua # or stylua-system / stylua-github
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.19.1
hooks:
- id: stylua # or stylua-system / stylua-github

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
Expand Down
2 changes: 1 addition & 1 deletion lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup

-- hightlight on yank
-- highlight on yank
autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
Expand Down
38 changes: 19 additions & 19 deletions lua/config/general.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ vim.g.loaded_netrw = 1 -- disable netrw
-- opt
local options = {
clipboard = "unnamedplus", -- connection to the system clipboard
colorcolumn = "120", -- show vertical column
expandtab = true, -- enable the use of space in tab
hlsearch = true, --
incsearch = true, --
ignorecase = true, -- case insensitive searching
number = true, -- show line numbers
relativenumber = false, -- relative numbers
scrolloff = 15, -- stop scrolling at the top and bottom until the end
shiftwidth = 2, -- number of spaces in indentation
sidescrolloff = 8, -- same for the sides
smartindent = true, --
softtabstop = 2, --
signcolumn = "yes", --
swapfile = false, -- no annoying swap file
tabstop = 2, -- number of spaces for tab
termguicolors = true, --
undofile = true, --
updatetime = 50, --
wrap = false, --
colorcolumn = "120", -- show vertical column
expandtab = true, -- enable the use of space in tab
hlsearch = true, --
incsearch = true, --
ignorecase = true, -- case insensitive searching
number = true, -- show line numbers
relativenumber = false, -- relative numbers
scrolloff = 15, -- stop scrolling at the top and bottom until the end
shiftwidth = 2, -- number of spaces in indentation
sidescrolloff = 8, -- same for the sides
smartindent = true, --
softtabstop = 2, --
signcolumn = "yes", --
swapfile = false, -- no annoying swap file
tabstop = 2, -- number of spaces for tab
termguicolors = true, --
undofile = true, --
updatetime = 50, --
wrap = false, --
}

for k, v in pairs(options) do
Expand Down

0 comments on commit ad1e243

Please sign in to comment.