Skip to content

Commit b129b48

Browse files
authored
Add Remaps, LSPs, Autoformats
1 parent eea55b9 commit b129b48

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

init.lua

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
119119
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
120120
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
121121

122+
-- [[ Additional Remaps ]]
123+
vim.keymap.set('n', '<leader>pv', '<cmd>:Ex<CR>')
124+
vim.keymap.set('n', '<leader>x', '<cmd>:so<CR>')
125+
vim.keymap.set('n', '<leader>fc', '<cmd>:fc<CR>')
126+
vim.keymap.set('n', '<leader>cr', '<cmd>:%s/\r//g')
127+
122128
-- [[ Basic Autocommands ]]
123129
-- See `:help lua-guide-autocommands`
124130

@@ -585,10 +591,14 @@ require('lazy').setup({
585591
-- - settings (table): Override the default settings passed when initializing the server.
586592
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
587593
local servers = {
588-
-- clangd = {},
589-
-- gopls = {},
590-
-- pyright = {},
594+
gopls = {},
595+
pyright = {},
591596
-- rust_analyzer = {},
597+
elixir-ls = {},
598+
lexical = {},
599+
ruff = {},
600+
sqls = {},
601+
zls = {},
592602
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
593603
--
594604
-- Some languages (like typescript) have entire language plugins that can be useful:
@@ -683,7 +693,9 @@ require('lazy').setup({
683693
formatters_by_ft = {
684694
lua = { 'stylua' },
685695
-- Conform can also run multiple formatters sequentially
686-
-- python = { "isort", "black" },
696+
python = { 'black', 'ruff' },
697+
go = { 'gofumpt },
698+
sql = { 'sql-formatter' },
687699
--
688700
-- You can use 'stop_after_first' to run the first available formatter from the list
689701
-- javascript = { "prettierd", "prettier", stop_after_first = true },

0 commit comments

Comments
 (0)