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
|
LoadPreviousSessionOnLoad = true -- Load previous session or not
|
||||||
SessionFile = '~/.config/nvim/.session.nvim' -- File where the previous buffer is stored
|
SessionFile = '~/.config/nvim/.session.nvim' -- File where the previous buffer is stored
|
||||||
LeaderKey = ' ' -- The leader key to use. Default is the space key.
|
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
|
Languages = { -- Languages to support - Used to configure highlighting
|
||||||
'html', -- For HTML
|
'html', -- For HTML
|
||||||
'css', -- For CSS
|
'css', -- For CSS
|
||||||
|
@ -30,6 +30,13 @@ LanguageServers = { -- Language servers to use for LSP, run LspInstall <lang> to
|
||||||
'lua_ls', -- For Lua
|
'lua_ls', -- For Lua
|
||||||
'marksman', -- For Markdown
|
'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
|
Plugins = { -- Plugins to use
|
||||||
{ 'nvim-telescope/telescope.nvim',
|
{ 'nvim-telescope/telescope.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
@ -40,7 +47,6 @@ Plugins = { -- Plugins to use
|
||||||
{ 'akinsho/bufferline.nvim' }, -- Tabs
|
{ 'akinsho/bufferline.nvim' }, -- Tabs
|
||||||
{ 'nvim-lualine/lualine.nvim' }, -- Status line
|
{ 'nvim-lualine/lualine.nvim' }, -- Status line
|
||||||
{ 'm4xshen/autoclose.nvim' }, -- Autoclose brackets
|
{ 'm4xshen/autoclose.nvim' }, -- Autoclose brackets
|
||||||
{ 'romgrk/doom-one.vim' }, -- Doom-One theme
|
|
||||||
{ 'stevearc/conform.nvim' }, -- Formatting
|
{ 'stevearc/conform.nvim' }, -- Formatting
|
||||||
{ 'tpope/vim-fugitive' }, -- Git integration
|
{ 'tpope/vim-fugitive' }, -- Git integration
|
||||||
{ 'lewis6991/gitsigns.nvim' }, -- Provides Git icons
|
{ '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.autochdir = true -- Automatically change directory to the file we're editing
|
||||||
opt.background = 'dark' -- Set background to dark
|
opt.background = 'dark' -- Set background to dark
|
||||||
|
|
||||||
-- Fallback colors and undercurl, if supported
|
-- Enable undercurl
|
||||||
highlight(0, 'Normal', { fg='#ffffff', bg='#222222' })
|
|
||||||
highlight(0, 'EndOfBuffer', { fg='#ffffff', bg='#222222' })
|
|
||||||
highlight(0, 'Folded', { fg='#afeeee', bg='#333333' })
|
|
||||||
highlight(0, 'SpellBad', { undercurl=true, fg='#ff0000' })
|
highlight(0, 'SpellBad', { undercurl=true, fg='#ff0000' })
|
||||||
highlight(0, 'SpellCap', { undercurl=true, fg='#ffff00' })
|
highlight(0, 'SpellCap', { undercurl=true, fg='#ffff00' })
|
||||||
|
|
||||||
|
|
|
@ -20,4 +20,11 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
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)
|
diagnostics_indicator = function(count, level)
|
||||||
local icon = level:match("error") and " " or ""
|
local icon = level:match("error") and " " or ""
|
||||||
return " " .. icon .. count
|
return " " .. icon .. count
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
-- https://git.speedie.site/speedie/speedie-nvim --
|
-- https://git.speedie.site/speedie/speedie-nvim --
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
require('lualine').setup()
|
|
||||||
|
|
||||||
local lualine = require('lualine')
|
local lualine = require('lualine')
|
||||||
|
|
||||||
-- Color table for highlights
|
-- Color table for highlights
|
||||||
|
@ -43,13 +41,7 @@ local config = {
|
||||||
-- Disable sections and component separators
|
-- Disable sections and component separators
|
||||||
component_separators = '',
|
component_separators = '',
|
||||||
section_separators = '',
|
section_separators = '',
|
||||||
theme = {
|
theme = 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 } },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
-- these are to remove the defaults
|
-- these are to remove the defaults
|
||||||
|
|
Loading…
Reference in a new issue