speedie-nvim | Add new config
This commit is contained in:
parent
f5183b7967
commit
f01ee3940e
|
@ -12,7 +12,7 @@ local defaultKeybindOptions = { noremap = true, silent = true } -- Default keybi
|
|||
LoadPreviousSessionOnLoad = true -- Load previous session or not
|
||||
SessionFile = '~/.config/nvim/.session.nvim' -- File where the previous buffer is stored
|
||||
LeaderKey = ' ' -- The leader key to use. Default is the space key.
|
||||
Theme = 'doom-one' -- Theme to use
|
||||
Theme = 'onenord' -- Theme to use
|
||||
Languages = { -- Languages to support - Used to configure highlighting
|
||||
'html', -- For HTML
|
||||
'css', -- For CSS
|
||||
|
@ -30,6 +30,13 @@ LanguageServers = { -- Language servers to use for LSP, run LspInstall <lang> to
|
|||
'lua_ls', -- For Lua
|
||||
'marksman', -- For Markdown
|
||||
}
|
||||
Themes = {
|
||||
{ 'rmehri01/onenord.nvim', branch = 'main' }, -- One Nord theme
|
||||
--[[
|
||||
{ 'romgrk/doom-one.vim' }, -- Doom-One theme
|
||||
{ 'catppuccin/nvim' }, -- Catppuccin theme(s)
|
||||
]]--
|
||||
} -- Themes to download as plugins
|
||||
Plugins = { -- Plugins to use
|
||||
{ 'nvim-telescope/telescope.nvim',
|
||||
dependencies = {
|
||||
|
@ -40,7 +47,6 @@ Plugins = { -- Plugins to use
|
|||
{ 'akinsho/bufferline.nvim' }, -- Tabs
|
||||
{ 'nvim-lualine/lualine.nvim' }, -- Status line
|
||||
{ 'm4xshen/autoclose.nvim' }, -- Autoclose brackets
|
||||
{ 'romgrk/doom-one.vim' }, -- Doom-One theme
|
||||
{ 'stevearc/conform.nvim' }, -- Formatting
|
||||
{ 'tpope/vim-fugitive' }, -- Git integration
|
||||
{ 'lewis6991/gitsigns.nvim' }, -- Provides Git icons
|
||||
|
@ -104,10 +110,7 @@ opt.termguicolors = true -- Enable true color
|
|||
opt.autochdir = true -- Automatically change directory to the file we're editing
|
||||
opt.background = 'dark' -- Set background to dark
|
||||
|
||||
-- Fallback colors and undercurl, if supported
|
||||
highlight(0, 'Normal', { fg='#ffffff', bg='#222222' })
|
||||
highlight(0, 'EndOfBuffer', { fg='#ffffff', bg='#222222' })
|
||||
highlight(0, 'Folded', { fg='#afeeee', bg='#333333' })
|
||||
-- Enable undercurl
|
||||
highlight(0, 'SpellBad', { undercurl=true, fg='#ff0000' })
|
||||
highlight(0, 'SpellCap', { undercurl=true, fg='#ffff00' })
|
||||
|
||||
|
|
|
@ -20,4 +20,11 @@ if not vim.loop.fs_stat(lazypath) then
|
|||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup(Plugins)
|
||||
local function combineTable(table1,table2)
|
||||
for i=1,#table2 do
|
||||
table1[#table1+1] = table2[i]
|
||||
end
|
||||
return table1
|
||||
end
|
||||
|
||||
require("lazy").setup(combineTable(Plugins, Themes))
|
||||
|
|
|
@ -12,6 +12,6 @@ bufferline.setup({
|
|||
diagnostics_indicator = function(count, level)
|
||||
local icon = level:match("error") and " " or ""
|
||||
return " " .. icon .. count
|
||||
end
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
-- https://git.speedie.site/speedie/speedie-nvim --
|
||||
]]--
|
||||
|
||||
require('lualine').setup()
|
||||
|
||||
local lualine = require('lualine')
|
||||
|
||||
-- Color table for highlights
|
||||
|
@ -43,13 +41,7 @@ local config = {
|
|||
-- Disable sections and component separators
|
||||
component_separators = '',
|
||||
section_separators = '',
|
||||
theme = {
|
||||
-- We are going to use lualine_c an lualine_x as left and
|
||||
-- right section. Both are highlighted by c theme . So we
|
||||
-- are just setting default looks o statusline
|
||||
normal = { c = { fg = colors.fg, bg = colors.bg } },
|
||||
inactive = { c = { fg = colors.fg, bg = colors.bg } },
|
||||
},
|
||||
theme = Theme,
|
||||
},
|
||||
sections = {
|
||||
-- these are to remove the defaults
|
||||
|
|
Loading…
Reference in a new issue