From 478bacb10b16d04378106673885495a0041bb6d1 Mon Sep 17 00:00:00 2001 From: Saeed Afzal <37543494+saeedafzal@users.noreply.github.com> Date: Mon, 21 Aug 2023 09:22:52 +0100 Subject: [PATCH] Update lunar.lua --- lunar.lua | 88 ++++++++++++++----------------------------------------- 1 file changed, 22 insertions(+), 66 deletions(-) diff --git a/lunar.lua b/lunar.lua index 9d39a7d..0a22ee2 100644 --- a/lunar.lua +++ b/lunar.lua @@ -1,93 +1,49 @@ --- Custom additions to my lunarvim setup +-- Read the docs: https://www.lunarvim.org/docs/configuration +-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6 +-- Forum: https://www.reddit.com/r/lunarvim/ +-- Discord: https://discord.com/invite/Xb9B4Ny --- CUSTOM CONFIGURATION local opt = vim.opt + +-- Indentation opt.smartindent = true opt.expandtab = true opt.shiftwidth = 4 opt.tabstop = 4 opt.scrolloff = 8 --- PLUGINS +-- Plugins lvim.plugins = { { "folke/todo-comments.nvim", - requires = "nvim-lua/plenary.nvim", - config = function() - require("todo-comments").setup() - end + dependencies = "nvim-lua/plenary.nvim", + config = true }, { - "NvChad/nvim-colorizer.lua", - config = function() - require("colorizer").setup() - end - }, - { - "folke/trouble.nvim", - requires = "kyazdani42/nvim-web-devicons", - cmd = "TroubleToggle", - config = function() - require("trouble").setup() - end - }, - { - "weilbith/nvim-code-action-menu", - requires = "neovim/nvim-lspconfig", - cmd = "CodeActionMenu" - }, - { - "ellisonleao/glow.nvim", - config = function() - require("glow").setup() - end - }, - { - "CosmicNvim/cosmic-ui", - requires = { - "MunifTanjim/nui.nvim", - "nvim-lua/plenary.nvim" + "akinsho/flutter-tools.nvim", + lazy = false, + dependencies = { + "nvim-lua/plenary.nvim", + "stevearc/dressing.nvim" }, - config = function() - require("cosmic-ui").setup() - end + config = true }, { - "leoluz/nvim-dap-go", - config = function() - require("dap-go").setup() - end + "nmac427/guess-indent.nvim", + lazy = false, + config = true } } -lvim.builtin.dap.active = true - --- KEYMAPS -lvim.builtin.which_key.mappings["t"] = { - name = "+Trouble", - t = { "TroubleToggle", "Trouble Toggle" }, - r = { "Trouble lsp_references", "References" }, - f = { "Trouble lsp_definitions", "Definitions" }, - d = { "Trouble document_diagnostics", "Diagnostics" }, - q = { "Trouble quickfix", "QuickFix" }, - l = { "Trouble loclist", "LocationList" }, - w = { "Trouble workspace_diagnostics", "Workspace Diagnostics" }, -} - -lvim.builtin.which_key.mappings["la"] = { - "CodeActionMenu", - "Code Action" -} - +-- Mappings lvim.keys.normal_mode[""] = "BufferLineCycleNext" lvim.keys.normal_mode[""] = "BufferLineCyclePrev" lvim.keys.normal_mode[""] = "Telescope current_buffer_fuzzy_find" lvim.keys.normal_mode[""] = "25" +lvim.keys.normal_mode[""] = "! make" +lvim.keys.normal_mode["K"] = "lua vim.lsp.buf.hover()" +lvim.keys.normal_mode["gd"] = "lua vim.lsp.buf.definition()" -lvim.builtin.which_key.mappings["lr"] = { - "lua require('cosmic-ui').rename()", - "Rename" -} lvim.builtin.terminal.open_mapping = "" lvim.builtin.which_key.mappings["bb"] = {