diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..77fab8b7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# Remove the line below if you want to inherit .editorconfig settings from higher directories +root = true + +#### Core EditorConfig Options #### +[*] +end_of_line = lf +charset = utf-8 +indent_style = space +indent_size = 4 +insert_final_newline = true +tab_width = 4 +trim_trailing_whitespace = true + +[*.{yml,yaml,lua,json}] +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/init.lua b/init.lua index 99be1e60..88c31c8b 100644 --- a/init.lua +++ b/init.lua @@ -162,6 +162,7 @@ vim.keymap.set('n', '', 'nohlsearch') vim.opt.shell = 'cmd.exe' vim.opt.autoread = true vim.opt.expandtab = true +vim.opt.tabstop = 4 -- Diagnostic keymaps vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) @@ -747,7 +748,12 @@ require('lazy').setup({ }, -- Highlight todo, notes, etc in comments - { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, + { + 'folke/todo-comments.nvim', + event = 'VimEnter', + dependencies = { 'nvim-lua/plenary.nvim' }, + opts = { signs = false }, + }, { -- Collection of various small independent plugins/modules 'echasnovski/mini.nvim',