feat(plugins,lualine): Add neo-tree, Comment.nvim, presence.nvim, set bufferline

This commit is contained in:
Jiří Štefka 2024-09-18 02:42:21 +02:00
parent 165f2b5173
commit c211d60155
Signed by: jiriks74
GPG Key ID: 1D5E30D3DB2264DE
5 changed files with 100 additions and 31 deletions

53
flake.lock generated

@ -1,5 +1,21 @@
{ {
"nodes": { "nodes": {
"comment-nvim": {
"flake": false,
"locked": {
"lastModified": 1717957420,
"narHash": "sha256-h0kPue5Eqd5aeu4VoLH45pF0DmWWo1d8SnLICSQ63zc=",
"owner": "numToStr",
"repo": "Comment.nvim",
"rev": "e30b7f2008e52442154b66f7c519bfd2f1e32acb",
"type": "github"
},
"original": {
"owner": "numToStr",
"repo": "Comment.nvim",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@ -55,6 +71,22 @@
"type": "github" "type": "github"
} }
}, },
"neotree": {
"flake": false,
"locked": {
"lastModified": 1726542367,
"narHash": "sha256-Lqt0KJNT9HmpJwZoWChYeVBrDWhscRe8COqVCwgcTwk=",
"owner": "nvim-neo-tree",
"repo": "neo-tree.nvim",
"rev": "a77af2e764c5ed4038d27d1c463fa49cd4794e07",
"type": "github"
},
"original": {
"owner": "nvim-neo-tree",
"repo": "neo-tree.nvim",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1708475490, "lastModified": 1708475490,
@ -105,11 +137,30 @@
"type": "github" "type": "github"
} }
}, },
"presence-nvim": {
"flake": false,
"locked": {
"lastModified": 1723359933,
"narHash": "sha256-qC8iNanAZ+WoqUfbJEvrebuR8ipEp6qCHS18oDr8qzQ=",
"owner": "jiriks74",
"repo": "presence.nvim",
"rev": "25076ce0921d68a1d998a66daccc68f9d5d7b087",
"type": "github"
},
"original": {
"owner": "jiriks74",
"repo": "presence.nvim",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"comment-nvim": "comment-nvim",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"gen-luarc": "gen-luarc", "gen-luarc": "gen-luarc",
"nixpkgs": "nixpkgs_2" "neotree": "neotree",
"nixpkgs": "nixpkgs_2",
"presence-nvim": "presence-nvim"
} }
}, },
"systems": { "systems": {

@ -8,6 +8,18 @@
# Add bleeding-edge plugins here. # Add bleeding-edge plugins here.
# They can be updated with `nix flake update` (make sure to commit the generated flake.lock) # They can be updated with `nix flake update` (make sure to commit the generated flake.lock)
presence-nvim = {
url = "github:jiriks74/presence.nvim";
flake = false;
};
comment-nvim = {
url = "github:numToStr/Comment.nvim";
flake = false;
};
neotree = {
url = "github:nvim-neo-tree/neo-tree.nvim";
flake = false;
};
# wf-nvim = { # wf-nvim = {
# url = "github:Cassin01/wf.nvim"; # url = "github:Cassin01/wf.nvim";
# flake = false; # flake = false;

@ -78,6 +78,8 @@ with final.pkgs.lib; let
nvim-surround # https://github.com/kylechui/nvim-surround/ nvim-surround # https://github.com/kylechui/nvim-surround/
nvim-treesitter-textobjects # https://github.com/nvim-treesitter/nvim-treesitter-textobjects/ nvim-treesitter-textobjects # https://github.com/nvim-treesitter/nvim-treesitter-textobjects/
nvim-ts-context-commentstring # https://github.com/joosepalviste/nvim-ts-context-commentstring/ nvim-ts-context-commentstring # https://github.com/joosepalviste/nvim-ts-context-commentstring/
(mkNvimPlugin inputs.comment-nvim "Comment.nvim") # https://github.com/numToStr/Comment.nvim
(mkNvimPlugin inputs.neotree "neo-tree.nvim") # https://github.com/numToStr/Comment.nvim
# ^ navigation/editing enhancement plugins # ^ navigation/editing enhancement plugins
# Useful utilities # Useful utilities
@ -89,9 +91,12 @@ with final.pkgs.lib; let
plenary-nvim plenary-nvim
nvim-web-devicons nvim-web-devicons
vim-repeat vim-repeat
nui-nvim
nvim-web-devicons
# ^ libraries that other plugins depend on # ^ libraries that other plugins depend on
# bleeding-edge plugins from flake inputs # bleeding-edge plugins from flake inputs
(mkNvimPlugin inputs.presence-nvim "presence.nvim")
# (mkNvimPlugin inputs.wf-nvim "wf.nvim") # (example) keymap hints | https://github.com/Cassin01/wf.nvim # (mkNvimPlugin inputs.wf-nvim "wf.nvim") # (example) keymap hints | https://github.com/Cassin01/wf.nvim
# ^ bleeding-edge plugins from flake inputs # ^ bleeding-edge plugins from flake inputs
which-key-nvim which-key-nvim

@ -43,36 +43,36 @@ require('lualine').setup {
theme = 'auto', theme = 'auto',
}, },
-- Example top tabline configuration (this may clash with other plugins) -- Example top tabline configuration (this may clash with other plugins)
-- tabline = { tabline = {
-- lualine_a = { lualine_a = {
-- { {
-- 'tabs', 'tabs',
-- mode = 1, mode = 1,
-- }, },
-- }, },
-- lualine_b = { lualine_b = {
-- { {
-- 'buffers', 'buffers',
-- show_filename_only = true, show_filename_only = true,
-- show_bufnr = true, show_bufnr = true,
-- mode = 4, mode = 4,
-- filetype_names = { filetype_names = {
-- TelescopePrompt = 'Telescope', TelescopePrompt = 'Telescope',
-- dashboard = 'Dashboard', dashboard = 'Dashboard',
-- fzf = 'FZF', fzf = 'FZF',
-- }, },
-- buffers_color = { buffers_color = {
-- -- Same values as the general color option can be used here. -- Same values as the general color option can be used here.
-- active = 'lualine_b_normal', -- Color for active buffer. active = 'lualine_b_normal', -- Color for active buffer.
-- inactive = 'lualine_b_inactive', -- Color for inactive buffer. inactive = 'lualine_b_inactive', -- Color for inactive buffer.
-- }, },
-- }, },
-- }, },
-- lualine_c = {}, lualine_c = {},
-- lualine_x = {}, lualine_x = {},
-- lualine_y = {}, lualine_y = {},
-- lualine_z = {}, lualine_z = {},
-- }, },
winbar = { winbar = {
lualine_z = { lualine_z = {
{ {

@ -10,3 +10,4 @@ require("dapui").setup()
require("copilot_cmp").setup() require("copilot_cmp").setup()
require('nvim-surround').setup() require('nvim-surround').setup()
require('which-key').setup() require('which-key').setup()
require('Comment').setup()