broke custom init in to different files
This commit is contained in:
parent
98690636a9
commit
3babca60e7
5
init.lua
5
init.lua
|
|
@ -716,12 +716,7 @@ require('lazy').setup({
|
|||
-- - settings (table): Override the default settings passed when initializing the server.
|
||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
clangd = {},
|
||||
gopls = {},
|
||||
pyright = {},
|
||||
rust_analyzer = {},
|
||||
jdtls = {},
|
||||
svelte = {},
|
||||
marksman = {},
|
||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||
--
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
return {
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require('catppuccin').setup {
|
||||
flavour = 'mocha',
|
||||
integrations = {
|
||||
telescope = true,
|
||||
treesitter = true,
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
},
|
||||
custom_highlights = function(colors)
|
||||
return {
|
||||
LineNr = { fg = colors.mauve },
|
||||
CursorLineNr = { fg = colors.lavender, bold = true },
|
||||
Visual = { bg = colors.surface1 },
|
||||
TelescopeSelection = { bg = colors.surface1 },
|
||||
}
|
||||
end,
|
||||
}
|
||||
vim.cmd.colorscheme 'catppuccin'
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
return { 'glacambre/firenvim', build = ':call firenvim#install(0)' }
|
||||
|
|
@ -10,48 +10,10 @@ vim.opt.wrap = false
|
|||
vim.keymap.set('n', '<C-k>', '15k', { desc = 'Scroll up and center' })
|
||||
vim.keymap.set('n', '<C-j>', '15j', { desc = 'Scroll down and center' })
|
||||
vim.keymap.set('n', '<C-c>', 'ggVGy', { desc = 'Copy file' })
|
||||
vim.keymap.set('n', '<leader>e', ':Explore<CR>', { desc = 'Open explorer' })
|
||||
vim.keymap.set('n', '<leader>e', ':Neotree<CR>', { noremap = true, silent = true })
|
||||
-- vim.keymap.set('n', '<leader>e', ':Explore<CR>', { desc = 'Open explorer' })
|
||||
|
||||
return {
|
||||
{
|
||||
'catppuccin/nvim',
|
||||
name = 'catppuccin',
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require('catppuccin').setup {
|
||||
flavour = 'mocha',
|
||||
integrations = {
|
||||
telescope = true,
|
||||
treesitter = true,
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
},
|
||||
custom_highlights = function(colors)
|
||||
return {
|
||||
LineNr = { fg = colors.mauve },
|
||||
CursorLineNr = { fg = colors.lavender, bold = true },
|
||||
Visual = { bg = colors.surface1 },
|
||||
TelescopeSelection = { bg = colors.surface1 },
|
||||
}
|
||||
end,
|
||||
}
|
||||
vim.cmd.colorscheme 'catppuccin'
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
-- Set lualine as statusline
|
||||
'nvim-lualine/lualine.nvim',
|
||||
-- See `:help lualine.txt`
|
||||
opts = {
|
||||
options = {
|
||||
icons_enabled = false,
|
||||
component_separators = '|',
|
||||
section_separators = '',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
'NeogitOrg/neogit',
|
||||
dependencies = {
|
||||
|
|
@ -62,14 +24,9 @@ return {
|
|||
},
|
||||
config = function()
|
||||
local neogit = require 'neogit'
|
||||
|
||||
vim.keymap.set('n', '<leader>gg', neogit.open, { desc = 'Open Neogit' })
|
||||
|
||||
neogit.setup {}
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'mfussenegger/nvim-jdtls',
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
-- Set lualine as statusline
|
||||
'nvim-lualine/lualine.nvim',
|
||||
-- See `:help lualine.txt`
|
||||
opts = {
|
||||
options = {
|
||||
icons_enabled = false,
|
||||
component_separators = '|',
|
||||
section_separators = '',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
'nvim-tree/nvim-tree.lua',
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
config = function()
|
||||
require('nvim-tree').setup {}
|
||||
end,
|
||||
}
|
||||
Loading…
Reference in New Issue