diff --git a/ftplugin/c.lua b/ftplugin/c.lua index 853d0a49..8eaf4ae4 100644 --- a/ftplugin/c.lua +++ b/ftplugin/c.lua @@ -1,4 +1,3 @@ vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 -vim.opt.expandtab = true diff --git a/ftplugin/javascript.lua b/ftplugin/javascript.lua index cce7648a..ed7f6bb9 100644 --- a/ftplugin/javascript.lua +++ b/ftplugin/javascript.lua @@ -1,4 +1,3 @@ vim.opt.tabstop = 2 vim.opt.softtabstop = 2 vim.opt.shiftwidth = 2 -vim.opt.expandtab = true diff --git a/ftplugin/python.lua b/ftplugin/python.lua index 853d0a49..8eaf4ae4 100644 --- a/ftplugin/python.lua +++ b/ftplugin/python.lua @@ -1,4 +1,3 @@ vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 -vim.opt.expandtab = true diff --git a/ftplugin/typescript.lua b/ftplugin/typescript.lua index cce7648a..ed7f6bb9 100644 --- a/ftplugin/typescript.lua +++ b/ftplugin/typescript.lua @@ -1,4 +1,3 @@ vim.opt.tabstop = 2 vim.opt.softtabstop = 2 vim.opt.shiftwidth = 2 -vim.opt.expandtab = true diff --git a/init.lua b/init.lua index 5bb8843c..2ed8d188 100644 --- a/init.lua +++ b/init.lua @@ -18,6 +18,12 @@ vim.g.have_nerd_font = false -- Experiment for yourself to see if you like it! vim.opt.relativenumber = true +-- Tab settings +vim.opt.expandtab = true +vim.opt.tabstop = 4 +vim.opt.softtabstop = 4 +vim.opt.shiftwidth = 4 + -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -144,9 +150,14 @@ vim.opt.rtp:prepend(lazypath) -- -- To update plugins you can run -- :Lazy update +-- +local github_copilot_plugin = require 'plugins.copilot' + -- -- NOTE: Here is where you install your plugins. require('lazy').setup({ + github_copilot_plugin, + -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). --'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically @@ -167,18 +178,18 @@ require('lazy').setup({ -- require('gitsigns').setup({ ... }) -- -- See `:help gitsigns` to understand what the configuration keys do - { -- Adds git related signs to the gutter, as well as utilities for managing changes - 'lewis6991/gitsigns.nvim', - opts = { - signs = { - add = { text = '+' }, - change = { text = '~' }, - delete = { text = '_' }, - topdelete = { text = '‾' }, - changedelete = { text = '~' }, - }, - }, - }, + -- { -- Adds git related signs to the gutter, as well as utilities for managing changes + -- 'lewis6991/gitsigns.nvim', + -- opts = { + -- signs = { + -- add = { text = '+' }, + -- change = { text = '~' }, + -- delete = { text = '_' }, + -- topdelete = { text = '‾' }, + -- changedelete = { text = '~' }, + -- }, + -- }, + -- }, -- NOTE: Plugins can also be configured to run Lua code when they are loaded. -- @@ -840,7 +851,7 @@ require('lazy').setup({ -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + -- { import = 'plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua deleted file mode 100644 index be0eb9d8..00000000 --- a/lua/custom/plugins/init.lua +++ /dev/null @@ -1,5 +0,0 @@ --- You can add your own plugins here or in other files in this directory! --- I promise not to create any merge conflicts in this directory :) --- --- See the kickstart.nvim README for more information -return {}