|
@@ -2,7 +2,7 @@
|
|
|
-- See `:help mapleader`
|
|
-- See `:help mapleader`
|
|
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
|
|
vim.g.mapleader = ' '
|
|
vim.g.mapleader = ' '
|
|
|
-vim.g.maplocalleader = ' '
|
|
|
|
|
|
|
+vim.g.maplocalleader = '\\'
|
|
|
|
|
|
|
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
|
|
vim.g.have_nerd_font = true
|
|
vim.g.have_nerd_font = true
|
|
@@ -12,6 +12,16 @@ vim.g.have_nerd_font = true
|
|
|
-- NOTE: You can change these options as you wish!
|
|
-- NOTE: You can change these options as you wish!
|
|
|
-- For more options, you can see `:help option-list`
|
|
-- For more options, you can see `:help option-list`
|
|
|
|
|
|
|
|
|
|
+-- formatoptions add "r"
|
|
|
|
|
+vim.o.formatoptions = 'jcroql'
|
|
|
|
|
+-- j = true,
|
|
|
|
|
+-- c = true,
|
|
|
|
|
+-- r = true,
|
|
|
|
|
+-- o = true,
|
|
|
|
|
+-- q = true,
|
|
|
|
|
+-- l = true,
|
|
|
|
|
+-- }
|
|
|
|
|
+
|
|
|
-- Set default indent and shift width to 4
|
|
-- Set default indent and shift width to 4
|
|
|
vim.o.shiftwidth = 4
|
|
vim.o.shiftwidth = 4
|
|
|
vim.o.tabstop = 4
|
|
vim.o.tabstop = 4
|
|
@@ -35,9 +45,9 @@ vim.o.mouse = 'a'
|
|
|
vim.o.showmode = false
|
|
vim.o.showmode = false
|
|
|
|
|
|
|
|
-- Use LSP for folding when possible
|
|
-- Use LSP for folding when possible
|
|
|
-vim.o.foldmethod="expr"
|
|
|
|
|
-vim.o.foldexpr="v:lua.vim.lsp.foldexpr()"
|
|
|
|
|
-vim.o.foldlevelstart=99
|
|
|
|
|
|
|
+vim.o.foldmethod = 'expr'
|
|
|
|
|
+vim.o.foldexpr = 'v:lua.vim.lsp.foldexpr()'
|
|
|
|
|
+vim.o.foldlevelstart = 99
|
|
|
|
|
|
|
|
-- Sync clipboard between OS and Neovim.
|
|
-- Sync clipboard between OS and Neovim.
|
|
|
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
|
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
|
@@ -155,11 +165,10 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
|
|
|
|
|
|
|
-- Fix caret jumping around when pressing tab. Requires luasnip
|
|
-- Fix caret jumping around when pressing tab. Requires luasnip
|
|
|
-- https://github.com/NvChad/NvChad/issues/1223#issuecomment-1159392548
|
|
-- https://github.com/NvChad/NvChad/issues/1223#issuecomment-1159392548
|
|
|
-vim.api.nvim_create_autocmd("InsertLeave", {
|
|
|
|
|
|
|
+vim.api.nvim_create_autocmd('InsertLeave', {
|
|
|
callback = function()
|
|
callback = function()
|
|
|
- if require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()]
|
|
|
|
|
- and not require("luasnip").session.jump_active then
|
|
|
|
|
- require("luasnip").unlink_current()
|
|
|
|
|
|
|
+ if require('luasnip').session.current_nodes[vim.api.nvim_get_current_buf()] and not require('luasnip').session.jump_active then
|
|
|
|
|
+ require('luasnip').unlink_current()
|
|
|
end
|
|
end
|
|
|
end,
|
|
end,
|
|
|
})
|
|
})
|
|
@@ -422,6 +431,9 @@ require('lazy').setup({
|
|
|
-- },
|
|
-- },
|
|
|
},
|
|
},
|
|
|
opts = {},
|
|
opts = {},
|
|
|
|
|
+ config = function()
|
|
|
|
|
+ require('luasnip.loaders.from_lua').load { paths = '~/.config/kickstart-nvim/snippets/lua/' }
|
|
|
|
|
+ end,
|
|
|
},
|
|
},
|
|
|
'folke/lazydev.nvim',
|
|
'folke/lazydev.nvim',
|
|
|
},
|
|
},
|
|
@@ -491,6 +503,19 @@ require('lazy').setup({
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ --- THEMES FOR NEOVIM
|
|
|
|
|
+ {
|
|
|
|
|
+ 'miikanissi/modus-themes.nvim',
|
|
|
|
|
+ priority = 1000,
|
|
|
|
|
+ opts = {
|
|
|
|
|
+ variant = 'tinted',
|
|
|
|
|
+ line_nr_column_background = false,
|
|
|
|
|
+ sign_column_background = true,
|
|
|
|
|
+ on_colors = function(color)
|
|
|
|
|
+ color.bg_active = color.bg_dim
|
|
|
|
|
+ end,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
'folke/tokyonight.nvim',
|
|
'folke/tokyonight.nvim',
|
|
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
|
@@ -503,6 +528,16 @@ require('lazy').setup({
|
|
|
}
|
|
}
|
|
|
end,
|
|
end,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ 'Yazeed1s/oh-lucy.nvim',
|
|
|
|
|
+ priority = 1000,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ 'embark-theme/vim',
|
|
|
|
|
+ lazy = false,
|
|
|
|
|
+ priority = 1000,
|
|
|
|
|
+ name = 'embark',
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
-- Highlight todo, notes, etc in comments
|
|
-- 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 } },
|
|
@@ -643,8 +678,7 @@ require('lazy').setup({
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-- Custom settings that require plugins
|
|
-- Custom settings that require plugins
|
|
|
-vim.cmd 'colorscheme tokyonight-moon'
|
|
|
|
|
|
|
+vim.cmd 'colorscheme modus_vivendi'
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
-- vim: ts=2 sts=2 sw=2 et
|
|
-- vim: ts=2 sts=2 sw=2 et
|