diff --git a/lua/plex/config/keymaps.lua b/lua/plex/config/keymaps.lua index fb10ef1..1d86c31 100644 --- a/lua/plex/config/keymaps.lua +++ b/lua/plex/config/keymaps.lua @@ -36,8 +36,8 @@ map('n', 'l', 'Lazy', { desc = 'Open Lazy UI' }) --map({ 'n', 'x' }, 'J', "") -- Easier line-wise movement -map({'n', 'v'}, 'H', 'g^') -map({'n', 'v'}, 'L', 'g$') +map({'n', 'v'}, 'H', '') +map({'n', 'v'}, 'L', '') -- Toggle fold or select option from popup menu ---@return string @@ -84,6 +84,10 @@ map('n', 'zh', 'z4h') map('n', 'zn', ']s') map('n', 'zN', '[s') +-- move screen and line up +map('n', '', 'k') +map('n', '', 'j') + -- Clipboard -- === diff --git a/lua/plex/plugins/extras/lang/rust.lua b/lua/plex/plugins/extras/lang/rust.lua new file mode 100644 index 0000000..d3cb0f9 --- /dev/null +++ b/lua/plex/plugins/extras/lang/rust.lua @@ -0,0 +1,42 @@ +return { + { + 'mfussenegger/nvim-dap', + optional = true, + dependencies = { + 'mfussenegger/nvim-dap-python', + }, + -- stylua: ignore + -- keys = { + -- { 'dPt', function() require('dap-python').test_method() end, desc = 'Debug Method' }, + -- { 'dPc', function() require('dap-python').test_class() end, desc = 'Debug Class' }, + -- }, + config = function() + local dap = require('dap') + dap.configurations.rust = { + { + -- ... the previous config goes here ..., + initCommands = function() + -- Find out where to look for the pretty printer Python module + local rustc_sysroot = vim.fn.trim(vim.fn.system('rustc --print sysroot')) + + local script_import = 'command script import "' .. rustc_sysroot .. '/lib/rustlib/etc/lldb_lookup.py"' + local commands_file = rustc_sysroot .. '/lib/rustlib/etc/lldb_commands' + + local commands = {} + local file = io.open(commands_file, 'r') + if file then + for line in file:lines() do + table.insert(commands, line) + end + file:close() + end + table.insert(commands, 1, script_import) + + return commands + end, + -- ..., + } + } + end, + }, +} diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 0445ae8..b6c958b 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -183,3 +183,35 @@ Fifos fifo Keystore Addressors +Spektralgestalt +CTS +Addressor +Timestamp +str +BASEDIRECTORY +configs +fifo +PKI +secp384r1 +Addressors +Keystore +Fifos +SBC +NTSecureCloudSolutions +newtec +loesungen +subfigure +Shield96 +ATSAMA5D27 +TrustZone +A5 +ARMv7 +eMMC +MT25QU0512BBB +ATECC608 +Rückwärtskompatibilität +tls +opcua +texttt +rfcp +ssl