summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rwxr-xr-xnvim/lua/config/lazy.lua9
-rwxr-xr-xnvim/lua/config/options.lua10
2 files changed, 13 insertions, 6 deletions
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
index 6544947..bd58b9d 100755
--- a/nvim/lua/config/lazy.lua
+++ b/nvim/lua/config/lazy.lua
@@ -5,18 +5,15 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
- { out, "WarningMsg" },
+ { out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
+
vim.opt.rtp:prepend(lazypath)
-vim.opt.clipboard = "unnamedplus"
-vim.api.nvim_create_autocmd("FileType", {
- command = "set formatoptions-=cro",
-})
vim.filetype.add({ extension = { cc = "cpp" } })
vim.filetype.add({ extension = { psv = "systemverilog" } })
@@ -40,7 +37,7 @@ require("lazy").setup({
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
- }, -- automatically check for plugin updates
+ }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua
index 0392213..0cae456 100755
--- a/nvim/lua/config/options.lua
+++ b/nvim/lua/config/options.lua
@@ -2,6 +2,16 @@
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
+vim.opt.clipboard = "unnamedplus"
+vim.api.nvim_create_autocmd("FileType", {
+ command = "set formatoptions-=cro",
+})
+
+vim.o.tabstop = 2 -- A TAB character looks like 4 spaces
+vim.o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
+vim.o.softtabstop = 2 -- Number of spaces inserted instead of a TAB character
+vim.o.shiftwidth = 2 -- Number of spaces inserted when indenting
+
-- Disable autoformat for systemverilog files
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "sv", "v", "systemverilog", "verilog" },