mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-27 05:41:45 +00:00
Compare commits
10 Commits
b47664f0ec
...
b6acf5ccb1
Author | SHA1 | Date | |
---|---|---|---|
b6acf5ccb1 | |||
7a9d85ceb9 | |||
de146ec6de | |||
197b1f4ca0 | |||
6806aa7977 | |||
704f92592b | |||
c240529edd | |||
cacb564101 | |||
b138a01336 | |||
d117ed8ecf |
@ -112,6 +112,15 @@ end
|
|||||||
|
|
||||||
vim.keymap.set({ 'n', 'v' }, '<leader>gy', global_cmd_yank, { desc = '[G]lobal command [Y]ank' })
|
vim.keymap.set({ 'n', 'v' }, '<leader>gy', global_cmd_yank, { desc = '[G]lobal command [Y]ank' })
|
||||||
|
|
||||||
|
-- Fix filename keymap
|
||||||
|
vim.keymap.set({ 'n', 'v' }, '<leader>fp', function()
|
||||||
|
-- lua print(string.gsub(vim.api.nvim_buf_get_name(0), vim.fn.getcwd(), ''))
|
||||||
|
local cwd = vim.fn.getcwd()
|
||||||
|
local path = vim.api.nvim_buf_get_name(0)
|
||||||
|
local file, _ = string.gsub(path, cwd .. '\\', '')
|
||||||
|
vim.cmd('0f | file ' .. file)
|
||||||
|
end, { desc = '[F]ile Fix Relative [P]ath' })
|
||||||
|
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
-- System clipboard keybinds in normal and visual mode
|
-- System clipboard keybinds in normal and visual mode
|
||||||
vim.keymap.set({ 'n', 'v' }, '<C-S-c>', '"+y', { desc = 'Yank to System clipboard' })
|
vim.keymap.set({ 'n', 'v' }, '<C-S-c>', '"+y', { desc = 'Yank to System clipboard' })
|
||||||
|
@ -18,7 +18,7 @@ return {
|
|||||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||||
-- have a well standardized coding style. You can add additional
|
-- have a well standardized coding style. You can add additional
|
||||||
-- languages here or re-enable it for the disabled ones.
|
-- languages here or re-enable it for the disabled ones.
|
||||||
local disable_filetypes = { c = true, cpp = true }
|
local disable_filetypes = { c = true, cpp = true, php = true }
|
||||||
return {
|
return {
|
||||||
timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
||||||
|
@ -16,11 +16,8 @@ require('lazy').setup({
|
|||||||
-- Discord RPC
|
-- Discord RPC
|
||||||
'andweeb/presence.nvim',
|
'andweeb/presence.nvim',
|
||||||
|
|
||||||
-- Processing-Java
|
|
||||||
'sophacles/vim-processing',
|
|
||||||
|
|
||||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
'sophacles/vim-processing', -- Processing-Java
|
||||||
|
|
||||||
-- NOTE: Plugins can also be added by using a table,
|
-- NOTE: Plugins can also be added by using a table,
|
||||||
-- with the first argument being the link and the following
|
-- with the first argument being the link and the following
|
||||||
|
Loading…
Reference in New Issue
Block a user