From bad23f408beb7cad942d7e5911010909195af211 Mon Sep 17 00:00:00 2001 From: Younes Moustaghfir Date: Thu, 22 May 2025 15:10:00 +0200 Subject: [PATCH] chore: latest changes --- init.lua | 12 +++++++++--- lua/custom/plugins/barbar.lua | 22 ++++++++++++++++++++++ lua/custom/plugins/webdevicons.lua | 4 ++++ 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 lua/custom/plugins/barbar.lua create mode 100644 lua/custom/plugins/webdevicons.lua diff --git a/init.lua b/init.lua index ab1bedb2..6df64664 100644 --- a/init.lua +++ b/init.lua @@ -621,6 +621,11 @@ require('lazy').setup({ local servers = { -- clangd = {}, gopls = {}, + dockerls = {}, + yamlls = {}, + bashls = {}, + -- gh_actions_ls = {}, + marksman = {}, -- pyright = {}, rust_analyzer = {}, ruff = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -660,10 +665,9 @@ require('lazy').setup({ -- for you, so that they are available from within Neovim. local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { - 'stylua', -- Used to format Lua code + -- 'stylua', -- Used to format Lua code 'ruff', 'rust_analyzer', - -- 'go', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } @@ -678,6 +682,8 @@ require('lazy').setup({ require('lspconfig')[server_name].setup(server) end, }, + automatic_installation = true, + ensure_installed = ensure_installed, } end, }, @@ -969,7 +975,7 @@ require('lazy').setup({ -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the diff --git a/lua/custom/plugins/barbar.lua b/lua/custom/plugins/barbar.lua new file mode 100644 index 00000000..812fe203 --- /dev/null +++ b/lua/custom/plugins/barbar.lua @@ -0,0 +1,22 @@ +return { + 'romgrk/barbar.nvim', + dependencies = { + 'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status + 'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons + }, + init = function() + vim.g.barbar_auto_setup = false + end, + opts = { + -- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default: + -- animation = true, + -- insert_at_start = true, + -- …etc. + icons = { + filetype = { + enabled = false, + }, + }, + }, + version = '^1.0.0', -- optional: only update when a new 1.x version is released +} diff --git a/lua/custom/plugins/webdevicons.lua b/lua/custom/plugins/webdevicons.lua new file mode 100644 index 00000000..fc6db00c --- /dev/null +++ b/lua/custom/plugins/webdevicons.lua @@ -0,0 +1,4 @@ +return { + 'nvim-tree/nvim-web-devicons', + opts = {}, +}