add custom mapping for filepath/filename selections

This commit is contained in:
Schistos Tega 2024-05-31 10:49:45 +03:00
parent c516919105
commit 44715b62b8
3 changed files with 49 additions and 1 deletions

View file

@ -5,6 +5,7 @@
vim.opt.relativenumber = true
vim.g.have_nerd_font = true
require 'custom.mappings'
require('lazy').setup {
require 'kickstart.plugins.indent_line',
require 'kickstart.plugins.autopairs',

View file

@ -77,7 +77,6 @@ return {
local filepath = node:get_id()
local filename = node.name
local modify = vim.fn.fnamemodify
local vals = {
['BASENAME'] = modify(filename, ':r'),
['EXTENSION'] = modify(filename, ':e'),