Skip to content

Commit d78e6eb

Browse files
committed
commented out the tab hoarder
1 parent b1ebb60 commit d78e6eb

File tree

2 files changed

+16
-27
lines changed

2 files changed

+16
-27
lines changed

init.lua

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,10 @@ If you experience any errors while trying to install kickstart, run `:checkhealt
8181
I hope you enjoy your Neovim journey,
8282
- TJ
8383
84+
8485
P.S. You can delete this when you're done too. It's your config now! :)
8586
--]]
8687

87-
-- Set how many spaces a tab counts for
88-
-- See `:help 'tabstop'`
89-
vim.opt.tabstop = 2
90-
91-
-- Set the number of spaces inserted for each indentation
92-
-- See `:help 'shiftwidth'`
93-
vim.opt.shiftwidth = 2
94-
95-
-- Use spaces instead of tabs
96-
-- See `:help 'expandtab'`
97-
-- vim.opt.expandtab = true
98-
9988
-- Set <space> as the leader key
10089
-- See `:help mapleader`
10190
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
@@ -110,6 +99,18 @@ vim.g.have_nerd_font = true
11099
-- NOTE: You can change these options as you wish!
111100
-- For more options, you can see `:help option-list`
112101

102+
-- Set how many spaces a tab counts for
103+
-- See `:help 'tabstop'`
104+
vim.opt.tabstop = 2
105+
106+
-- Set the number of spaces inserted for each indentation
107+
-- See `:help 'shiftwidth'`
108+
vim.opt.shiftwidth = 2
109+
110+
-- Use spaces instead of tabs
111+
-- See `:help 'expandtab'`
112+
-- vim.opt.expandtab = true
113+
113114
-- Make line numbers default
114115
vim.opt.number = true
115116
-- You can also add relative line numbers, to help with jumping.
@@ -254,7 +255,7 @@ vim.opt.rtp:prepend(lazypath)
254255
-- NOTE: Here is where you install your plugins.
255256
require('lazy').setup({
256257
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
257-
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
258+
-- 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
258259

259260
-- NOTE: Plugins can also be added by using a table,
260261
-- with the first argument being the link and the following
@@ -681,9 +682,6 @@ require('lazy').setup({
681682
end,
682683
},
683684
}
684-
685-
-- Enable the `typescript-tools` plugin for TypeScript and JavaScript
686-
-- require('typescript-tools').setup {}
687685
end,
688686
},
689687

@@ -701,6 +699,7 @@ require('lazy').setup({
701699
},
702700
},
703701
opts = {
702+
notify = true,
704703
notify_on_error = false,
705704
format_on_save = function(bufnr)
706705
-- Disable "format_on_save lsp_fallback" for languages that don't
@@ -721,6 +720,7 @@ require('lazy').setup({
721720
-- is found.
722721
javascript = { { 'prettierd', 'prettier' } },
723722
typescript = { { 'prettierd', 'prettier' } },
723+
css = { 'stylelint' },
724724
},
725725
},
726726
},

lua/custom/plugins/init.lua

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,4 @@ return {
1010
vim.cmd 'Copilot setup'
1111
end,
1212
},
13-
{
14-
'sbdchd/neoformat',
15-
cmd = 'Neoformat',
16-
config = function()
17-
vim.g.neoformat_enabled_javascript = { 'prettier' }
18-
vim.g.neoformat_enabled_python = { 'black' }
19-
vim.g.neoformat_enabled_typescript = { 'prettier' }
20-
vim.g.neoformat_enabled_yaml = { 'prettier' }
21-
vim.g.neoformat_run_on_save = 1
22-
end,
23-
},
2413
}

0 commit comments

Comments
 (0)