diff --git a/README.md b/README.md index 3abb96b..4637e9c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ## Used plugins - https://github.com/folke/lazy.nvim (plugin manager) - https://github.com/catppuccin/nvim?tab=readme-ov-file (colour scheme) +- https://github.com/nvim-lualine/lualine.nvim (status bar) - https://github.com/nvim-telescope/telescope.nvim (fuzzy finder) - https://github.com/nvim-treesitter/nvim-treesitter (tree sitter plugin old) - https://github.com/nvim-neo-tree/neo-tree.nvim (map of filesystem) diff --git a/init.lua b/init.lua index 12c4331..648e30f 100644 --- a/init.lua +++ b/init.lua @@ -39,17 +39,15 @@ config.setup({ require("catppuccin").setup(plugins, opts) -- color scheme -- vim.cmd.colorscheme "catppuccin" +require('lualine').setup() -- bottom line + -- Keypams -- -vim.keymap.set('n', '', builtin.find_files, {}) -- telescope find -- --- vim.keymap.set('n', '', builtin.live_grep, {}) -- I dont know what this is doing? -- +vim.keymap.set('n', '', builtin.find_files, {}) -- telescope find +-- vim.keymap.set('n', '', builtin.live_grep, {}) -- I dont know what this is doing? vim.keymap.set('n', '', ':Neotree filesystem toggle left', {}) -- Vim options -- -vim.opt.nu = true -- line numbers - -vim.opt.tabstop = 4 -- how big is tab -vim.opt.softtabstop = 4 -vim.opt.shiftwidth = 4 +require("vim-options") diff --git a/lazy-lock.json b/lazy-lock.json index fac3a05..f2987ad 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,6 +2,7 @@ "catppuccin": { "branch": "main", "commit": "fc98570d85ae772e56dc42cf8d7d6a497a909bdb" }, "image.nvim": { "branch": "master", "commit": "9be5ede323756d7ee2bbef2bc157767b3972cce6" }, "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" }, + "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "7aad1bf3f6b849cbf108e02c55ad4d701cb4d33a" }, "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, "nvim-treesitter": { "branch": "master", "commit": "40e8c92f99ef26625ff2206f5e183ac3109f20ba" }, diff --git a/lua/plugins.lua b/lua/plugins.lua index 8363484..ae0a36d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -7,10 +7,14 @@ return { {"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"}, -- tree sitter -- {"nvim-neo-tree/neo-tree.nvim",branch = "v3.x", -- map of filesystem - dependencies = {"nvim-lua/plenary.nvim", + dependencies = {"nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", -- Optional but recomanded "MunifTanjim/nui.nvim", "3rd/image.nvim", -- Optional image support in preview window } - } + }, + + {'nvim-lualine/lualine.nvim', -- bottom/status line + dependencies = { 'nvim-tree/nvim-web-devicons' }} + } diff --git a/lua/vim-options.lua b/lua/vim-options.lua new file mode 100644 index 0000000..6396d94 --- /dev/null +++ b/lua/vim-options.lua @@ -0,0 +1,9 @@ +-- Vim options -- + +vim.opt.nu = true -- line numbers + +vim.opt.tabstop = 4 -- how big is tab +vim.opt.softtabstop = 4 +vim.opt.shiftwidth = 4 + +vim.g.napleader = " "