Merge branch 'master' of ssh://gitea.olympuslab.net:522/afonso/dotfiles

This commit is contained in:
Afonso Franco 2022-12-12 11:53:56 +00:00
commit 2442ba64b0
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
4 changed files with 85 additions and 32 deletions

View file

@ -0,0 +1,40 @@
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'auto',
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
}
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff', 'diagnostics'},
lualine_c = {'filename'},
lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_y = {'progress'},
lualine_z = {'location'}
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {'filename'},
lualine_x = {'location'},
lualine_y = {},
lualine_z = {}
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}

View file

@ -31,6 +31,16 @@ local plugins = packer.startup({function(use)
config = function() require("nvim-autopairs").setup {} config = function() require("nvim-autopairs").setup {}
end end
} }
use {'kyazdani42/nvim-web-devicons'}
use {
'nvim-lualine/lualine.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
config = function ()
require 'plugins.lualine'
end
}
-------------------------------------------------------LSP---------------------------------------------- -------------------------------------------------------LSP----------------------------------------------
use { "williamboman/mason.nvim", use { "williamboman/mason.nvim",
@ -66,22 +76,6 @@ local plugins = packer.startup({function(use)
end end
} }
--- use {"ms-jpq/coq_nvim",
--- branch = 'coq',
--- config = function ()
--- vim.g.coq_settings = { auto_start = 'shut-up'}
--- end
---
--- }
---
-- use {"ms-jpq/coq_nvim",
-- branch = 'artifacts',
-- }
-------------------------------------------------------------------------------------------
use {'nvim-tree/nvim-tree.lua', use {'nvim-tree/nvim-tree.lua',
requires = { requires = {
@ -92,15 +86,23 @@ local plugins = packer.startup({function(use)
end end
} }
use { "feline-nvim/feline.nvim" } use { "feline-nvim/feline.nvim" }
-------------------------------------------THEMES------------------------------------------
use {"joshdick/onedark.vim" } use {"joshdick/onedark.vim" }
use {"catppuccin/nvim"}
-------------------------------------------------------------------------------------------
use {"nvim-treesitter/nvim-treesitter", use {"nvim-treesitter/nvim-treesitter",
config = function() config = function()
require "plugins.treesitter" require "plugins.treesitter"
end end
} }
use {"nvim-treesitter/nvim-treesitter-context",
config = function()
require "plugins.treesitter-context"
end
}
--Tabs --Tabs
use {'romgrk/barbar.nvim', use {'romgrk/barbar.nvim',
requires = 'kyazdani42/nvim-web-devicons', requires = 'kyazdani42/nvim-web-devicons',
@ -116,20 +118,6 @@ local plugins = packer.startup({function(use)
requires = { {'nvim-lua/plenary.nvim'} }, requires = { {'nvim-lua/plenary.nvim'} },
config = function() require('plugins.telescope') end config = function() require('plugins.telescope') end
} }
--live share like functionality
use {"jbyuki/instant.nvim"}
use {"narutoxy/silicon.lua",
requires = { "nvim-lua/plenary.nvim" },
config = function()
require('silicon').setup({
font = "FiraCode Nerd Font Mono",
output = "~/Pictures/SILICON_${year}-${month}-${date}.png",
debug = true
})
require "plugins.silicon"
end
}
use {"tpope/vim-surround"} use {"tpope/vim-surround"}

View file

@ -1,4 +1,21 @@
local colorscheme = "onedark"
--local colorscheme = "onedark"
require("catppuccin").setup({
flavour = "frappe", -- latte, frappe, macchiato, mocha
styles = {
comments = { "italic" },
conditionals = { "italic" },
},
integrations = {
cmp = true,
nvimtree = true,
telescope = true,
},
})
local colorscheme = "catppuccin"
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then if not status_ok then

View file

@ -0,0 +1,8 @@
require'treesitter-context'.setup{
patterns = {
rust = {
'impl_item',
'match',
},
}
}