diff --git a/init.lua b/init.lua index ece08806..b3cff666 100644 --- a/init.lua +++ b/init.lua @@ -119,6 +119,12 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- vim.keymap.set("n", "", "J", { desc = "Move window to the lower" }) -- vim.keymap.set("n", "", "K", { desc = "Move window to the upper" }) +-- [[ Additional Remaps ]] +vim.keymap.set('n', 'pv', ':Ex') +vim.keymap.set('n', 'x', ':so') +vim.keymap.set('n', 'fc', ':fc') +vim.keymap.set('n', 'cr', ':%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 },