Thomas 1 ano atrás
pai
commit
d035145d8e
5 arquivos alterados com 44 adições e 39 exclusões
  1. 14 13
      lua/config/mappings.lua
  2. 25 25
      lua/plugins/edgy.lua
  3. 0 1
      lua/plugins/noice.lua
  4. 5 0
      spell/en.utf-8.add
  5. BIN
      spell/en.utf-8.add.spl

+ 14 - 13
lua/config/mappings.lua

@@ -7,11 +7,11 @@ local gitsigns = require("gitsigns")
 function FormatBuffer()
 	-- Save the current cursor position
 	local cursor_position = vim.fn.getpos(".")
-	local command = "typstyle"
+	local command = "fmt"
 	-- -- Run the formatter command on the current buffer
 	vim.cmd(":%! " .. command)
 	-- Restore the cursor position
-  vim.fn.setpos(".", cursor_position)
+	vim.fn.setpos(".", cursor_position)
 
 	-- local current_file = vim.fn.expand("%:p")
 	-- local cmd = string.format("typstyle -i %s", current_file)
@@ -19,8 +19,8 @@ function FormatBuffer()
 	-- 	on_exit = function(_, exit_code)
 	-- 		if exit_code == 0 then
 	-- 			print("TypestStyle completed successfully")
- --        -- vim.cmd('edit!') -- Reload the buffer
- --        vim.fn.setpos(".", cursor_position)
+	--        -- vim.cmd('edit!') -- Reload the buffer
+	--        vim.fn.setpos(".", cursor_position)
 	-- 		else
 	-- 			print("TypestStyle failed with exit code: " .. exit_code)
 	-- 		end
@@ -93,7 +93,7 @@ wk.add({
 		{
 			"<leader>ft",
 			function()
-				FormatBuffer("typststyle")
+				FormatBuffer()
 			end,
 			desc = "Typst fmt",
 		},
@@ -131,20 +131,21 @@ wk.add({
 		},
 
 		{
-			"<leader>uh",
+			"<leader>el",
 			function()
-				require("edgy").toggle("left")
+				require("trouble").open({
+					mode = "lsp_document_symbols",
+					focus = false,
+					win = { position = "right" },
+				})
 			end,
-			desc = "left",
 		},
-
-		-- Typst format
 		{
-			"<leader>ft",
+			"<leader>uh",
 			function()
-				FormatBuffer("typstfmt")
+				require("edgy").toggle("left")
 			end,
-			desc = "Typst formater",
+			desc = "left",
 		},
 
 		-- Lsp

+ 25 - 25
lua/plugins/edgy.lua

@@ -8,7 +8,7 @@ return {
 			{
 				"<leader>el",
 				function()
-					require("edgy-group").open_group_offset("left", 1)
+					require("edgy-group").open_group_offset("right", 1)
 				end,
 				desc = "Edgy Group Next Left",
 			},
@@ -36,24 +36,24 @@ return {
 				},
 			},
 			statusline = {
-        -- suffix and prefix separators between icons
-        separators = { ' ', ' ' },
-        clickable = false, -- open group on click
-        colored = true, -- enable highlight support
-        colors = { -- highlight colors
-          active = 'Normal', -- highlight color for open group
-          inactive = 'Normal', -- highlight color for closed group
-          pick_active = 'PmenuSel', -- highlight color for pick key for open group
-          pick_inactive = 'PmenuSel', -- highlight color for pick key for closed group
-        },
-        -- pick key position: left, right, left_separator, right_separator, icon
-        -- left: before left separator
-        -- right: after right separator
-        -- left_separator, right_separator and icon: replace the corresponding element
-        pick_key_pose = 'left',
-        pick_function = nil, -- optional function to override default behavior
-      },
-      toggle = true,
+				-- suffix and prefix separators between icons
+				separators = { " ", " " },
+				clickable = false, -- open group on click
+				colored = true, -- enable highlight support
+				colors = { -- highlight colors
+					active = "Normal", -- highlight color for open group
+					inactive = "Normal", -- highlight color for closed group
+					pick_active = "PmenuSel", -- highlight color for pick key for open group
+					pick_inactive = "PmenuSel", -- highlight color for pick key for closed group
+				},
+				-- pick key position: left, right, left_separator, right_separator, icon
+				-- left: before left separator
+				-- right: after right separator
+				-- left_separator, right_separator and icon: replace the corresponding element
+				pick_key_pose = "left",
+				pick_function = nil, -- optional function to override default behavior
+			},
+			toggle = true,
 		},
 	},
 	{
@@ -120,12 +120,12 @@ return {
 					end,
 					open = "Neotree position=right git_status",
 				},
-      },
-      right = {
-				{
-					ft = "Outline",
-					open = "SymbolsOutlineOpen",
-				},
+			},
+			right = {
+				-- {
+				-- 	ft = "Outline",
+				-- 	open = ,
+				-- },
 			},
 
 			-- left = {

+ 0 - 1
lua/plugins/noice.lua

@@ -5,7 +5,6 @@ return {
 	opts = {
 		-- add any options here
 	},
-	
 	dependencies = {
 		-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
 		"MunifTanjim/nui.nvim",

+ 5 - 0
spell/en.utf-8.add

@@ -0,0 +1,5 @@
+Jean-Pierre
+Jean-Charles
+Ouest-France
+Côtes-d'Armor
+BTP

BIN
spell/en.utf-8.add.spl