Skip to content

Commit 7ca0c57

Browse files
committed
update
1 parent 464fc8a commit 7ca0c57

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

init.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
217217
end ---@diagnostic disable-next-line: undefined-field
218218
vim.opt.rtp:prepend(lazypath)
219219

220-
require 'custom.keymaps'
221-
require 'custom.options'
222-
223220
-- [[ Configure and install plugins ]]
224221
--
225222
-- To check the current status of your plugins, run
@@ -621,7 +618,7 @@ require('lazy').setup({
621618
local servers = {
622619
-- clangd = {},
623620
-- gopls = {},
624-
pyright = {},
621+
pylsp = {},
625622
-- rust_analyzer = {},
626623
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
627624
--
@@ -661,6 +658,8 @@ require('lazy').setup({
661658
local ensure_installed = vim.tbl_keys(servers or {})
662659
vim.list_extend(ensure_installed, {
663660
'stylua', -- Used to format Lua code
661+
'pylsp',
662+
'black',
664663
})
665664
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
666665

@@ -714,7 +713,7 @@ require('lazy').setup({
714713
formatters_by_ft = {
715714
lua = { 'stylua' },
716715
-- Conform can also run multiple formatters sequentially
717-
-- python = { "isort", "black" },
716+
python = { 'isort', 'black' },
718717
--
719718
-- You can use 'stop_after_first' to run the first available formatter from the list
720719
-- javascript = { "prettierd", "prettier", stop_after_first = true },
@@ -970,5 +969,8 @@ require('lazy').setup({
970969
},
971970
})
972971

972+
require 'custom.keymaps'
973+
require 'custom.options'
974+
973975
-- The line beneath this is called `modeline`. See `:help modeline`
974976
-- vim: ts=2 sts=2 sw=2 et

lua/custom/keymaps.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
local builtin = require 'telescope.builtin'
12
vim.keymap.set('n', '<leader>sv', '<C-w>v', { desc = 'Open verticle split' })
23
vim.keymap.set('n', '<leader>sh', '<C-w>h', { desc = 'Open horizontal split' })
4+
vim.keymap.set('n', '<C-p>', builtin.git_files, {})

0 commit comments

Comments
 (0)