removed heirline

This commit is contained in:
Sven Vogel 2023-11-22 18:58:50 +01:00
parent ea9a8d92bc
commit 6d0613f442
18 changed files with 159 additions and 95 deletions

View File

@ -1,2 +1,2 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
require("config.options")

View File

@ -0,0 +1,3 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here

View File

@ -5,12 +5,6 @@ map({ 'n', 'i' }, '<C-g>', '<cmd>Telescope<CR>', { noremap = true })
-- save file on <STRG + S>
map({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })
-- Resize window using <ctrl> arrow keys
map("n", "<C-Up>", "<cmd>resize +2<cr>", { desc = "Increase window height" })
map("n", "<C-Down>", "<cmd>resize -2<cr>", { desc = "Decrease window height" })
map("n", "<C-Left>", "<cmd>vertical resize -2<cr>", { desc = "Decrease window width" })
map("n", "<C-Right>", "<cmd>vertical resize +2<cr>", { desc = "Increase window width" })
-- new file
map("n", "<C-t>", "<cmd>enew<cr>", { desc = "New File" })

View File

@ -0,0 +1,17 @@
return {
lua_ls = {
mason = false
},
bash_ls = {
mason = false,
},
clangd = {
mason = false
},
arduino_language_server = {
mason = false
},
pyright = {
mason = false
},
}

View File

@ -10,7 +10,12 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
"LazyVim/LazyVim",
{ "LazyVim/LazyVim" },
-- import any extras modules here
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
-- import/override with your plugins
{ import = "plugins" },
},
defaults = {
@ -20,18 +25,26 @@ require("lazy").setup({
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit
autocmds = true, -- lazyvim.config.autocmds
keymaps = true, -- lazyvim.config.keymaps
-- version = "*", -- try installing the latest stable version for plugins that support semver
keymaps = true,
},
news = {
-- When enabled, NEWS.md will be shown when changed.
-- This only contains big new features and breaking changes.
lazyvim = false,
-- Same but for Neovim's news.txt
neovim = false,
-- install = { colorscheme = { "tokyonight" } },
checker = { enabled = true }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
-- icons used by other plugins
-- stylua: ignore
icons = {
misc = {
dots = "󰇘",
@ -46,13 +59,13 @@ require("lazy").setup({
diagnostics = {
Error = "",
Warn = "",
Hint = " ",
Hint = " ",
Info = "",
},
git = {
added = "+",
modified = "~",
removed = "-",
added = "",
modified = "",
removed = "",
},
kinds = {
Array = "",
@ -96,20 +109,4 @@ require("lazy").setup({
Variable = "󰀫 ",
},
},
checker = { enabled = true }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_pilugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})

View File

@ -12,8 +12,8 @@ return {
separator_style = { "", "" },
offsets = {
{
filetype = 'NvimTree',
text = '',
filetype = 'neo-tree',
text = 'Explorer',
separator = true
}
},

View File

@ -17,4 +17,3 @@ return {
}
}
}

View File

@ -41,7 +41,7 @@ return {
},
{
"diagnostics",
sources = { 'nvim_lsp' },
sources = { 'nvim_diagnostic' },
symbols = {
error = icons.diagnostics.Error,
warn = icons.diagnostics.Warn,

19
lua/plugins/navic.lua Normal file
View File

@ -0,0 +1,19 @@
return {
{
"SmiteshP/nvim-navic",
init = function()
vim.g.navic_silence = true
require("lazyvim.util").lsp.on_attach(function(client, buffer)
if client.supports_method("textDocument/documentSymbol") then
require("nvim-navic").attach(client, buffer)
end
end)
end,
opts = {
highlight = true,
icons = require("lazyvim.config").icons.kinds,
separator = "",
depth_limit = 5,
}
}
}

53
lua/plugins/neo-tree.lua Normal file
View File

@ -0,0 +1,53 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
opts = {
popup_border_style = "rounded",
enable_git_status = true,
enable_diagnostics = true,
open_files_do_not_replace_types = { "terminal", "trouble", "qf" }, -- when opening files, do not use windows containing these filetypes or buftypes
default_component_configs = {
indent = {
indent_size = 2,
padding = 1, -- extra padding on left hand side
-- indent guides
with_markers = true,
indent_marker = "",
last_indent_marker = "",
highlight = "NeoTreeIndentMarker",
-- expander config, needed for nesting files
with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
expander_collapsed = "",
expander_expanded = "",
expander_highlight = "NeoTreeExpander",
},
git_status = {
symbols = {
-- Change type
added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name
modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
deleted = "", -- this can only be used in the git_status source
renamed = "󰁕", -- this can only be used in the git_status source
-- Status type
untracked = "",
ignored = "",
unstaged = "󰄱 ",
staged = "",
conflict = "",
}
},
modified = {
symbol = "+",
highlight = "NeoTreeModified",
},
}
}
}
}

View File

@ -16,6 +16,9 @@ return {
},
completion = {
completeopt = "menu,menuone,noinsert",
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,Search:None",
col_offset = -3,
side_padding = 0,
},
snippet = {
expand = function(args)
@ -67,7 +70,7 @@ return {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-path",
'hrsh7th/cmp-cmdline',
"saadparwaiz1/cmp_luasnip",
}
}

View File

@ -39,14 +39,7 @@ return {
formatting_options = nil,
timeout_ms = nil,
},
servers = {
lua_ls = {
mason = false
},
rust_analyzer = {
mason = false
},
},
servers = require("config.language-server"),
setup = {
}
},

View File

@ -5,6 +5,13 @@ return {
excluded_filetypes = {
'dashboard'
},
signs_on_startup = {
'conflicts',
'diagnostics',
'search',
'cursor'
},
}
}
}

View File

@ -1,42 +0,0 @@
return {
{
"nvim-tree/nvim-tree.lua",
opts = {
hijack_cursor = true,
renderer = {
full_name = true,
group_empty = true,
special_files = {},
symlink_destination = false,
indent_markers = {
enable = true,
},
icons = {
git_placement = "signcolumn",
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
},
},
},
update_focused_file = {
enable = true,
update_root = true,
ignore_list = { "help" },
},
diagnostics = {
enable = true,
show_on_dirs = true,
icons = {
hint = "",
info = "",
warning = "",
error = "",
}
},
}
},
}

View File

@ -0,0 +1,5 @@
return {
{
"karb94/neoscroll.nvim"
}
}

View File

@ -0,0 +1,11 @@
return {
{
'simrat39/symbols-outline.nvim',
opts = {
show_guides = true,
fold_markers = { '', '' },
autofold_depth = 3,
show_symbol_details = false
}
}
}

View File

@ -2,6 +2,8 @@ return {
{
"folke/trouble.nvim",
opts = {
use_diagnostic_signs = true
},
}
}

3
stylua.toml Normal file
View File

@ -0,0 +1,3 @@
indent_type = "Spaces"
indent_width = 4
column_width = 120