add oil. try to get python debugger working

This commit is contained in:
Stephen Leece 2024-03-30 11:53:27 -07:00
parent 4e1dea8c2b
commit 30101a9027
4 changed files with 25 additions and 3 deletions

View File

@ -289,6 +289,9 @@ vim.o.rnu = true
-- Enable mouse mode
vim.o.mouse = 'a'
-- Don't show the mode, since it's already in the status line
vim.opt.showmode = false
-- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
@ -330,7 +333,7 @@ vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = tr
-- Map for copy/yank to clipboard
vim.keymap.set('v', '<leader>cp', '"+y')
-- Diagnostic keymaps
-- Diagnostic keymap
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' })
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })

View File

@ -29,6 +29,7 @@
"nvim-treesitter": { "branch": "master", "commit": "649d137371e9214d30b20565e0574824fa3a3670" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "dbcd9388e3b119a87c785e10a00d62876077d23d" },
"nvim-web-devicons": { "branch": "master", "commit": "db0c864375c198cacc171ff373e76bfce2a85045" },
"oil.nvim": { "branch": "master", "commit": "e462a3446505185adf063566f5007771b69027a1" },
"onedark.nvim": { "branch": "master", "commit": "e7c656ac6b6460aaab817cbd0c9d5c043eda4b43" },
"plenary.nvim": { "branch": "master", "commit": "c47e1a21d235a422034012935febd2d078d77ac6" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },

View File

@ -0,0 +1,15 @@
-- use `nvim .` or `knv .` to open neovim with this active
return {
'stevearc/oil.nvim',
opts = {
view_options = {
-- Show files and directories that start with "."
show_hidden = true,
}
},
-- Optional dependencies
dependencies = { "nvim-tree/nvim-web-devicons" },
-- set keymap for opening Oil file explorer
vim.keymap.set({ 'n' }, '<leader>oe', ':Oil<CR>', { desc = 'Open Oil file explorer', silent = true })
}

View File

@ -22,7 +22,7 @@ return {
'leoluz/nvim-dap-go',
'suketa/nvim-dap-ruby',
'mfussenegger/nvim-dap-python',
},
config = function()
local dap = require 'dap'
@ -86,8 +86,11 @@ return {
-- Install golang specific config
require('dap-go').setup()
require('dap-ruby').setup()
require('dap-ruby').setup()
require('dap-python').setup('/Users/stephenleece/.asdf/shims/python')
require('dap-python').setup('/Users/stephenleece/src/flask_stephenleece_app/venv/bin/python')
end,
}