Nidhi sharma
Nidhi sharma
KPCKevin Powell - Community
Created by Nidhi sharma on 7/2/2023 in #os-and-tools
How to enable emmet for .ejs file in lazy nvim
i want to enable the abbrevation in .ejs file in nvim (lazy vim). I have installed the emmet but it is not working in .ejs file. Here is my config
return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
emmet_ls = {
filetypes = {
"html",
"typescriptreact",
"javascriptreact",
"css",
"sass",
"scss",
"less",
"javascript",
"typescript",
"markdown",
"ejs",
},
init_options = {
html = {
options = {
-- For possible options, see: https://github.com/emmetio/emmet/blob/master/src/config.ts#L79-L26
["bem.enabled"] = true,
},
},
},
},
},
},
},
}
return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
emmet_ls = {
filetypes = {
"html",
"typescriptreact",
"javascriptreact",
"css",
"sass",
"scss",
"less",
"javascript",
"typescript",
"markdown",
"ejs",
},
init_options = {
html = {
options = {
-- For possible options, see: https://github.com/emmetio/emmet/blob/master/src/config.ts#L79-L26
["bem.enabled"] = true,
},
},
},
},
},
},
},
}
1 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 4/21/2023 in #front-end
Does chrome support the preloading of tiff images ??
i want to know does the chrome support the preloading of tiff images like any other image format jpg png
21 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 2/26/2023 in #front-end
importing file in typescript
hii everyone! anyone can help me to figure out the solution. I'm importing the file in typescript but getting error Module not found: Error: Can't resolve './components/Header' in 'C:\Users\nidhi\Documents\my-projects\estate-website\src' even the path is correct import React from 'react'; import { Box } from '@mui/system'; import Header from './components/Header'; import MainWrapper from './components/MainWrapper'; import './css/App.css' const App = () => { return ( <Box maxWidth='1440px' m='auto' position='relative'> <Header/> <MainWrapper/> </Box> ) } export default App;
1 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 2/24/2023 in #front-end
Prevent from white scroll bar
3 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 2/23/2023 in #front-end
Navigating using react-router-v6
Hii everyone! I want to use react-router v6 but there is some problem and the flow is 1. if user click on the go to home page button then the home page should open 2. if user click on the go to contact page link then the search will change and i want to trigger the useEffect to check if search contains contact url then the contact page should open with the link to go back. but i'm facing issues https://codesandbox.io/s/react-router-previous-page-testing-ysd36b?file=/src/Contact.js
1 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 12/24/2022 in #front-end
need a library that helps me to resize the window (we want the layout like codesandbox).
hey! everyone... I'd like to ask you a question: I'm looking for a library that will allow me to resize the window (we want a layout similar to CodeSandbox). ans i have been trying to use this react-resizable library but didn't get anything from this nothing is working https://www.npmjs.com/package/react-resizable we want it exactly like this https://strml.github.io/react-resizable/examples/1.html Could anyone please help me? my code is not working and i have to write code in .jsx
1 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 12/5/2022 in #front-end
hey!
Could anyone please help me figure out the pattern in this code? I've been trying to figure it out but don't have any clue.
[(1,2) (1,3) (1,4) (3,8) (3,11) (6,1) (6,2)]
[(1,2) (1,3) (1,4) (3,8) (3,11) (6,1) (6,2)]
2 replies
KPCKevin Powell - Community
Created by Nidhi sharma on 11/11/2022 in #front-end
hey! is there any way to write regular functions using useCallback hook in react
currently i'm using arrow function but want to use regular function
const myFun = useCallback((event,arg1)=>{
console.log("my func")
},[])
something like this but don't know the syntax how to write it
function myFun(event,arg1){
console.log("my func")
}
useCallback(myFun(event,arg1),[])
const myFun = useCallback((event,arg1)=>{
console.log("my func")
},[])
something like this but don't know the syntax how to write it
function myFun(event,arg1){
console.log("my func")
}
useCallback(myFun(event,arg1),[])
1 replies