add editor config

This commit is contained in:
Tim Redband 2024-03-25 16:40:36 -04:00
parent 4c8dd5cc90
commit 3224136dab
3 changed files with 23 additions and 1 deletions

15
.editorconfig Normal file
View File

@ -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

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto eol=lf

View File

@ -162,6 +162,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
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',