fix: Adding a better python virtualenv loading for LSP completion in a
project's directory and installed dependencies. Removing render-markdown from being default enabled, but leaving it in for now.
This commit is contained in:
parent
dd4fbaea0a
commit
a660ae40b5
@ -10,7 +10,7 @@ Included are configs for:
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
> [!WARNING]
|
> [!CAUTION]
|
||||||
> This script _WILL_ clobber existing configuration files for the above applications. Read the script and backup files before running if needed.
|
> This script _WILL_ clobber existing configuration files for the above applications. Read the script and backup files before running if needed.
|
||||||
|
|
||||||
Just run `./deploy.sh`
|
Just run `./deploy.sh`
|
||||||
|
|||||||
@ -32,5 +32,5 @@ require('lazy').setup({
|
|||||||
require('plugins.markdown-preview'), -- Open a preview of markdown rendered in a browser
|
require('plugins.markdown-preview'), -- Open a preview of markdown rendered in a browser
|
||||||
require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview)
|
require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview)
|
||||||
require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental)
|
require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental)
|
||||||
require('plugins.twilight') -- Focus mode, dim lines around the current segment of code
|
require('plugins.twilight'), -- Focus mode, dim lines around the current segment of code
|
||||||
})
|
})
|
||||||
|
|||||||
@ -130,6 +130,13 @@ return {
|
|||||||
name = 'Launch current file',
|
name = 'Launch current file',
|
||||||
request = 'launch',
|
request = 'launch',
|
||||||
program = '${file}',
|
program = '${file}',
|
||||||
|
pythonPath = function ()
|
||||||
|
if vim.env.VIRTUAL_ENV then
|
||||||
|
return vim.env.VIRTUAL_ENV .. '/bin/python'
|
||||||
|
end
|
||||||
|
|
||||||
|
return vim.fn.exepath('python3') or vim.fn.exepath('python') or 'python'
|
||||||
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@ return {
|
|||||||
vim.treesitter.language.register('markdown', 'telekasten')
|
vim.treesitter.language.register('markdown', 'telekasten')
|
||||||
|
|
||||||
require('render-markdown').setup({
|
require('render-markdown').setup({
|
||||||
enabled = true,
|
enabled = false,
|
||||||
-- render_modes = { 'n', 'c', 't' },
|
-- render_modes = { 'n', 'c', 't' },
|
||||||
max_file_size = 10.0,
|
max_file_size = 10.0,
|
||||||
debounce = 100,
|
debounce = 100,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user