update
This commit is contained in:
parent
618bf42ab5
commit
b4915bd9f6
42
init.lua
42
init.lua
|
|
@ -15,6 +15,9 @@ 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`
|
||||||
|
|
||||||
|
-- add the damn sign columns
|
||||||
|
vim.opt.signcolumn = 'yes'
|
||||||
|
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
vim.o.number = true
|
vim.o.number = true
|
||||||
vim.o.relativenumber = true
|
vim.o.relativenumber = true
|
||||||
|
|
@ -59,6 +62,9 @@ vim.o.undofile = true
|
||||||
vim.opt.swapfile = false
|
vim.opt.swapfile = false
|
||||||
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
|
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
|
||||||
|
|
||||||
|
-- close the damn folds
|
||||||
|
vim.opt.foldenable = false
|
||||||
|
|
||||||
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
|
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
|
||||||
vim.o.ignorecase = true
|
vim.o.ignorecase = true
|
||||||
vim.o.smartcase = true
|
vim.o.smartcase = true
|
||||||
|
|
@ -75,7 +81,7 @@ vim.keymap.set('n', '<leader>qq', vim.cmd.q)
|
||||||
vim.o.updatetime = 250
|
vim.o.updatetime = 250
|
||||||
|
|
||||||
-- Decrease mapped sequence wait time
|
-- Decrease mapped sequence wait time
|
||||||
vim.o.timeoutlen = 300
|
vim.o.timeoutlen = 1000
|
||||||
|
|
||||||
-- Configure how new splits should be opened
|
-- Configure how new splits should be opened
|
||||||
vim.o.splitright = true
|
vim.o.splitright = true
|
||||||
|
|
@ -311,7 +317,7 @@ require('lazy').setup({
|
||||||
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
||||||
|
|
||||||
-- Useful for getting pretty icons, but requires a Nerd Font.
|
-- Useful for getting pretty icons, but requires a Nerd Font.
|
||||||
{ 'nvim-tree/nvim-web-devicons', disabled = vim.g.have_nerd_font },
|
{ 'nvim-tree/nvim-web-devicons', enabled = false },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- Telescope is a fuzzy finder that comes with a lot of different things that
|
-- Telescope is a fuzzy finder that comes with a lot of different things that
|
||||||
|
|
@ -754,22 +760,22 @@ require('lazy').setup({
|
||||||
-- change the command in the config to whatever the name of that colorscheme is.
|
-- change the command in the config to whatever the name of that colorscheme is.
|
||||||
--
|
--
|
||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
||||||
'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.
|
||||||
config = function()
|
-- config = function()
|
||||||
---@diagnostic disable-next-line: missing-fields
|
-- ---@diagnostic disable-next-line: missing-fields
|
||||||
require('tokyonight').setup {
|
-- require('tokyonight').setup {
|
||||||
styles = {
|
-- styles = {
|
||||||
comments = { italic = false }, -- Disable italics in comments
|
-- comments = { italic = false }, -- Disable italics in comments
|
||||||
},
|
-- },
|
||||||
transparent = true,
|
-- transparent = true,
|
||||||
}
|
-- }
|
||||||
|
--
|
||||||
-- Load the colorscheme here.
|
-- -- Load the colorscheme here.
|
||||||
-- Like many other themes, this one has different styles, and you could load
|
-- -- Like many other themes, this one has different styles, and you could load
|
||||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
-- -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||||
vim.cmd.colorscheme 'tokyonight-night'
|
-- vim.cmd.colorscheme 'tokyonight-night'
|
||||||
end,
|
-- end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Highlight todo, notes, etc in comments
|
-- Highlight todo, notes, etc in comments
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "493890b87a81dfe6a7e577dbc364ae33fa482da9" },
|
"nvim-treesitter": { "branch": "main", "commit": "493890b87a81dfe6a7e577dbc364ae33fa482da9" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"rose-pine": { "branch": "main", "commit": "cf2a288696b03d0934da713d66c6d71557b5c997" },
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
|
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
|
||||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" },
|
"telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" },
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- lua/plugins/rose-pine.lua
|
||||||
|
return {
|
||||||
|
'rose-pine/neovim',
|
||||||
|
name = 'rose-pine',
|
||||||
|
config = function()
|
||||||
|
require('rose-pine').setup {
|
||||||
|
styles = {
|
||||||
|
transparency = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
vim.cmd 'colorscheme rose-pine-moon'
|
||||||
|
end,
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue