add toggleterm plugin, remove python from TS
This commit is contained in:
parent
6f14c7cfc4
commit
5f6af39664
2
init.lua
2
init.lua
|
@ -333,7 +333,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
|
|||
-- See `:help nvim-treesitter`
|
||||
require('nvim-treesitter.configs').setup {
|
||||
-- Add languages to be installed here that you want installed for treesitter
|
||||
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim' },
|
||||
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'rust', 'tsx', 'typescript', 'help', 'vim' },
|
||||
|
||||
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
||||
auto_install = false,
|
||||
|
|
|
@ -77,4 +77,31 @@ return {
|
|||
{ "<leader>ul", "<Cmd>UrlView<CR>", desc = "View buffer URLs" },
|
||||
},
|
||||
},
|
||||
|
||||
-- Toggleterm: multiple terminals
|
||||
{ 'akinsho/toggleterm.nvim',
|
||||
version = "*",
|
||||
config = function()
|
||||
require("toggleterm").setup {
|
||||
insert_mappings = true, -- whether or not the open mapping applies in insert mode
|
||||
size = 10,
|
||||
open_mapping = [[<F7>]],
|
||||
shading_factor = 2,
|
||||
direction = "float",
|
||||
float_opts = {
|
||||
border = "curved",
|
||||
highlights = {
|
||||
border = "Normal",
|
||||
background = "Normal",
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
||||
-- Markdown preview (attempt)
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
run = function() vim.fn["mkdp#util#install"]() end,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue