Add Remaps, LSPs, Autoformats

This commit is contained in:
MShock5150 2025-06-21 10:57:16 -05:00 committed by GitHub
parent eea55b9dd8
commit b129b4832b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 4 deletions

View File

@ -119,6 +119,12 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
-- [[ Additional Remaps ]]
vim.keymap.set('n', '<leader>pv', '<cmd>:Ex<CR>')
vim.keymap.set('n', '<leader>x', '<cmd>:so<CR>')
vim.keymap.set('n', '<leader>fc', '<cmd>:fc<CR>')
vim.keymap.set('n', '<leader>cr', '<cmd>:%s/\r//g')
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`
@ -585,10 +591,14 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
-- clangd = {},
-- gopls = {},
-- pyright = {},
gopls = {},
pyright = {},
-- rust_analyzer = {},
elixir-ls = {},
lexical = {},
ruff = {},
sqls = {},
zls = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:
@ -683,7 +693,9 @@ require('lazy').setup({
formatters_by_ft = {
lua = { 'stylua' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
python = { 'black', 'ruff' },
go = { 'gofumpt },
sql = { 'sql-formatter' },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },